Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/asp.net-core/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java OpenX登录错误_Java_Php_C++_Static - Fatal编程技术网

Java OpenX登录错误

Java OpenX登录错误,java,php,c++,static,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 Str

我使用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
有人能帮我吗?

谢谢

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

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

function setErrorHandling($txt){

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

error_reporting(E_ALL ^ E_NOTICE ^ E_WARNING ^ E_DEPRECATED);

别忘了更新维护脚本。它由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
并将错误报告添加到文件顶部

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

这些指示来自

非常感谢您。这很有帮助。谢谢lots@BenjaminDzamesi如果此答案已解决或有助于解决您的问题,请选择它作为最佳答案。
openx/scripts/maintenance/maintenance.php
#!/usr/bin/php -q
error_reporting(E_ALL & ~E_NOTICE & ~E_WARNING & ~E_DEPRECATED & ~E_STRICT);