Support

Home Forums WP User Integration The user does not return to event page after forced log-in problem

The user does not return to event page after forced log-in problem

Posted: April 27, 2016 at 5:47 pm


Keith Moen

April 27, 2016 at 5:47 pm

Hi, I am using EE 4.8.41.p and WP Users 2.0.10.p.

I have an event for website members only. Subsequently I have checked “yes” for the “Force Login for registrations?” option. When the user goes to the event page, they are required to enter username and password and click log-in. The weird thing is they are logged in, but they get directed to the home page, instead of returning to the registration page. It is very confusing for users, and they have to either click the browser back button to the event page (which has now changed to registration details page), or click on the link that was provided via email.

Why would the user not return to the event page after a forced login?

Thanks for any help!

Keith


Josh

  • Support Staff

April 28, 2016 at 12:39 pm

Hi Keith,

It should automatically return them to the registration page after they log in. Is there another plugin activated that’s set up to redirect somewhere else after logging in?


Keith Moen

April 28, 2016 at 3:53 pm

Hmm, perhaps s2member is interfering. Strange though, it returns to the correct page when someone enters an email that is already on record, and then it forces log-in, and returns to correct page.


Josh

  • Support Staff

April 28, 2016 at 5:32 pm

Yes, it is S2 that’s interfering, because S2 has a built in feature that redirects the logged in user to a Welcome Screen. If no welcome screen is set, it redirects them to the home page. There must be a way to disable that feature somehow.


Keith Moen

April 28, 2016 at 10:11 pm

Hi Josh. Yes, I think this is the conflict. When I go to the event that requires login to register, it goes to this page: http://www.masp.mb.ca/event-registration/#checkout. Then when I click login it goes to this page: http://www.masp.mb.ca/members/#checkout

The Members page is where S2Member directs logged in users to. I’ve looked in the S2Member settings, and the Login Welcome Page is required. Hmmm, this is a pickle.


Josh

  • Support Staff

April 29, 2016 at 10:41 am

Hi Keith,

If you add the code from our documentation to your site, it should disable that redirect that S2 adds.

You can add the above to a functions plugin or into your WordPress theme’s functions.php file.

The support post ‘The user does not return to event page after forced log-in problem’ 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