• Resolved caffryfrankel

    (@caffryfrankel)


    I am trying to update to the latest version of The Events Calendar from a legacy site with a classic editor. In order not to break my site, I am doing it on a staging site here: https://www.hillstead.org/1676498327036/

    I can edit the single event pages (like this: https://www.hillstead.org/1676498327036/event/the-art-of-shearing/) but when I try to view them, I get a 404 error. This defeats to purpose of trying all of this out on a staging site. I have gone over all of this with the staging site plugin support people and they think that it has to do with your plugin.

    I have updated the plugin to the latest version. I have migrated my events. I have tried changing the permalink settings from plain to post but that doesn’t help.

    I have asked this question before but did not get an answer that fixed it. This is a very old site but I really want to get this updated.

    Thanks

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 29 total)
  • I have been having the same issue for nearly 40 days. Every morning I open the site and try to click on an individual event post and I get “Opps this page cannot be found” so I have to deactivate and reactivate the plugin. I am running PHP 7.4 as I thought that might be the cause. This all really began with the roll out of TEC 6.0. Any advice on how to avoid having to deactivate, reactivate TEC every morning?

    Plugin Support Darian

    (@d0153)

    Hi @caffryfrankel @tallydigitalbiz

    Thanks for reaching out, and my sincerest apologies for the inconvenience.

    Would it be possible for you to set up a staging version of your live site and try to re-do the migration from it? This is to recreate the proper event data and should fix the 404 issues.

    Here are the steps to revert and re-do the migration:

    1. Update to the latest versions of The Events Calendar and Events Calendar Pro.
    2. Remove any un-needed draft events and empty the Trash.
    3. Install and activate the Code Snippets plugin.
    4. Add this snippet and run it once (be sure it does not stay activated).
    5. Go to Events > Settings > Upgrades and go through the migration process again.

    Please re-do the migration on your staging site.

    Let me know how it goes.

    Thread Starter caffryfrankel

    (@caffryfrankel)

    Thanks for your answer. I followed your instructions (deleted any old or draft events and redid the migration) on my staging site and it still is giving me a 404 error when I try to view the actual single event pages.

    Any other thoughts?

    Plugin Support Darian

    (@d0153)

    Hi @caffryfrankel

    Could you try editing the event that has the issue, change the date to a new one, save it, and check if that makes a difference?

    Moreover, please provide the version of the following. This will help me understand how your system is set up.

    • PHP
    • WordPress
    • The Events Calendar
    • Theme
    Thread Starter caffryfrankel

    (@caffryfrankel)

    Thanks for getting back to me.

    Changing the date did not help.

    On the staging site, here is the system info

    PHP version 7.4.16?
    WordPress version 6.1.1
    The Events Calendar version 6.0.9
    Theme is a child’s theme possibly of Twenty Twelve

    Plugin Support Darian

    (@d0153)

    Hi @caffryfrankel

    May I ask for the version of The Events Calendar that you’re using on your live site? In addition, could you also provide the direct URL (from your staging) of one of the events that is showing 404 error? I’d like to check it further on my end.

    Moreover, please also provide the values of the following (from your staging):

    • Custom Tables Migration Status
    • Custom Tables Health Check

    You can find the values by navigating to Events > Troubleshooting.

    Looking forward to your reply.

    Thread Starter caffryfrankel

    (@caffryfrankel)

    The Events Calendar on Live site is here: Version 5.16.4 |
    Staging site is here: https://www.hillstead.org/1676498327036/
    404 error shows here on these single event pages: https://www.hillstead.org/1676498327036/event/the-art-of-shearing/
    https://www.hillstead.org/1676498327036/event/gala-2023/
    https://www.hillstead.org/1676498327036/?post_type=tribe_events&p=24768&preview=true

    I don’t understand how to get the Custom Tables values. There doesn’t seem to be any information on the troubleshooting page. but the Upgrade tab in settings says teh Migration is complete and lets me click on the events and get to the Edit Event page. But will not let me view it. Can you please let me know how to do this?

    Plugin Support Darian

    (@d0153)

    Hi @caffryfrankel

    If you’re using The Events Calendar 6.0.9, the the Custom Table values from the Troubleshooting page should be available.

    See- https://share.getcloudapp.com/YEueGKWY

    If you still could not see the values, I suggest re-doing the migration again.

    Could you try activating only our plugins and use a basic theme (e.g. 2020 theme), and check if that makes a difference?

    See- Testing Conflicts With Themes and Other Plugins

    Moreover, please provide the URL of your calendars page (in staging), and the name of your hosting provider.

    Looking forward to your response.

    Plugin Support Darian

    (@d0153)

    Hi @caffryfrankel

    I hope you are well. I wanted to follow up about the issue you encountered.

    Are you still experiencing the 404 error after migrating your events to the new Event Data System?

    Thread Starter caffryfrankel

    (@caffryfrankel)

    Thanks for getting back to me. I deactivated everything and still getting the error on single event pages.

    Custom Tables values as follows:
    Custom Tables Migration StatusCompleted
    Custom Tables Health CheckGood!

    My calendar listings page won’t show on the staging site. It should be https://www.hillstead.org/1676498327036/calendar but it redirects to an image on the live site (https://www.hillstead.org/wp-content/uploads/2015/02/calendar.jpg).

    Plugin Support Darian

    (@d0153)

    Hi @caffryfrankel

    Thanks for your response and for providing additional details.

    Could you try activating only our plugins and use a basic theme (e.g. 2020 theme), and check if that makes a difference?

    See-?Testing Conflicts With Themes and Other Plugins

    If that doesn’t help, please try to empty the additional content from Events > Settings > Display, and check if that helps.

    Let me know how it goes.

    Thread Starter caffryfrankel

    (@caffryfrankel)

    Thanks again. I tried all of this and had no luck. Still 404 on individual pages and calendar listing sending me to an image on the live page.

    I really would like to update to the latest version of The Events Calendar, but I can’t do it until I know it isn’t going to break my site.

    Plugin Support Darian

    (@d0153)

    Hi @caffryfrankel

    You could try creating a staging version of your live site using the WP Staging plugin and update The Events Calendar from there, and check if that resolves the issue.

    Let me know how it goes.

    Thread Starter caffryfrankel

    (@caffryfrankel)

    This is exactly what I am doing—using WP staging. And no luck.

    Plugin Support Darian

    (@d0153)

    Hi @caffryfrankel

    Just to confirm, you tried using a fresh copy of twenty-twenty theme and the issue persists? I am just making sure that there are no customizations running in the background.

    From your staging site, could you try adding this snippet code, flush your permalinks again, and check if that helps?

    <?php
    
    /*
     * Possible solution for Single Event page 404 errors where the WP_Query has an attachment set
     * IMPORTANT: Flush permalinks after pasting this code: https://tri.be/support/documentation/troubleshooting-404-errors/
     * Updated to work with post 3.10 versions
     */
    function tribe_attachment_404_fix () {
    	if (class_exists('Tribe__Events__Main')) {
    		remove_action( 'init', array( Tribe__Events__Main::instance(), 'init' ), 10 );
    		add_action( 'init', array( Tribe__Events__Main::instance(), 'init' ), 1 );
    	}
    }
    
    add_action( 'after_setup_theme', 'tribe_attachment_404_fix' );
Viewing 15 replies - 1 through 15 (of 29 total)
  • The topic ‘404 error on staging site’ is closed to new replies.