Php 致命错误:对非对象(impresspages)调用成员函数

Php 致命错误:对非对象(impresspages)调用成员函数,php,Php,我在我的预付款页上得到了这个错误代码 Fatal error: Call to a member function log() on a non-object in /home/public_html/site/index.php on line 52 我已经6个月没有在网站上做任何改变了。几天前它突然开始了,并一直持续至今 这是我的index.php: <?php /** * * ImpressPages CMS main frontend file * * This fil

我在我的预付款页上得到了这个错误代码

 Fatal error: Call to a member function log() on a non-object in /home/public_html/site/index.php on line 52
我已经6个月没有在网站上做任何改变了。几天前它突然开始了,并一直持续至今

这是我的index.php:

<?php
/**
 *
 * ImpressPages CMS main frontend file
 *
 * This file initiates required variables and outputs the content.
 *
 * @package ImpressPages
 *
 *
 */




/** Make sure files are accessed through index. */

if (!defined('CMS')) {
    define('CMS', true); // make sure other files are accessed through this file.
}
if (!defined('FRONTEND')) {
    define('FRONTEND', true); // make sure other files are accessed through this file.
}


if((PHP_MAJOR_VERSION < 5) || (PHP_MAJOR_VERSION == 5 && PHP_MINOR_VERSION < 3)) {
    echo 'Your PHP version is: '.PHP_MAJOR_VERSION.'.'.PHP_MINOR_VERSION.'. To run ImpressPages CMS you need PHP 5.3.*';
    exit;
}


if(is_file(__DIR__.'/ip_config.php')) {
    require (__DIR__.'/ip_config.php');
} else {
    require (__DIR__.'/../ip_config.php');
}


if (DEVELOPMENT_ENVIRONMENT){
    error_reporting(E_ALL|E_STRICT);
    ini_set('display_errors', '1');
} else {
    ini_set('display_errors', '0');
}



try {
    require_once(BASE_DIR.FRONTEND_DIR.'init.php');
    require_once(BASE_DIR.FRONTEND_DIR.'bootstrap.php');
} catch (\Exception $e) {
    $log->log('System', 'Exception caught', $e->getMessage().' in '.$e->getFile().':'.$e->getLine());
    throw $e;
}

有人能解释一下为什么会发生这种情况以及我能做些什么吗?

我删除了error\u handler.php中的一些行(如果有人感兴趣,关于第64行),消息突然消失了。一切都很好。。。现在:D

那么什么是
$log
?它的定义是什么<代码>变量转储()+
错误报告(全部)
不知道。我的编程技能和理解能力非常有限。我在寻找什么?值得一问的是,你的主机提供商是否没有改变任何东西。也很高兴将ImpressPages更新到最新的3.x分支()。@user3760157:您确实在查找我突出显示的关键字
$log->log('System', 'Exception caught', $e->getMessage().' in '.$e->getFile().':'.$e->getLine());
throw $e;