简体   繁体   中英

php-fpm with Magento throwing random Fatal Errors

I have a CentOS6 server with nginx / php-fpm running Magento. Everything was fine for months until recently when random Fatal Errors will popup. It happens in Magento's admin, in the store, and everywhere. It doesn't happen often, but it does happen.

Some of the errors it will throw:

Fatal error: Cannot override final method Mage_Core_Model_Abstract::clearInstance()

Fatal error: Class 'Mage_Catalog_Model_Category' not found

Fatal error: Call to a member function setStoreId() on a non-object

Fatal error: Call to a member function getTable() on a non-object

Once the error throws, you can't get past it. The only way workaround is to restart php-fpm.

I've read things about APC causing problems, but I haven't had success trying those solutions.

The server has 2GB of RAM and the phpinfo is located here: http://already2harvest.com/php.php

Any gurus have any good ideas I can pursue?

I just noticed this question. But I'll respond anyway.

It seems to be APC that's the culprit . I'm experiencing the exact same issue. If I turn off APC, no more errors. But, of course, that means the performance goes back to being terrible.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM