Post by HAO » Wed Mar 26, 2014 4:12 pm

我的 OpenCart 1.5.5.1 不知道為什麼都沒辦法打開系統/錯誤記錄的頁面,就只出現「Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 206166436 bytes) in /home/*.*/public_html/wo_shop/vqmod/vqcache/vq2-system_engine_controller.php on line 58」的錯誤訊息,請問要如何修正這個問題呢?

該段程式碼:

Code: Select all

	public function database($driver, $hostname, $username, $password, $database) {
		$file  = DIR_SYSTEM . 'database/' . $driver . '.php';
		$class = 'Database' . preg_replace('/[^a-zA-Z0-9]/', '', $driver);
		
		if (file_exists($file)) {
			include_once(VQMod::modCheck($file)); // 問題點
			
			$this->registry->set(str_replace('/', '_', $driver), new $class($hostname, $username, $password, $database));
		} else {
			trigger_error('Error: Could not load database ' . $driver . '!');
			exit();				
		}
	}
vQmod 版本:vqmod-2.4.1-opencart.zip

HAO
Active Member

Posts

Joined
Fri Jun 03, 2011 2:52 pm

Post by Felix_Ho » Thu Mar 27, 2014 9:27 am

這是因為讀取error log時的memory超過你伺服器負擔的量
我建議你先到伺服器的cpanel 或FTP
主目錄> system > log > error.txt
直接下載到電腦看

下載後也可以從伺服器移除掉error.txt
因為移除後他會自動產生一個空白的
下次從後台讀取error log就不會有error了

OpenCart®
PHP Developer.

更多中文教學在 OpenCart香港官方網站 !
QQ: 2039574815


Administrator

Posts

Joined
Fri Jun 01, 2012 2:35 pm

Post by HAO » Thu Mar 27, 2014 10:08 am

感謝您的回應。 ;D

HAO
Active Member

Posts

Joined
Fri Jun 03, 2011 2:52 pm
Who is online

Users browsing this forum: No registered users and 4 guests