2014-10-10 118 views
-1

我一直在使用OpenX一段时间。OpenX登录错误

我只是试图登录到我的管理员,它不断返回此错误。我启用了cookies并尝试了不同的浏览器,但我一直收到相同的错误。

 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 

任何人都可以帮助我吗?
谢谢

回答

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/

+0

采取这些方向太谢谢你了。这非常有帮助。非常感谢 – 2014-10-10 19:05:28

+0

@BenjaminDzamesi如果此答案已解决或有助于解决您的问题,请将其选为最佳答案。 – michaelrmcneill 2014-10-10 22:16:01