[英]old joomla has Strict standards errors - no access to php.ini
我有一些舊的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); 除了上述錯誤之外,它似乎再次關閉網站
和var $ 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),這也不起作用。
我已經沒想完了
Joomla 1.5應該永遠不會再使用。 切換到更新版本
Version 1.5
Release date 2008-01-22
Supported until *2012-12-01*
您必須升級 - 此版本還具有已知未修補的漏洞。
如果你真的想要使用那個垃圾話
ini_set('display_errors', '0'); // Hides all errors
error_reporting(E_ALL | E_STRICT); // Allow logging them (if you log to the files, you should also ignore E_Strict as you already told - they will not fix it).
無法更新其Joomla 1.5站點的客戶剛剛經歷了相同的錯誤泛濫。 它一直運行良好,直到主機更新PHP沒有警告。 我確實做了OP所說的不起作用(在原帖中) - 加入.htaccess
(注意:編輯.htaccess,而不是htaccess.txt)
# 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
並立即清除錯誤。
你需要在configuration.php中執行以下操作display_errors = Off
它們可能會在以下任何地方啟用
php.ini中
httpd.conf文件
的.htaccess
PHP代碼
一旦你改變了configuration.php,你只需要查看php代碼,如果它在任何地方啟用。 其他選項是登錄mysql數據庫,更改管理員密碼並重置錯誤報告。
最后,你需要將你的joomla 1.5更新到至少2.5.8。 1.5有許多安全漏洞和易受攻擊,它可以被黑客攻擊這里見http://www.r00tsec.com/2012/07/hacked-joomla-v-16x-17x-250-252.html
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.