Support

Home Forums Event Espresso Premium Event Espresso causing redirect loop

Event Espresso causing redirect loop

Posted: December 16, 2016 at 4:09 pm


daviesmoore

December 16, 2016 at 4:09 pm

When attempting to log in to our site we’re getting a redirect loop. I have disabled all plugins and have found Event Espresso to be the culprit. It is currently the only plugin enabled, and our site is inaccessible.

I seem to be having a similar issue to this https://eventespresso.com/topic/redirect-loop/ but there was no help to be found there.

I also went through the steps suggested here https://eventespresso.com/topic/all-events-vanished-once-upgraded/

WordPress version is 4.6.1
Event Espresso version is 4.9.21.p

Thank you very much for any help!


Josh

  • Support Staff

December 16, 2016 at 7:36 pm

Before you reactive Event Espresso, you can remove version 4.9.21 and replace with 4.9.23 (available to download from your account page).

4.9.23 removes the redirect to the About page which quite likely might be related to the redirect loop on your site.


daviesmoore

December 17, 2016 at 9:03 am

Thanks for the information Josh, I just updated – but I’m still having the same exact issue.

What can I try next?


Josh

  • Support Staff

December 19, 2016 at 8:52 am

Can you try adding this code to a custom functions plugin?

// stop redirect to about page after update
add_action( 'init', 'ee_remove_about_ee_redirect', 4 );
function ee_remove_about_ee_redirect() {
    global $pagenow;
    if (
        ! in_array(
            $pagenow,
            array( 'wp-login.php', 'wp-register.php' )
        )
        && class_exists( 'EE_System' )
    ) {
        remove_action(
            'AHEE__EE_System__initialize_last',
            array( EE_System::instance(), 'redirect_to_about_ee' ),
            9
        );
    }
}


daviesmoore

December 19, 2016 at 10:10 am

Hey Josh, that appears to have fixed my main issue. Thank you so much!

I am now getting another error that I haven’t seen before. Do you have any thoughts on what I could do to fix this?

Thanks again!

Error Screenshot


daviesmoore

December 19, 2016 at 10:14 am

This is the shortcode we are using on that page:

[ESPRESSO_CANCELLED]


Josh

  • Support Staff

December 19, 2016 at 10:22 am

Did you see the notice about the Registration Cancelled short code one time or is it persistent? If only one time, then it’s fine.


daviesmoore

December 19, 2016 at 10:25 am

It seems to be persistent. I cleared the site cache just to be sure, but it’s still present on every admin page.


Josh

  • Support Staff

December 19, 2016 at 10:38 am

Can you try deactivating the EE plugin, then reactivating the EE plugin, then go to edit the page that has the [ESPRESSO_CANCELLED] shortcode on it, and re-save that page?

The support post ‘Event Espresso causing redirect loop’ 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.

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3

Documentation for Event Espresso 4

Status: closed

Updated by  Josh 2 years, 6 months ago ago

Topic Tags

Notifications

This topic is: not resolved
Do NOT follow this link or you will be banned from the site!