문제

Im pretty new in magento developing: just bought custom theme and after its installation I've got next message on account page:

Fatal error: Cannot override final method Mage_Core_Model_Abstract::clearInstance() in app/code/core/Mage/Catalog/Model/Product.php on line 39

I didn't touch any core files. Could anyone tell me where to dig?

도움이 되었습니까?

해결책

Seen this problem with APC before, add the following to your apc.ini

apc.include_once_override=0

다른 팁

I cannot comment, but did you delete the var/cache directory via ftp? This function is assigned with a cache tag so I could see this being an issue. If that has already been done do you have apc cache enabled? If so maybe try restarting the web server.

Same solution as above (thanks JohnBoy I forgot about apc) but I believe you can add this per domain by doing this in the virtual host setup, saves applying to the global apc setup.

php_flag apc.include_once_override 0

restarting apache cleaned this up for me, see post by Reedz here: http://www.magentocommerce.com/boards/viewthread/378965/

If you have a situation (as I did) where apc.include_once_override=0 and restarting apache doesn't work, try disabling apc (I did it in httpd.conf) restarting apache and then re-enabling apc, this solved the problem. Not 100% why but guessing it caused some kind of flushing of the apc cache.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top