Joomla网站出现错误

3

前一段时间,我在第三方服务器上创建了一个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

1
有一些托管公司不提供访问php.ini的权限。此外,我认为您想要关闭错误报告,这应该是在生产环境中首先要做的事情,请联系您的托管公司处理此事。顺便说一下,我认为您可以在Joomla管理面板中关闭错误报告。 - HamZa
1
您可以在Joomla后端的全局配置中关闭错误报告,或者要求您的主机禁用严格的错误报告。 - Lodder
我甚至无法访问Joomla后端。这个问题也出现在这里。当联系主机公司时,他们说他们无法解决编码问题。 :( 不过我会再试一次的。谢谢。如果有其他可以做的事情,请告诉我。 - Jahnavi K. Abhyuday
询问托管公司后,他们说自从PHP版本升级到5.4.11以后,我必须访问Joomla论坛并重新配置您的网站。有任何想法如何做到这一点吗?@HamZaDzCyberDeV - Jahnavi K. Abhyuday
1
这不是编码问题。只需编辑configuration.php以降低错误报告。如果您升级到当前版本的Joomla,就不会有这个问题了。 - Elin
请参考此帖子,解决方案在这里 https://dev59.com/nlzUa4cB1Zd3GeqP1Dym - Dinesh Belkare
14个回答

-1

一些主机商不允许从文件夹根目录读取PHP.ini。但是,如果可以这样做,则可能需要为/administrator文件夹添加另一个PHP.ini文件。这至少可以让您进入后台。如果无法实现此操作,则可能能够通过htaccess文件设置这些PHP参数。可能需要更多的谷歌搜索,但应该有足够的信息...


-1
Strict Standards: Non-static method JLoader::import() should not be called
statically in /home/chinfote/public_html/libraries/joomla/import.php on line 29

你可以在 server.. /etc/php.ini 中找到它。
尝试这样做:将 display_errors = On 替换为 display_errors = Off

-1

在php.ini文件中只需按照以下步骤操作:

;error_reporting = E_ALL | E_STRICT

-2

如果您的唯一问题是显示错误,您可以将这些行添加到您的 .htaccess 文件中。

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

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接