Java — Ошибка входа в OpenX

Я использую OpenX уже некоторое время.

Я только что попытался войти в свой админ, и он продолжает возвращать эту ошибку. У меня включены куки и пробовал разные браузеры, но я получаю одни и те же ошибки.

        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

Решение

После обновления до 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

Другие решения

Других решений пока нет …

По вопросам рекламы ammmcru@yandex.ru
Adblock
detector