简体   繁体   English

Joomla从3.3.6升级到3.4错误:无效的AJAX数据

[英]Joomla Upgrade from 3.3.6 to 3.4 ERROR: Invalid AJAX data

There is an error showed in a pop-up when I try to upgrade my 3.3.6 Joomla website: 当我尝试升级3.3.6 Joomla网站时,弹出窗口中显示错误:

ERROR: 错误:

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 无效的AJAX数据: 致命错误 :无法访问受保护的属性JException :: $代码/home/MYSITE/public_html/WEBSITE-FOLDER/templates/MY_index_template/error.php在线14


I guess there is 404 page url on line 14 : (between line 13-17): 我猜第14行有404页面网址:(在第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;
} 

Thanks in advance. 提前致谢。

For me it was the WindowsHosting/websitefolder/tmp that was not allowing the files to be written. 对我来说,是WindowsHosting / websitefolder / tmp不允许写入文件。 File name created but 0 bytes size. 已创建文件名,但大小为0个字节。 SOLUTION: I have ftp access, downloaded and uploaded the update package to that tmp folder and clicked on the update again. 解决方案:我具有ftp访问权限,将更新包下载并上传到该tmp文件夹,然后再次单击更新。 This time it ran successfully. 这次成功运行了。 Incidentally was going from 3.4.1 to 3.4.5 顺便说一句从3.4.1到3.4.5

Try this: Cannot access protected property JException::$code 试试这个: 无法访问受保护的属性JException :: $ code

So change 所以改变

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

To: 至:

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM