• Resolved maguijo

    (@maguijo)


    I ran into an issue when I had a peculiar setup with The Events Calendar. I had set my home page to be the Main Booking Page, which is a setting in the Events Calendar and is a WordPress generated url using the slug assigned to your events (usually “/events/”).

    So…with Force Login activated, when you go to the direct URL of the website (https://example.com), you just got a white screen of death. If you went to any other url, like https://example.com/weird/ (even though that URL didn’t exist and would generate a 404 error if you did land on it), then the plugin redirected you properly to the login screen. Oddly, if you tried to go to the main events page or any page associated with The Events Calendar like https://example.com/events/list/, then you still got the white screen of death.

    Weird. Took me a while to figure out that I needed my home page to be set to an actual page that existed, and wasn’t a WordPress-generated slug. I created a page, called it home, set it to be the home page and now the plugin works properly by redirecting you automatically to the login url no matter what page on the site you land on…even if it’s the “home” page (which is just the domain e.g. https://example.com). I used the code snippet provided to then redirect logged-in users to the main events page after login.

    This isn’t a bug per se, I just thought it might be helpful to someone else if I noted the problem and solution here. I think this issue would crop up if you used any WordPress-generated slug as your home page (I’m sure there are other plugins out there that give you that option).

    Holler if I’m not clear.

    • This topic was modified 4 years, 2 months ago by maguijo.
    • This topic was modified 4 years, 2 months ago by maguijo.
    • This topic was modified 4 years, 2 months ago by maguijo.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Kevin Vess

    (@kevinvess)

    Hi– thanks for using Force Login!

    When you got a “white screen of death,” can you share what the errors were? You might have to enable WP_DEBUG mode to see the errors.

    Thanks!

    Thread Starter maguijo

    (@maguijo)

    I do have WP_DEBUG on, and the WP_DEBUG_LOG on, and even WP_DEBUG_DISPLAY on. It doesn’t give any errors anywhere, not even in my server error log or the php error log. That’s why I call it the White Screen of Death. If you look at the source, you just have
    <html>
    <body></body>
    </html>
    Very unhelpful.

    Plugin Author Kevin Vess

    (@kevinvess)

    I recommend you contact your hosting provider about this issue.

    It sounds like it might be connection timed out error. This appears when your website is trying to do more than your server can manage. It is particularly common on shared hosting where your memory limit is restricted.

    Common WordPress Errors

    Also, you might want to test those same pages with a default Twenty theme or Force Login disabled to see if you still get the white screen in those conditions.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘When using with Events Calendar AND Events Calendar slug is your home page’ is closed to new replies.