Every so often we keep getting the error:-

PHP Fatal error: Class 'Mage_Adminnotification_Helper_Data' not found in /var/www/vhosts/domain.co.uk/httpdocs/app/Mage.php on line 546

This causes the backend to produce a 500 Internal Server Error and the above error gets logged each time you try to access a URL in the backend.

Upon inspection though, everything in app/code/core/Mage/AdminNotification is present and completely intact.

To fix the issue, I grab another copy of the above path from a working store and overwrite this one. Clear cache and then fixed, can access backend again.

I've run a compare between the AdminNotification folder and all it's contents for the version that we replaced with and the version that was replaced. Every single thing in both folders are identical. Yet replacing with what was already there fixed the problem. Odd.

Is it possible that a 3rd party extension that serves inbox notifications in the backend could be the cause of this somehow? Maybe trying to extend this class incorrectly or something along those lines? Your advice/suggestions is greatly appreciated.


From what I see in the error message there is a problem. The class in your error message is Mage_Adminnotification_Helper_Data and the class should be named Mage_AdminNotification_Helper_Data. Notice the uppercase N that is lowercase in the error message. There is a change you are correct in your assumption. It could be a 3rd party extension that tries to override Mage_Adminnotification_Helper_Data.

But if you say that overwriting the files in the AdminNotification folder solved the issue there is a chance that someone modified the core files previously.

Additional info
Even if the class names are not case sensitive in PHP the file names are (at least on UNIX operating systems) and the autoloader looks for the class in Mage/Adminnotification/Helper/Data.

  • Of course! Case sensitive. Problem caused in 3rd party extension. Thanks very much. No, definitely no issues in the core/Mage files as they are literally identical to a fresh download from Magento even. Good spot Marius - thanks :) – zigojacko Sep 26 '13 at 13:42
  • it was actually clearing the cache which solved the problem as Magento caches class extension relationships (how I don't know or care), clearing the cache forces Magento to relearn how classes get overridden. – user3338098 Mar 16 '16 at 15:06

Please note the big "N" in AdminNotification. Magento is looking for Admin*n*otification, while only Admin*N*otification is present.

This is probably because the module Mage_AdminNotification is disabled, but there is still a reference to it, probably by some translation functionality in another module. Please make a fulltext search for "adminnotification" in your magento installation (app/core should probably be enough) and skip the module Mage_AdminNotification. You will then know which module is causing the call to Mage_Adminnotification_Helper_Data.

  • Of course! Case sensitive. Problem caused in 3rd party extension. Thanks very much. I will do a search to identify the culprit :) – zigojacko Sep 26 '13 at 13:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.