We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

EE6: `after_member_insert` hook not firing

Development and Programming

JCOGS Design's avatar
JCOGS Design
71 posts
4 years ago
JCOGS Design's avatar JCOGS Design

I have a simple extension that uses the after_member_insert hook. It worked fine with EE5 but in EE6 fails. As far as I can tell this is because the after_member_insert hook does not fire. Anyone got any ideas / thoughts on what might be happening or how this can be fixed?

       
Andy McCormick's avatar
Andy McCormick
183 posts
4 years ago
Andy McCormick's avatar Andy McCormick

I don’t think I’ve seen anyone report this. However, I’ll try to check this out today and see if I can replicate.

       
Andy McCormick's avatar
Andy McCormick
183 posts
4 years ago
Andy McCormick's avatar Andy McCormick

Gavin, I was unable to replicate with a basic test:

public function after_member_insert($member, $values)
    {

        file_put_contents(__DIR__."/log.txt", "after_member_insert test \n\r", FILE_APPEND);
    }

I created a new member, and the text was logged as expected.

Can you share your code and I can test locally? If you don’t want to share on here, feel free to message me on the EECMS slack.

       
JCOGS Design's avatar
JCOGS Design
71 posts
4 years ago
JCOGS Design's avatar JCOGS Design

Hi Andy

Thanks for checking. Upon digging deeper it transpired that the update from EE5 to EE6 had caused the exp_extensions to get messed up which in turn disabled the extension concerned. I’m not yet sure what caused the table error, currently I do not think that EE itself was the cause.

       
Andy McCormick's avatar
Andy McCormick
183 posts
4 years ago
Andy McCormick's avatar Andy McCormick

Interesting. Let me know if you find anything that would be an issue in the upgrade process so we can get a fix if needed.

👍 1
       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.