不久前,我在第三方服务器上创建了一个Joomla网站。现在,当我尝试访问该网站时,我看到如下错误:
Strict Standards: Non-static method JLoader::import() should not be called statically in /home/chinfote/public_html/libraries/joomla/import.php on line 29
Strict Standards: Non-static method JLoader::register() should not be called statically in /home/chinfote/public_html/libraries/loader.php on line 71
Strict Standards: Non-static method JLoader::import() should not be called statically in /home/chinfote/public_html/libraries/joomla/import.php on line 32
Strict Standards: Non-static method JLoader::register() should not be called statically in /home/chinfote/public_html/libraries/loader.php on line 71
Strict Standards: Non-static method JLoader::load() should not be called statically in /home/chinfote/public_html/libraries/loader.php on line 161
Strict Standards: Non-static method JLoader::register() should not be called statically in /home/chinfote/public_html/libraries/loader.php on line 138
Strict Standards: Non-static method JRequest::clean() should not be called statically in /home/chinfote/public_html/libraries/joomla/import.php on line 33
Strict Standards: Non-static method JRequest::_cleanArray() should not be called statically in /home/chinfote/public_html/libraries/joomla/environment/request.php on line 463在网上搜索之后,我发现我应该在php.ini文件中做一些修改。但是在cpanel的文件管理器上,我找不到这个文件。谁能帮我找到这个文件并解决这些错误。或者有没有其他方法来解决上面的问题?
在此之前,非常感谢您。
~Jahnavi
发布于 2015-05-30 10:37:08
Joomla 1.5在PHP 5.4中工作。
您可以将此代码粘贴到index.php的前端和后端。这对我很有效!
//设置为父文件的标志
define( '_JEXEC', 1 );
error_reporting( E_ERROR | E_PARSE | E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_COMPILE_WARNING );发布于 2013-04-21 19:21:07
抑制警告是,与修复警告不是一回事。
Joomla可能有很多内置的功能,但它的安全历史远非典范。您是否安装了最新版本的Joomla?如果不是,那么现在就这样做。如果你仍然收到警告,那就使用report it as a bug。
发布于 2014-03-07 11:36:57
我也遇到过同样的问题,我的配置是在共享主机服务器上运行Joomla 1.5。
然而,托管提供商将PHP版本从5.2升级到5.4。似乎Joomla 1.5与PHP版本5.4不兼容,所以不要抑制你的错误(这当然不是一个好主意),试着在你的共享主机/或专用主机上调整PHP版本……
干杯。如果有警告,不要隐藏它-解决它...!:)
https://stackoverflow.com/questions/16122935
复制相似问题