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.
Related
Everything was working well on my site yesterday. I upgraded my php version to from 5.6 to 7.0.9
Then I received the following error: An error has occurred.
0 Using $this when not in object context
I am relatively clueless on how to correct this, otherwise AUP is useless. Does anyone have some direction - as I am not sure what file may need to be modified, and what that modification could be?
I am not 100% sure upgrading to 7.0.9 was what caused it. I just believe it had something to do with it.
Thank you
Despite of all my attempts to understand the problem, I still can't figure out what is happening.
I developped a website with Symfony 2.7 which perfectly works in dev mode. When I tested it in production mode, an error 500 is returned.
The exception is :
Uncaught PHP Exception Symfony\Component\Debug\Exception\FatalErrorException:
"Error: Call to a member function getCacheFactory() on a non-object" at
/home/admdev-php/public_html/sfSUAPS/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php line 3039
{"exception":"[object] (Symfony\\Component\\Debug\\Exception\\FatalErrorException(code: 0):
Error: Call to a member function getCacheFactory() on a non-object at
/home/admdev-php/public_html/sfSUAPS/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php:3039)"} []
So I've tried to clear the cache and I had the same message :
[Symfony\Component\Debug\Exception\FatalErrorException]
Compile Error: require(): Failed opening required
'/home/stagiaire/workspace/suaps/app/cache/prod/doctrine/orm/Proxies/__CG__AppBundleEntityPlace.php'
(include_path='.:/usr/share/php:/usr/share/pear')`
I've tried to clear doctrine's cache but this doesn't solve the problem.
There are severals roles : One for students, one for teachers and one for admins. I only get this error when my role is student. So I looked closer to methods which are concerned and I commented everything related to studies and it worked. So I think the error is linked with my Entity Repository since "findBy" and "findAll" are failing.
I've took a look into Symfony's code but the error seems to be on my side. I really don't know what is going on, thank you if you can help me.
Problem solved
Turns out someone used an entity directly from cache...
Turns out someone used an entity directly from cache...
use Proxies\__CG__\AppBundle\Entity\Place;
I am really new to PrestaShop and am facing trouble debugging an error in PrestaShop 1.6.1.3
It was working just fine, until I have changed some localization and delivery settings in admin panel.
Now, whenever I make an order, and try to proceed with bank wire payment, I receive the following error:
Fatal error: Call to undefined method Tools::getInvoiceProductName() in /home/makede/domains/manokede.lt/public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 36
Any help or guidance for how to solve it or at least debug deeper is much appreciated.
by default class Tools have no method called getInvoiceProductName in Presta, if you added this line (where method called), just comment/delete it
Can you please try clearing your cache and then check again?
There is an error suddenly started popping up. The error occurs on various part of website like cart area, product detail page etc..
I am running my site on local server.
the error is as follows:
Fatal error: Call to a member function getReadConnection() on boolean in app/code/core/Mage/Core/Model/Resource/Db/Collection/Abstract.php on line 134
I have googled the issue but that didn't helped either.
You have to define the class and the resource model. Please check this link. I hope solve your problem.
When I load my Magento admin I get the error.
Fatal error: Call to a member function isLoggedIn() on a non-object
in /home/xxx/public_html/app/code/community/TM/Core/Model/Observer.php
on line 12
I think it happened when I replaced some files somewhere in app/code/...
I’m really stuck on this and need desperate help.
Error is in your extension file TM/Core/Model/Observer.php
Disable extension and check after refresh cache
This was fixed by the Full Page Cache Extension people.
I don't know what they did but it was their extension which broke my magento however they fixed it for me right away