OpenX登录错误

时间:2014-10-10 12:43:21

标签: java php c++ static

我一直在使用OpenX。

我只是尝试登录我的管理员,它一直都会返回此错误。我启用了cookie并尝试了不同的浏览器,但我仍然遇到相同的错误。

        Strict Standards: Non-static method PEAR::setErrorHandling() should not be called statically in /home/highsch/public_html/adserver/lib/Max.php on line 223

        Strict Standards: Non-static method OA::debug() should not be called statically, assuming $this from incompatible context in /home/highsch/public_html/adserver/lib/max/ErrorHandler.php on line 134

        Strict Standards: Non-static method Log::singleton() should not be called statically, assuming $this from incompatible context in /home/highsch/public_html/adserver/lib/OA.php on line 149

        Strict Standards: Non-static method Log::factory() should not be called statically, assuming $this from incompatible context in /home/highsch/public_html/adserver/lib/pear/Log.php on line 199

        Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /home/highsch/public_html/adserver/lib/OA.php on line 156

有人可以帮我吗? 感谢

1 个答案:

答案 0 :(得分:0)

升级到PHP 5.4.x后,OpenX将显示这些错误。

您可以通过修改方法正确解决此问题:

function setErrorHandling($txt){

public static function setErrorHandling($txt){

但这需要很长时间,因此仅更改error_reporting以禁用严格通知可能对您有利。为此,只需编辑根目录中的init.php文件并更改

即可
error_reporting(E_ALL ^ E_NOTICE ^ E_WARNING ^ E_DEPRECATED);

error_reporting(E_ALL & ~E_NOTICE & ~E_WARNING & ~E_DEPRECATED & ~E_STRICT);

不要忘记更新维护脚本。它由cronjob调用,并且init.php文件不包含在那里。

Strict Standards: Non-static method OX_Admin_Timezones::getTimezone() should not be called statically in /www/openx-2.8.10/scripts/maintenance/maintenance.php on line 46

更新此文件:

openx/scripts/maintenance/maintenance.php

并将error_reporting添加到文件的顶部。

#!/usr/bin/php -q
error_reporting(E_ALL & ~E_NOTICE & ~E_WARNING & ~E_DEPRECATED & ~E_STRICT);

这些指示取自http://www.teslina.com/en/tutorials/openx/fehlermeldungen-problemlosungen/