2015-12-21 167 views
0

我正在使用一個擁有超過50,000個產品的magento站點。當我看到時,網站在5-6天之前在服務器上正常工作。但突然它給出了一個內存不足的錯誤。magento - 致命錯誤:內存不足(分配31719424)(試圖分配32個字節)

Fatal error: Out of memory (allocated 14680064) (tried to allocate 875 bytes) in /home/shirtcompany/public_html/mysite/app/code/core/Zend/Db/Statement.php on line 194 

我試圖用從index.php文件設置內存限制 -

ini_set("memory_limit", "500M"); 
ini_set("max_execution_time", "300"); 

,但每當我試圖改變存儲器限值加載該頁面,出現內部錯誤或它給相同的內存不足錯誤與不同的文件名替代。

Fatal error: Out of memory (allocated 27787264) (tried to allocate 99 bytes) in /home/shirtcompany/public_html/digitalhill/DigitalHill/lib/Varien/Object.php on line 

我試過將內存限制改爲10000M但沒用。 另外我嘗試從服務器中刪除所有緩存數據。

任何人都可以幫助擺脫這個問題嗎?

任何幫助表示讚賞。

謝謝。

回答

0

嘗試更改ini_set爲ini_set('memory_limit', -1)

+0

感謝您的回覆。但沒有這個運氣...... :( – SandyK

相關問題