Joomla网站抛出错误

Jah*_*day 3 php joomla

不久之后,我在第三方服务器上创建了一个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
Run Code Online (Sandbox Code Playgroud)

在网上搜索后,我发现我应该在php.ini文件中进行一些更改.但是在cpanel的文件管理器上,我找不到这个文件.有谁可以帮我找到这个文件并解决这些错误.或者有没有其他方法来解决上述问题?

提前谢谢了.

〜Jahnavi

PUS*_*COM 9

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 );
Run Code Online (Sandbox Code Playgroud)


sym*_*ean 7

抑制警告与修复它们不是一回事.

Joomla可能内置了很多功能,但它的安全历史远不是例证.您是否安装了最新版本的Joomla?如果没有,那么现在就这样做.如果您仍然收到警告,请将其报告为错误.