Support

Home Forums Event Espresso Premium Event pages suddenly not showing on site

Event pages suddenly not showing on site

Posted: July 25, 2023 at 1:51 am

Viewing 4 reply threads


haysmacintyre

July 25, 2023 at 1:51 am

realityhouse support

Hi all of our event pages became 404’s.

All other custom post types and permalink structures were still working perfectly fine, so this wasn’t a general permalink issue, it seemed to be just an event espresso permalink issue.

I went in and enabled/disabled the plugin, re-saved permalinks + purged cache, this has now resolved it,

We had an entire weekend of no one being able to access our events.

Could you advise what could of caused this and how we can make sure this does not happen again.


Tony

  • Support Staff

July 25, 2023 at 5:30 am

Hi there,

The above can happen if permalinks have been flushed at an unexpected point before EE could add its rules.

I went in and enabled/disabled the plugin, re-saved permalinks + purged cache, this has now resolved it,

When the above happens you can usually just go to Dashboard -> Settings -> Permalinks.

You don’t need to make any changes, just load the page and that will flush permalinks again to fix it.

Could you advise what could of caused this and how we can make sure this does not happen again.

I can’t tell you how to prevent it as it depends on what caused the permalinks to be flushed… however, I have a snippet which logs the rewrite rules each time they are flushed with a stack-trace of what called for the flush. It doesn’t fix anything but logs when cause the rewrite rules to be missing which we can then investigate further, however, that does mean that it needs to happen again on the site so it can be logged first.

Would you like to add that to site?


haysmacintyre

August 8, 2023 at 1:36 am

Hi there, yes we need to add this please as it has just happened again.

please advise if you are sending this to us or you need access.

thanks


Tony

  • Support Staff

August 8, 2023 at 5:45 am

The code is available here:

https://gist.github.com/Pebblo/a6d2b949d0ae784c09de442b9848ff7d#file-1tw_log_rewrite_rules_array-php

You can add that code to a custom functions plugin on the site, we have some documentation on creating one here:

https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/

You’ll also want to enable WP_DEBUG_LOG on the site, we have some details on that here:

https://eventespresso.com/wiki/troubleshooting-checklist/#wpdebug


haysmacintyre

August 10, 2023 at 1:31 am

thank you, we have added this and will be in touch if/when it happens again.

Viewing 4 reply threads

The support post ‘Event pages suddenly not showing on site’ 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