I need to add an observer in my module's config.xml file, the event is when the user press the button Save Config in System->Configuration->MyModule section of the Admin-panel. I've this in config.xml:


And this is what i have in Model/Observer.php :

class Modulename_Model_Observer
    public function handle_adminSystemConfigChangedSection(Varien_Event_Observer $observer)
        Mage::log('Test: oberver is working!');

When i check var/log/system.log there's nothing there. So the observer is not working. What's wrong?.


I managed to add the observer correctly.

config.xml file:



class Modulename_Model_Observer extends Mage_Core_Model_Session_Abstract

    public function observersection(Varien_Event_Observer $observer)
  • please add the solved part as answer and accept it to close the question Feb 19, 2014 at 21:25
  • can't do that until 8 hours
    – Guille
    Feb 19, 2014 at 21:27
  • ahhh and so we wait :) Feb 19, 2014 at 21:33
  • @SanderMangel You are a patient man :) Jun 10, 2015 at 21:13
  • @RickBuczynski jup... I guess we'll nver have the final answer Jun 11, 2015 at 8:53

1 Answer 1


The classname should be [Namespace]_[Module]_Model_Observer, to make sure the right class is used in your config.xml you can specify the whole classname in the <class> tag.


It might be helpful to also post the system.xml contents to see if the admin_system_config_changed_section_[sectionname] is correct.

Small suggestion. Keep your method names small and consistent. Although technically there's nothing wrong with the name using underscore and camelcase, but it may not be best practice to use underscores and camelcases.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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