quentosity
December 12, 2018 at 11:22 pm
Hi,
After upgrading the plugin to 4.9.74.p, our custom plugin no longer works.
We get this error
Fatal error: Uncaught Error: Call to a member function id() on null
line 66 of class CreateRegistrationService
'REG_session' => EE_Registry::instance()->SSN->id(),
We think this is related to use session not being initialized. Help please thanks.
Tony
December 13, 2018 at 2:44 am
Add New Note to this Reply
Hi there,
Can you post your code to a Gist or Pastebin so we can take a look, please?
quentosity
December 13, 2018 at 3:04 am
Add New Note to this Reply
Here is the code snippet
https://pastebin.com/SRt0ff95
Tony
December 13, 2018 at 3:15 am
Add New Note to this Reply
Thank you, what hook is that function using?
quentosity
December 13, 2018 at 7:04 am
Add New Note to this Reply
Hi, it is called from the ajax action.
add_action(‘wp_ajax_dashboard’, array($this, ‘dashboard_ajax’));
Brent Christensen
December 13, 2018 at 12:09 pm
Add New Note to this Reply
@quentosity
Hi there, I’m Event Espresso’s lead dev, can you please try adding
ee_front_ajax=1
or
ee_admin_ajax=1
to your AJAX post parameters depending on whether your AJAX request originates from the WP admin or from a public request on the frontend of the site.
This reply was modified 5 years, 11 months ago by Brent Christensen . Reason: formatting
This reply was modified 5 years, 11 months ago by Brent Christensen . Reason: mo formatting
quentosity
December 13, 2018 at 5:36 pm
Add New Note to this Reply
Hi Brent,
That worked!! Thanks so much