gpt4 book ai didi

Magento 1 仪表板聊天在升级到 1.9.4.1 后不起作用

转载 作者:行者123 更新时间:2023-12-04 00:26:24 26 4
gpt4 key购买 nike

我已将 Magento 从版本 1.9.3.7 升级到 1.9.4.1。升级后,仪表盘图表不起作用。

调试时会看到 503 Service Unavailable 错误:

a:5:{i:0;s:28:"Invalid header line detected";i:1;s:1304:"#0 /home/devabellioprojec/public_html/lib/Zend/Http/Response.php(696): Zend_Http_Response::extractHeaders('HTTP/2 200 \r\nda...')
#1 /home/devabellioprojec/public_html/lib/Zend/Http/Client.php(1110): Zend_Http_Response::fromString('HTTP/2 200 \r\nda...')
#2 /home/devabellioprojec/public_html/lib/Varien/Http/Client.php(61): Zend_Http_Client->request('GET')
#3 /home/devabellioprojec/public_html/app/code/core/Mage/Adminhtml/controllers/DashboardController.php(100): Varien_Http_Client->request('GET')
#4 /home/devabellioprojec/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Mage_Adminhtml_DashboardController->tunnelAction()
#5 /home/devabellioprojec/public_html/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(254): Mage_Core_Controller_Varien_Action->dispatch('tunnel')
#6 /home/devabellioprojec/public_html/app/code/core/Mage/Core/Controller/Varien/Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#7 /home/devabellioprojec/public_html/app/code/core/Mage/Core/Model/App.php(365): Mage_Core_Controller_Varien_Front->dispatch()
#8 /home/devabellioprojec/public_html/app/Mage.php(686): Mage_Core_Model_App->run(Array)
#9 /home/devabellioprojec/public_html/index.php(91): Mage::run('', 'store')
#10 {main}";s:3:"url";s:642:"/index.php/admin_abl/dashboard/tunnel/key/704e7120617912e473bfcf2a829bb225/?ga=eyJjaHQiOiJsYyIsImNoZiI6ImJnLHMsZjRmNGY0fGMsbGcsOTAsZmZmZmZmLDAuMSxlZGVkZWQsMCIsImNobSI6IkIsZjRkNGIyLDAsMCwwIiwiY2hjbyI6ImRiNDgxNCIsImNoeHMiOiIwLDAsMTF8MSwwLDExIiwiY2htYSI6IjE1LDE1LDE1LDE1IiwiY2hkIjoiYToyMDYyLjEsMjkzMS4zLDI2ODAzLDIzMjY5Ljk1LDgwOTguODUsMTY4NCwwIiwiY2h4dCI6IngseSIsImNoeGwiOiIwOnwxOFwvMDVcLzIwMTl8MTlcLzA1XC8yMDE5fDIwXC8wNVwvMjAxOXwyMVwvMDVcLzIwMTl8MjJcLzA1XC8yMDE5fDIzXC8wNVwvMjAxOXwyNFwvMDVcLzIwMTl8MTp8MHwxMDAwMHwyMDAwMHwzMDAwMCIsImNocyI6IjU4N3gzMDAiLCJjaGciOiIxNi42NjY2NjY2NjY2NjcsMzMuMzMzMzMzMzMzMzMzLDEsMCJ9&h=1596bf5a67149a9dbedc6b96f1f171d5";s:11:"script_name";s:10:"/index.php";s:4:"skin";s:5:"admin";}

最佳答案

这不是权限问题。所以上面的解决方案不起作用。

要解决这个问题,你需要修改lib/Zend/Http/Response.php

  1. 更改函数 function extractHeaders($response_str)替换行
if ($index === 0 && preg_match('#^HTTP/\d+(?:\.\d+) [1-5]\d+#', $line)) {
// Status line; ignore
continue;
}

if ($index === 0 || preg_match('#^HTTP/\d+(?:\.\d+) [1-5]\d+#', $line)) {
// Status line; ignore
//continue;
}
  1. 函数 extractVersion($response_str)

在第一行函数中添加行

返回“1.1”;

关于Magento 1 仪表板聊天在升级到 1.9.4.1 后不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56294133/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com