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.
- 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.
- Can you post a copy of your System Information from the WP Admin > Events > Settings > Help: System Information box? If you have input a license key for one our plugins in the Licenses page, make sure to remove or redact it from the system information text before sharing via our public help desk.
- 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. Please note, some 404 pages actually redirect you to a different URL, so when you click on a link like "example.com/event/event-name/2012-12-21/" you are taken to a URL such as "example.com/event/all". After adding this snippet to your theme, can you 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.
- Try switching your permalink settings to default. Does that fix it? If so, mention this if you open a topic.