Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9120599
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T05:39:48+00:00 2026-06-17T05:39:48+00:00

Having an issue where a custom observer isn’t picking up on events. The module

  • 0

Having an issue where a custom observer isn’t picking up on events. The module is enabled and showing up in the advanced section of the dashboard. I’ve cleared all cache, etc., so it has to be a small configuration issue.

Can anyone help spot the issue?

config.xml

<modules>
    <Hatclub_MembershipHandler>
        <version>1.0.0</version>
    </Hatclub_MembershipHandler>
</modules>

<global>

    <models>
        <dispatcher>
            <class>Hatclub_MembershipHandler_Model</class>
        </dispatcher>
    </models>

    <events>

        <customer_register_success>
            <observers>
                <registration_success_observer>
                    <class>dispatcher/observer</class>
                    <method>associateMembership</method>
                </registration_success_observer>
            </observers>
        </customer_register_success>

        <customer_session_init>
            <observers>
                <session_init_observer>
                    <class>dispatcher/observer</class>
                    <method>associateMembership</method>
                </session_init_observer>
            </observers>
        </customer_session_init>

        <customer_login>
            <observers>
                <login_observer>
                    <class>dispatcher/observer</class>
                    <method>associateMembership</method>
                </login_observer>
            </observers>
        </customer_login>

    </events>

</global>

Observer.php

class Hatclub_MembershipHandler_Model_Observer {

    // this is hook to magento event dispatched before action is run [only allow if membership exists]
    public function associateMembership(Varien_Event_Observer $observer) {

        // event
        $event = $observer->getEvent()->getControllerAction()->getFullActionName();

        Mage::log('**** EVENT FIRED ****' . $event);

        Mage::log(json_encode($observer->getEvent()));

    }

}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T05:39:49+00:00Added an answer on June 17, 2026 at 5:39 am

    Modify your config.xml to

    <modules>
        <Hatclub_MembershipHandler>
            <version>1.0.0</version>
        </Hatclub_MembershipHandler>
    </modules>
    
    <global>
    
        <models>
            <dispatcher>
                <class>Hatclub_MembershipHandler_Model</class>
            </dispatcher>
        </models>
    
        <events>
    
            <customer_register_success>
                <observers>
                    <registration_success_observer>
                        <class>Hatclub_MembershipHandler_Model_Observer</class>
                        <method>associateMembership</method>
                    </registration_success_observer>
                </observers>
            </customer_register_success>
    
            <customer_session_init>
                <observers>
                    <session_init_observer>
                        <class>Hatclub_MembershipHandler_Model_Observer</class>
                        <method>associateMembership</method>
                    </session_init_observer>
                </observers>
            </customer_session_init>
    
            <customer_login>
                <observers>
                    <login_observer>
                        <class>Hatclub_MembershipHandler_Model_Observer</class>
                        <method>associateMembership</method>
                    </login_observer>
                </observers>
            </customer_login>
    
        </events>
    
    </global>
    

    You have mentioned wrong class name.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am having an issue with the Profile Checkboxes module which stores custom profile
I am having an issue with picking up custom data types from a drop
I am having an issue with multiple custom controls on the same xpage and
I am having an issue in iphone when i want to use a custom
Having issues setting the customers group id from an observer. The event is picking
I am having an issue with a custom culture when debugging on my local
I am having an issue reading from a custom plist. I have found the
I'm having a strange issue with a custom implementation of Android's ArrayAdapter. To give
I'm having an issue with exceptions showing app as stack traces in the page.
I'm having an issue with custom directives that's driving me crazy. I'm trying to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.