Support

Home Forums Event Espresso Premium WordPress Logout HTTP 500 only with EE Plugin

WordPress Logout HTTP 500 only with EE Plugin

Posted: September 16, 2016 at 2:07 pm

Viewing 6 reply threads


ARAGATO

September 16, 2016 at 2:07 pm

When trying to logout using the standard logout function on the top right it results in a HTTP500 Error.
http://uploads.aragato-server.net/screenshots/2016091651f39dff94.jpg
results in
http://uploads.aragato-server.net/screenshots/201609166ebcb9c2a4.jpg

This effect/error only occurs when I enable Event Espresso plugins.
Any ideas advice?

The logout did not work. When navigating back to the wp-admin I am still logged in.


Josh

  • Support Staff

September 16, 2016 at 2:21 pm

I’ve not seen that happen before. If you enable WP_DEBUG do you get a more specific error message?


ARAGATO

September 16, 2016 at 2:31 pm

I have narrowed it down to this code snippet I added to my functions.php

// stop redirect to about page after update
add_action( 'init', 'jf_ee_remove_about_ee_redirect', 4 );
function jf_ee_remove_about_ee_redirect() {
    if ( class_exists( 'EE_System' )){
        $system = EE_System::instance();
        remove_action( 'AHEE__EE_System__load_CPTs_and_session__start', array( $system, 'redirect_to_about_ee' ), 9 );  
    }
}

Once removed, everythings works fine again.

I copied that snippet from the page you gave me a couple of weeks ago in another thread:
https://github.com/eventespresso/ee-code-snippet-library/blob/master/admin/jf_ee_remove_admin_cruft.php


Josh

  • Support Staff

September 16, 2016 at 2:41 pm

If you enable WP_DEBUG do you get a more specific error message?


ARAGATO

September 16, 2016 at 3:10 pm

Catchable fatal error: Argument 1 passed to EE_System::__construct() must be an instance of EE_Registry, null given, called in */wp-content/plugins/event-espresso-core-reg/core/EE_System.core.php on line 94 and defined in */wp-content/plugins/event-espresso-core-reg/core/EE_System.core.php on line 128


Josh

  • Support Staff

September 16, 2016 at 3:39 pm

Thanks, feel free to update your code to match what’s been updated in the snippet here:

https://github.com/eventespresso/ee-code-snippet-library/blob/master/admin/jf_ee_remove_admin_cruft.php#L18


ARAGATO

September 17, 2016 at 6:33 am

Great, Josh! Updated the code and works now.
Resolved.

Viewing 6 reply threads

The support post ‘WordPress Logout HTTP 500 only with EE Plugin’ 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