0
내 impresspages에서이 오류 코드가 표시됩니다.치명적인 오류 : 비 객체 (impresspages)의 멤버 함수 호출
Fatal error: Call to a member function log() on a non-object in /home/public_html/site/index.php on line 52
나는 웹 사이트에서 6 개월 동안 아무 것도 변경하지 않았습니다. 갑자기 며칠 전부터 시작되어 이후로 계속 변했습니다. 이 발생하는 이유
$log->log('System', 'Exception caught', $e->getMessage().' in '.$e->getFile().':'.$e->getLine());
throw $e;
누군가가 설명해 주시겠습니까와 내가 할 수있는 일 :이 라인 52/53있다
<?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;
}
:
이 내 index.php를 무엇입니까?
그럼'$ log'은 무엇입니까? 정의 된 위치는 어디입니까? 'var_dump()'+'error_reporting (E_ALL)' – zerkms
잘 모르겠다. 프로그래밍 기술과 이해가 극도로 제한되어 있습니다. 나는 무엇을 찾나요? – user3760157
호스팅 제공 업체가 아무 것도 변경하지 않았 으면하는 것이 좋습니다. 또한 ImpressPages를 최신 3.x 지점 (http://sourceforge.net/projects/impresspages/files/?source=navbar)으로 업데이트하는 것이 좋습니다. –