Maulik Posted July 2, 2021 Report Share Posted July 2, 2021 Hi, We have recently moved our hosting. After hosting is moved, it was noticed that we are unable to access our adserver. We have moved our database also to new location and also, configurations are updated based on new server. This always lead us to install.php file, where following errors are received. --- MESSAGE: Non-static method Date_TimeZone::isValidID() should not be called staticallyTYPE: DeprecatedFILE: /var/www/vhosts/studentpages.biz/httpdocs/adserve/lib/pear/Date/TimeZone.phpLINE: 3642DEBUG INFO: 3637 Date_TimeZone::setDefault($_DATE_TIMEZONE_DEFAULT);3638 } elseif (getenv('PHP_TZ') && Date_TimeZone::isValidID(getenv('PHP_TZ'))) {3639 Date_TimeZone::setDefault(getenv('PHP_TZ'));3640 } elseif (getenv('TZ') && Date_TimeZone::isValidID(getenv('TZ'))) {3641 Date_TimeZone::setDefault(getenv('TZ')); 3642 } elseif (Date_TimeZone::isValidID(date('T'))) { 3643 Date_TimeZone::setDefault(date('T'));3644 } else {3645 Date_TimeZone::setDefault('UTC');3646 }3647 // MESSAGE: Non-static method Date_TimeZone::setDefault() should not be called staticallyTYPE: DeprecatedFILE: /var/www/vhosts/studentpages.biz/httpdocs/adserve/lib/pear/Date/TimeZone.phpLINE: 3643DEBUG INFO: 3638 } elseif (getenv('PHP_TZ') && Date_TimeZone::isValidID(getenv('PHP_TZ'))) {3639 Date_TimeZone::setDefault(getenv('PHP_TZ'));3640 } elseif (getenv('TZ') && Date_TimeZone::isValidID(getenv('TZ'))) {3641 Date_TimeZone::setDefault(getenv('TZ'));3642 } elseif (Date_TimeZone::isValidID(date('T'))) { 3643 Date_TimeZone::setDefault(date('T')); 3644 } else {3645 Date_TimeZone::setDefault('UTC');3646 }3647 //3648 // END MESSAGE: Non-static method Date_TimeZone::isValidID() should not be called staticallyTYPE: DeprecatedFILE: /var/www/vhosts/studentpages.biz/httpdocs/adserve/lib/pear/Date/TimeZone.phpLINE: 153DEBUG INFO: 148 * @param string $id the time zone id to use149 */150 function setDefault($id)151 {152 global $_DATE_TIMEZONE_DEFAULT; 153 if(Date_TimeZone::isValidID($id)) { 154 $_DATE_TIMEZONE_DEFAULT = $id;155 }156 }157158 /** MESSAGE: Trying to access array offset on value of type boolTYPE: NoticeFILE: /var/www/vhosts/studentpages.biz/httpdocs/adserve/lib/max/Delivery/remotehost.phpLINE: 57DEBUG INFO: 52 */53 function MAX_remotehostProxyLookup()54 {55 $conf = $GLOBALS['_MAX']['CONF'];56 // Should proxy lookup conversion be performed? 57 if ($conf['logging']['proxyLookup']) { 58 OX_Delivery_logMessage('checking remote host proxy', 7);59 // Determine if the viewer has come via an HTTP proxy60 $proxy = false;61 if (!empty($_SERVER['HTTP_VIA']) || !empty($_SERVER['HTTP_X_FORWARDED_FOR'])) {62 $proxy = true; MESSAGE: Trying to access array offset on value of type nullTYPE: NoticeFILE: /var/www/vhosts/studentpages.biz/httpdocs/adserve/lib/max/Delivery/remotehost.phpLINE: 57DEBUG INFO: 52 */53 function MAX_remotehostProxyLookup()54 {55 $conf = $GLOBALS['_MAX']['CONF'];56 // Should proxy lookup conversion be performed? 57 if ($conf['logging']['proxyLookup']) { 58 OX_Delivery_logMessage('checking remote host proxy', 7);59 // Determine if the viewer has come via an HTTP proxy60 $proxy = false;61 if (!empty($_SERVER['HTTP_VIA']) || !empty($_SERVER['HTTP_X_FORWARDED_FOR'])) {62 $proxy = true; MESSAGE: Trying to access array offset on value of type boolTYPE: NoticeFILE: /var/www/vhosts/studentpages.biz/httpdocs/adserve/lib/max/Delivery/remotehost.phpLINE: 132DEBUG INFO: 127 function MAX_remotehostReverseLookup()128 {129 // Is the remote host name already set?130 if (empty($_SERVER['REMOTE_HOST'])) {131 // Should reverse lookups be performed? 132 if ($GLOBALS['_MAX']['CONF']['logging']['reverseLookup']) { 133 $_SERVER['REMOTE_HOST'] = @gethostbyaddr($_SERVER['REMOTE_ADDR']);134 } else {135 $_SERVER['REMOTE_HOST'] = $_SERVER['REMOTE_ADDR'];136 }137 } MESSAGE: Trying to access array offset on value of type nullTYPE: NoticeFILE: /var/www/vhosts/studentpages.biz/httpdocs/adserve/lib/max/Delivery/remotehost.phpLINE: 132DEBUG INFO: 127 function MAX_remotehostReverseLookup()128 {129 // Is the remote host name already set?130 if (empty($_SERVER['REMOTE_HOST'])) {131 // Should reverse lookups be performed? 132 if ($GLOBALS['_MAX']['CONF']['logging']['reverseLookup']) { 133 $_SERVER['REMOTE_HOST'] = @gethostbyaddr($_SERVER['REMOTE_ADDR']);134 } else {135 $_SERVER['REMOTE_HOST'] = $_SERVER['REMOTE_ADDR'];136 }137 } MESSAGE: Non-static method Language_Loader::load() should not be called staticallyTYPE: DeprecatedFILE: /var/www/vhosts/studentpages.biz/httpdocs/adserve/lib/OX/Extension/authentication/authentication.phpLINE: 20DEBUG INFO: 15 require_once 'Date.php';16 require_once MAX_PATH . '/lib/max/language/Loader.php';17 require_once MAX_PATH . '/lib/pear/HTML/QuickForm/Rule/Email.php';18 require_once MAX_PATH . '/lib/OA/DB/AdvisoryLock.php';19 20 Language_Loader::load('settings'); 2122 /**23 * Plugins_Authentication is a parent class for Authentication plugins24 *25 * @package OpenXPlugin MESSAGE: Undefined index: actionTYPE: NoticeFILE: /var/www/vhosts/studentpages.biz/httpdocs/adserve/lib/OX/Admin/UI/Install/InstallController.phpLINE: 80DEBUG INFO: 75 * Called before any action gets executed76 */77 protected function init()78 {79 // No upgrade file? No installer! Unless the user is in the last step 80 if (!file_exists(MAX_PATH . '/var/UPGRADE') && 'finish' != $_REQUEST['action']) { 81 header("Location: index.php");82 exit();83 }84 @set_time_limit(0);85 MESSAGE: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/studentpages.biz/httpdocs/adserve/lib/max/ErrorHandler.php:134)TYPE: WarningFILE: /var/www/vhosts/studentpages.biz/httpdocs/adserve/lib/OX/Admin/UI/Install/InstallController.phpLINE: 81DEBUG INFO: 76 */77 protected function init()78 {79 // No upgrade file? No installer! Unless the user is in the last step80 if (!file_exists(MAX_PATH . '/var/UPGRADE') && 'finish' != $_REQUEST['action']) { 81 header("Location: index.php"); 82 exit();83 }84 @set_time_limit(0);8586 // load translations for installer Can any one help me for this? Thank you in advance. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.