当我尝试升级我的3.3.6 Joomla网站时,弹出窗口中显示错误:
错误:
无效的 AJAX 数据:致命错误:无法访问受保护 属性 JException::$code in /home/MYSITE/public_html/WEBSITE-FOLDER/templates/MY_index_template/error.php 在第 14 行
我想第 404 行有 14 个页面 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;
}
提前谢谢。
对我来说
,是WindowsHosting/websitefolder/tmp不允许写入文件。文件名已创建,但字节大小为 0。溶液:我有ftp访问权限,下载了更新包并将其上传到该tmp文件夹,然后再次单击更新。这次它运行成功了。顺便说一下,从 3.4.1 到 3.4.5
试试这个: 无法访问受保护的属性 JException::$code
所以改变
if (($this->error->code) == '404') {
自:
if (($this->error->getCode()) == '404') {