Posted: October 14, 2022 at 11:05 am
Hi there, Im dealing with this error: Uncaught EE_Error: The EEM_Attendee model can not be loaded before the “AHEE__EE_System__load_espresso_addons” hook has been called. This gives other addons a chance to extend this model. The stack trace is cut off, but its originating from my own code somewhere. I use EEM_Attendee a couple times like Im assuming to fix this I need to add an initialization call; perhaps its something like EE_Registry::instance()->load_***??? Here is the stack trace Thanks |
|
Hi there,
Not really, you need to run your code after the |
|
Unfortunately, because the stack trace was cutoff in the email report, I don’t know for sure. But have a hunch its from within the admin_notices hook. |
|
Do you not have a working copy locally? For example, if you use XDebug you’ll get a much better stacktrace than the one built into PHP. The issue above is not due to needing to initialize a class but rather your code is running ‘too early’ so the code needs to be moved to the correct hook, but to know what that is we need to know where the code is running already. |
|
The support post ‘EEM_Attendee model can not be loaded before the "AHEE__EE_System__load_espresso_’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.