Posted: March 23, 2023 at 11:03 am
Hi, lately my customers get a 404 page not found error when trying to buy tickets for an event, whenever there’s an update available for EE. After updating the error is fixed. Why is that. Regards, Mart. |
|
Hi Mart, Hmm, strange. This is not something I can reproduce. I can tell you why updating is fixing the problem, permalinks will be flushed once the plugin has been updated. However, an update showing for Event Espresso should not be causing any issues with permalinks, I tested an update on 4 different test sites and none of them show any 404 errors on EE event pages when an update is available so I’m not sure what is happening above. Does it happen as soon as the update shows? |
|
Hi Tony, i don’t know tbh. When customers cant register they mail us and i login to see what’s the problem. The plugin is on Auto update. Last time it said that the update was scheduled in 11 hours. So i manualy updated and the problem was solved. |
|
Hi, last Sunday there was a 404 error again, whenever customers clicked on a date to register. This time te permalinks didn’t work anymore. I had to change the way permalinks are handled in WP preferences. Very strange. |
|
Was that without an update showing for Event Espresso or with?
If I take the ‘this breaks when an update shows for Event Espresso’ out of the equation for a little then it sounds like something is hooking in and forcing permalinks to flush at an unexpected point in the request (before EE has been able to add its rewrite rules). If that’s the case, simply flushing permalinks (Dashboard -> Settings -> Permalinks, make no changes and just hit save) should fix it when it happens. I have a snippet you can add to the site that writes a log entry every time permalinks are flushed and a stacktrace of what called for it to happen and when which can help narrow this if the above is the problem. I can add details on how to add that if you’d like to try it? |
|
Hey Toni, it happened again today. It wasn’t related to an EE update. I’ve indeed just save permalinkssettings and the problem was solved. It’s a bit weird though why it happens so often lately. Been usisng EE for years and it never happened before. I dont’t know if it’s EE related. |
|
It could be a new plugin (or an update to a plugin, or even the theme) now flushed permalinks differently. Are you comfortable with PHP? For example, this is the snippet: https://gist.github.com/Pebblo/a6d2b949d0ae784c09de442b9848ff7d#file-1tw_log_rewrite_rules_array-php You can add that to a custom functions plugin on your site, we have some documentation on creating one here: https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/ Does that all make sense so far? |
|
I’m not that comfortable with php, but i’ll check the documentation. |
|
Just checking in to see how you go on with this? I can package the above into a plugin you just install if that’s easier? There is a change you need to make to the site within |
|
The support post ‘404 page whenever an update is available’ 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.