Joomla Upgrade from 3.3.6 to 3.4 ERROR: Invalid AJAX data

Joomla Upgrade from 3.3.6 to 3.4 ERROR: Invalid AJAX data

当我尝试升级我的 3.3.6 Joomla 网站时弹出窗口显示错误:

错误:

Invalid AJAX data: Fatal error: Cannot access protected property JException::$code in /home/MYSITE/public_html/WEBSITE-FOLDER/templates/MY_index_template/error.php on line 14


我猜第 14 行有 404 页面 url: (第 13-17 行之间):

defined( '_JEXEC' ) or die( 'Restricted access' );
if (($this->error->code) == '404') {
header('Location: index.php?option=com_content&view=article&id=90');
exit;
} 

提前致谢。

试试这个:Cannot access protected property JException::$code

所以改变

if (($this->error->code) == '404') {

收件人:

if (($this->error->getCode()) == '404') {

对我来说,是 WindowsHosting/websitefolder/tmp 不允许写入文件。已创建文件名但大小为 0 字节。 解决方案: 我有 ftp 访问权限,下载更新包并将其上传到那个 tmp 文件夹,然后再次单击更新。这次运行成功了。 顺便说一句,从 3.4.1 到 3.4.5