Support

Home Forums Event Espresso Premium EE_Registry SSN is null after upgrading to 4.9.74.p

EE_Registry SSN is null after upgrading to 4.9.74.p

Posted: December 12, 2018 at 11:22 pm

Viewing 6 reply threads


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

  • Support Staff

December 13, 2018 at 2:44 am

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

Here is the code snippet

https://pastebin.com/SRt0ff95


Tony

  • Support Staff

December 13, 2018 at 3:15 am

Thank you, what hook is that function using?


quentosity

December 13, 2018 at 7:04 am

Hi, it is called from the ajax action.

add_action(‘wp_ajax_dashboard’, array($this, ‘dashboard_ajax’));


Brent Christensen

  • Support Staff

December 13, 2018 at 12:09 pm

@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

Hi Brent,

That worked!! Thanks so much

Viewing 6 reply threads

The support post ‘EE_Registry SSN is null after upgrading to 4.9.74.p’ 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.

Event Espresso