Mage_Adminnotification_Helper_Data de «classe introuvable (quand il est effectivement présent)

magento.stackexchange https://magento.stackexchange.com/questions/8555

  •  16-10-2019
  •  | 
  •  

Question

Chaque si souvent nous l'erreur persiste: -

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

Cela provoque le back-end pour produire un 500 Internal Server Error et l'erreur ci-dessus chaque fois obtient enregistrés que vous essayez d'accéder à une URL dans le back-end.

Lors de l'inspection cependant, tout app/code/core/Mage/AdminNotification est présent et intact.

Pour résoudre le problème, je prends une autre copie du chemin ci-dessus d'un magasin de travail et écrasent celui-ci. Effacer le cache et fixe, peuvent accéder à nouveau back-end.

J'ai couru un comparer entre le dossier AdminNotification et tout son contenu pour la version que nous avons remplacé par et la version qui a été remplacé. Chaque chose dans les deux dossiers sont identiques. Pourtant, avec le remplacement de ce qui était déjà résolu le problème. Odd.

Est-il possible qu'une prolongation 3ème partie qui sert de boîte de réception des notifications dans le back-end pourrait être la cause de cette façon ou d'autre? Peut-être essayer d'étendre cette classe à tort ou quelque chose dans ce sens? Vos conseils / suggestions sont grandement appréciés.

Était-ce utile?

La solution

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.

Autres conseils

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.

Licencié sous: CC-BY-SA avec attribution
Non affilié à magento.stackexchange
scroll top