【发布时间】:2014-06-19 06:16:41
【问题描述】:
我有一些旧的 1.5 joomla 网站已经开始显示大量这些错误:
Strict Standards: Non-static method JLoader::import() should not be called statically in /data02/eebackup/public_html/josephstorehouseuk/libraries/joomla/import.php on line 29
Strict Standards: Non-static method JLoader::register() should not be called statically in /data02/eebackup/public_html/josephstorehouseuk/libraries/loader.php on line 71
Strict Standards: Non-static method JLoader::import() should not be called statically in /data02/eebackup/public_html/josephstorehouseuk/libraries/joomla/import.php on line 32
我无权访问 php.ini 文件,也无法在后端登录。我尝试了以下方法:
在配置文件中: var $error_reporting = '0'; - 除了上述错误之外什么都没有留下
然后: var $error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE);除了上述错误之外,这似乎再次关闭了网站
和 变量 $error_reporting(6351);如上
I tied altering
# supress php errors
php_flag display_startup_errors off
php_flag display_errors off
php_flag html_errors off
php_value docref_root 0
php_value docref_ext 0
到 htacess 文件(注意不是 .htaccess),这也不起作用。
我的想法已经用完了
【问题讨论】:
-
将主机改为使用低版本 php 的主机...但是您知道...如果不升级您的应用程序,它将是通往地狱的高速公路。
-
您的主机必须升级了 PHP 版本,您可能需要检查一下,因为如果它太高,这些将是您最少的问题。