• Resolved Dmitriy

    (@dimchik)


    Hi, I’m having the same issue on several unrelated sites. Every few days individual event pages become 404s. At the same time, unrelated individual pages for custom post types and native post category pages also return 404s. Tried disabling plugins one-by-one and the issue self-resolves only when Events calendar is disabled. The problem can also be fixed by flushing permalinks. Common thing between the sites is that they are hosted on WP Engine and have the Events Calendar plugin. This has been going on for the last few weeks. I went down the list from the 404 troubleshooting page and tried adding the snippets from here and here to the functions.php. I collected the query dump from one of the 404 pages during one of these episodes and can collect more as these are very frequent. Is there anything else I can try? There are hundreds of events on one of the affected sites. I know you recommended resaving each of them in one of the posts here, but I think that’s not feasible with that many events. I can provide more info privately. Thanks.

Viewing 15 replies - 1 through 15 (of 37 total)
  • Same here. I reset the permalinks and they come back, only to disappear within days. My client wants me to bag this plugin and find another solution.

    Plugin Support Chika Ibeneme

    (@chikaibeneme)

    Hi @dimchik and @jcallanan,

    Thanks for reaching out, I apologize for the issues that you’ve run into here.

    In addition to flushing your permalinks, this might also be related to a caching plugin configuration problem, https://theeventscalendar.com/knowledgebase/?s=caching&post_type%5B%5D=tribe-knowledgebase&submit=

    that go into detail on configuration, however, if your caching solution isn’t listed there, you can try using the list here: https://theeventscalendar.com/knowledgebase/k/caching-basics/ and add those files/urls to your exclusion list and let me know if this helps.

    Thread Starter Dmitriy

    (@dimchik)

    @chikaibeneme, I appreciate the suggestion, but excluding .js and .css files from cache won’t do much in this case because these are front-end files and the page never gets to load them due to 404. It happened again today and the client now requested that I remove the plugin.

    @jcallanan, thank you for chiming in here! I am curious if you are having this issue on WP Engine or some other host.

    @dimchik – I’m also on WPEngine. Do you think that has something to do with it? It’s happened at least 4 times in the last 10 days and I just need to change the permalinks to “custom” but using the same format (/postname) and the events are restored. But my client is near the end of their patience with this.

    Thread Starter Dmitriy

    (@dimchik)

    So far I’ve seen this issue on WP Engine on 3 unrelated sites, but of course it is too small of a sample size to to be certain that it is a hosting conflict. Restoration usually involves anything that triggers permalink flush, easiest being pressing “Save Changes” on the Permalink Settings page. Disabling/enabling Events plugin also works, as does temporarily switching a theme. I’ve also noticed that it happens when someone is editing a new or existing event item, but I could not consistently recreate it as of yet. Each site with this problem had a custom permalink structure, though that in itself should not be a crime. What’s weird is that it breaks any permalinks that are not pages along with it, like other CPTs, native categories and other taxonomies.

    Plugin Support Darian

    (@d0153)

    Hi @dimchik @jcallanan

    Can you try disabling the Object Cache from your server and see if the issue persists?

    Please also provide the version of the following. This will help me understand how your system is set up.

    • PHP
    • WordPress
    • The Events Calendar
    • Theme
    • Caching plugin (if any)
    • event URL of one of your events
    Thread Starter Dmitriy

    (@dimchik)

    Since this is on multiple sites, I’ll comment on 2 sites that experienced it today:

    PHP 7.4 and 8.0 both affected
    WP 6.2.2
    TEC 6.0.13.1 (previous few versions also affected)
    2 different custom themes from 2 different agencies
    No additional caching installed in either case
    With and without Object Cache turned on
    omitting listing URLs here due to client privacy

    Note that I also opened a ticket via Events Pro support and working with someone there.

    Hi
    We’re also experiencing exactly the same issue, also hosted on WP Engine. Happened about 4 times, first time was the 25th of May 2023, latest time is 2 June 2023 at 10:53am BST

    PHP: 7.4
    WP: 6.2.2
    TEC: 6.0.13.1
    TEC Pro: 6.0.12.1
    Theme: Custom
    Caching Plugin: No additional caching installed. With and without Object Cache turned on
    Event URL: Omitting listing URLs here due to client privacy

    Plugin Support Darian

    (@d0153)

    Hi @dimchik @ctdev2023

    Thanks for your response.

    It seems you have an active license with us. Unfortunately, we cannot provide support in this forum for premium users.

    For us to help you better, please open a Support Ticket on our Help Desk.

    You’ll hear from one of my colleagues soon!

    We are also hosting 100+ websites with WP Engine and this issue has happened on 5 of our site’s that use The Events Calendar Pro. We have to flush the permalinks every day or so and our client’s are getting very frustrated with the 404’s and downtime.

    When I went to the Redirection plugin settings page I noticed a REST API 404 error. When I tried to access my REST API url it also gave me a 404. When I checked the Site Health I saw that the REST API encountered an unexpected result. This seems to be happening each time the 404 issue shows us.

    Plugin Support Darian

    (@d0153)

    Hi @joshpaynedesigns

    I’m sorry to hear that you’re also experiencing this issue.

    Unfortunately, we cannot provide support in this forum for premium users.

    For us to help you better, please open a Support Ticket on our Help Desk.

    You’ll hear from one of my colleagues soon!

    @dimchik Have you had any luck with getting this fixed? I’m seeing it more and more on our WPE sites. I have a ticket open with Events Cal but have not heard about a fix yet. Any luck on your end?

    Thread Starter Dmitriy

    (@dimchik)

    @joshpaynedesigns negative. Was told to provide DB dump during next occurrence along with some 404 URLs. They suspected YOAST SEO plugin interference but not 100% on that yet. I’ll post here if we get a resolution.

    PHP: 8.0
    WordPress: 6.2.2
    TEC: 6.0.13.1
    TEC Virtual Events: 1.13.6
    No Caching Plugins
    Object Cache Cleared and Disabled

    @dimchik I have also suspected YOAST SEO as causing the issues. Next time it happened’s check your Site Health is WP and see if there is a REST API error. I see it every time now. Events Cal has be get WPE to exclude the plugin assets and the REST API from WPE cache. Didn’t seem to help though.

    ^/wp-content/plugins/the-events-calendar/(.*).css

    ^/wp-content/plugins/the-events-calendar/(.*).js

    ^/wp-content/plugins/events-calendar-pro/(.*).css

    ^/wp-content/plugins/events-calendar-pro/(.*).js

    ^/wp-json

Viewing 15 replies - 1 through 15 (of 37 total)
  • The topic ‘Frequent 404 Errors on individual events and unrelated CPTs’ is closed to new replies.