On occasion some event pages might start display a 404 – Not found page instead of the events. If this is happening to you please follow these steps to troubleshoot. Most folks can stop after step 1 because it will be fixed!
If most pages/posts on your site are working as expected and it seems like only event pages are being impacted, then it’s possible that all you need to do is refresh your permalink settings. Even if you’re already using pretty permalinks, you’ll want to refresh your permalink settings:
- Login to the WordPress admin area
- Visit the Settings → Permalinks screen
- Select the Post Name option from the list of common settings (or another one of the non-Default options)
- Save the changes
Now navigate to your main events page and ensure it and any other event pages such as alternative views or single event posts work as expected. If so, you can skip the rest of this guide.
Less common solutions
In the rare scenario where the above did not help, here are some more solutions that frequently work for those less common 404 – Page Not Found issues.
- Check our known issues page for a bug report. If there’s a workaround or partial solution, it’ll be listed there.
- Re-save the event. This can regenerate data that may be missing and causing the 404. If you are re-saving a recurring event, be sure to select the Save for all events option.
- Try pasting this snippet in your functions.php file. This fixes a unique conflict with some plugins/themes, that conflict causes all Single Events pages to be silently searching for a media attachment instead of an event. Thus you see a generic 404 since the attachment does not usually exist.
- Test if you are experiencing some other type of plugin conflict by following the steps detailed in this article. Once you’ve completed the “Test if there is a conflict” procedure, try refreshing permalinks again (by following the steps outlined above). Did that fix it? If not, what happens if you add a new event, does it 404? If a new event does not 404, does editing and then resaving a past event that still 404s remedy that event as well?
Further diagnostic steps
If none of the above solutions worked, here are some excellent ways you can collect more information about your setup and problem. With that extra information in hand, make a post to our help desk detailing the information you have collected and the steps you have tried.
- Are all pages on your site encountering 404 errors, or just event pages? If it is all pages on your site, you might need to contact your hosting provider or server administrator.
- Open a support ticket via our Help Desk and include a copy of your System Information from Events → Settings → Troubleshooting.
- Try switching your permalink settings to default. Does that fix it? If so, mention this when you open a support ticket.
- Try pasting this snippet into your theme’s functions.php file. This will output some diagnostic information about the event pages WP Queries. On the pages that returns a 404 append “?tribe_query_debug=true” to the end of the events URL in your browser address bar. After adding this snippet to your theme, share a link to the event page that returns a 404 via our help desk. This extra diagnostic info is a huge help. Once your problem has been fixed you should remove this snippet from your functions.php file.