首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Joomla网站抛出错误

Joomla网站抛出错误
EN

Stack Overflow用户
提问于 2013-04-21 01:03:49
回答 14查看 33.8K关注 0票数 3

不久前,我在第三方服务器上创建了一个Joomla网站。现在,当我尝试访问该网站时,我看到如下错误:

代码语言:javascript
复制
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

EN

回答 14

Stack Overflow用户

发布于 2015-05-30 10:37:08

Joomla 1.5在PHP 5.4中工作。

您可以将此代码粘贴到index.php的前端和后端。这对我很有效!

//设置为父文件的标志

代码语言:javascript
复制
define( '_JEXEC', 1 );

error_reporting( E_ERROR | E_PARSE | E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_COMPILE_WARNING );
票数 9
EN

Stack Overflow用户

发布于 2013-04-21 19:21:07

抑制警告是,与修复警告不是一回事。

Joomla可能有很多内置的功能,但它的安全历史远非典范。您是否安装了最新版本的Joomla?如果不是,那么现在就这样做。如果你仍然收到警告,那就使用report it as a bug

票数 7
EN

Stack Overflow用户

发布于 2014-03-07 11:36:57

我也遇到过同样的问题,我的配置是在共享主机服务器上运行Joomla 1.5。

然而,托管提供商将PHP版本从5.2升级到5.4。似乎Joomla 1.5与PHP版本5.4不兼容,所以不要抑制你的错误(这当然不是一个好主意),试着在你的共享主机/或专用主机上调整PHP版本……

干杯。如果有警告,不要隐藏它-解决它...!:)

票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/16122935

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档