简体   繁体   中英

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:

ERROR:

Invalid AJAX data: : Cannot access protected property JException::$code in on line :无法访问受保护的属性JException :: $代码在线


I guess there is 404 page url on line 14 : (between line 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. File name created but 0 bytes size. SOLUTION: I have ftp access, downloaded and uploaded the update package to that tmp folder and clicked on the update again. This time it ran successfully. Incidentally was going from 3.4.1 to 3.4.5

Try this: Cannot access protected property JException::$code

So change

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

To:

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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