Magento – Failed opening ‘Mage/Enterprise/Enterprise/Model/Observer.php’ for inclusion

event-observerlogvarien-file-uploader

I have this warning every second in the system.log file of magento.
I made a copy of the prod in dev site, but no such error in the log file.
Does someone have a solution?

11271 2015-02-13T21:42:22+00:00 ERR (3): Warning: include(): Failed opening 
'Mage/Enterprise/Enterprise/Model/Observer.php' for inclusion (include_path='/www/xxxxxx.com/files/html/app/code/local:/www/xxxxxx.com/files/html/app/code/community:/www/xxxxxx.com/files/html/app/code/core:/www/xxxxxx.com/files/html/lib:.:/usr/share/php:/usr/share/pear') in /www/xxxxxx.com/files/html/lib/Varien/Autoload.php on line 94
    11272 2015-02-13T21:42:22+00:00 ERR (3): Warning: include(Mage/Enterprise/Enterprise/Model/Observer.php): failed to open stream: No such file or directory in /www/xxxxxx.com/files/html/lib/Varien/Autoload.php on line 94
    11273 2015-02-13T21:42:22+00:00 ERR (3): Warning: include(): Failed opening 'Mage/Enterprise/Enterprise/Model/Observer.php' for inclusion (include_path='/www/xxxxxx.com/files/html/app/code/local:/www/xxxxxx.com/files/html/app/code/community:/www/xxxxxx.com/files/html/app/code/core:/www/xxxxxx.com/files/html/lib:.:/usr/share/php:/usr/share/pear') in /www/xxxxxx.com/files/html/lib/Varien/Autoload.php on line 94
    11274 2015-02-13T21:42:22+00:00 ERR (3): Warning: include(Mage/Enterprise/Enterprise/Model/Observer.php): failed to open stream: No such file or directory in /www/xxxxxx.com/files/html/lib/Varien/Autoload.php on line 94

These are some observer.php files in local

app/code/local/GoMage/Navigation/Model/Observer.php
app/code/local/GoMage/Navigation/Model/Enterprise/Search/Observer.php
app/code/local/LC/CustomShipping/Model/Observer.php
app/code/local/LC/CustomShipping/Model/Sales/Quote/Observer.php
app/code/local/MageWorx/CustomOptions/Model/Observer.php
app/code/local/MageWorx/OrdersPro/Model/Observer.php
app/code/local/MageWorx/OrdersPro/Model/AwOrdertags/Observer.php
app/code/local/Magestore/Magenotification/Model/Observer.php
app/code/local/Magestore/Socialrecommend/Model/Observer.php

Best Answer

Are you running Magento Enterprise?

  • If no, an extension is trying to use the Magento Enterprise observer enterprise_enterprise/observer. Search for this string in code to find the problem.

  • If yes, the file app/code/core/Enterprise/Enterprise/Observer.php seems to be missing or not readable. Magento then falls back to Mage_... and still finds nothing.

Related Topic