• Resolved siergiejto

    (@siergiejten)


    Hey, I had a well known issue with 404 errors in events preview (events come from import – also well know, but not fixed issue).

    One of your solution working – simple click “Update” button.

    The problem is that I have a hundreds of events and I would love to find some way to make it more easy.

    Tried with wordpress bulk edit option, but that don’t work. I really need open every single event and press this “update” button.

    I saw a lot about this issue in both here and on your forum. Is there any solution which can help me make this more easy?

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Support Atousa Najafi

    (@atousanajafi)

    Hi @siergiejten,

    Could you please confirm that you’ve already tried the solutions in the following article? https://theeventscalendar.com/knowledgebase/fixing-http-404-errors/

    For me to understand and learn more about your setup, could you provide the following version of the following?

    1. PHP
    2. WordPress
    3. The Events Calendar
    4. Theme and Version


    Could you share the direct URL to the page you’re having issues with? Please do not share any credentials, this is for us to follow the WordPress Forum Guidelines.

    Thread Starter siergiejto

    (@siergiejten)

    As I said: “One of your solution working – simple click “Update” button.”.

    And that come from link you gave me.

    “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.”

    The problem is well know and it’s connected with xml import errors (https://theeventscalendar.com/known-issues/#dl_wp-all-import).

    To regenerate data I’m forced to use “Update” button. After that all working. And as I said I have hundreads of events, so I’m looking for a way to easy update all. Is there any solution for that?

    PHP 8.1, WP and your plugin last version

    • This reply was modified 1 year, 2 months ago by siergiejto.

    Hello @siergiejten,

    Thanks for your reply.

    To bulk update events, go to Events in your dashboard, select the ones you want to update, toggle Bulk actions to Edit, and hit Updatehttps://share.zight.com/E0uJ72GX.

    I hope that helps. Please let us know how it goes.

    Thread Starter siergiejto

    (@siergiejten)

    From first post: “Tried with wordpress bulk edit option, but that don’t work. I really need open every single event and press this “update” button.”

    Plugin Support Darian

    (@d0153)

    Hi @siergiejten

    Thanks for your message.

    We do have a partial fix about the WP All Import issue. However, you will need to use the WP All Import PRO plugin in order for this to work.

    To know more on how to migrate your events, please see https://theeventscalendar.com/extensions/wp-all-import-add-on-for-the-events-calendar/

    Thread Starter siergiejto

    (@siergiejten)

    I’m not using WP All Import, so this partial fix is not for me.

    I also don’t really believe that someday you will finally fix this issue.

    So we back to first message here. To deal with 404 I’m forced to use “Update” button for every event. Do you have any solution that can help me with this? I have hundreds of events and I really don’t want do it manually. Maybe some snippet or addon that will help recreate missing db fields?

    Plugin Support Darian

    (@d0153)

    Hi @siergiejten

    Could you try the snippet below and replace the $event_id with one of your event’s id that needs to be updated, and see if that works for you:

    tribe()->make( \TEC\Events\Custom_Tables\V1\Repository\Events::class )->update( $event_id, [] );

    To get the event ID, you’ll need to edit one of your events and you should have this URL wp-admin/post.php?post=1445&action=edit . The 1445 is the event ID.

    As always, please test it first on a staging version of your live site to avoid unnecessary downtime.

    Let me know how it goes.

    Thread Starter siergiejto

    (@siergiejten)

    Critical error and calendar went down after using this code. Any other ideas?

    • This reply was modified 1 year, 2 months ago by siergiejto.
    Plugin Support Darian

    (@d0153)

    Hi @siergiejten

    Thanks for your response.

    Could I ask how you run the snippet code? Were you using a plugin or did you directly add it in functions.php?

    If you’re not familiar with coding, you can use the Code Snippets plugin, which removes the need to add custom snippets to your theme’s functions.php file. When you add the snippet code, please set it to run only once.

    Looking forward to your reply.

    Plugin Support Darian

    (@d0153)

    Hi there,

    It seems like it has been some time since we received a response from you, therefore, I will consider this matter as resolved. If you require any further assistance, please do not hesitate to start a new thread.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Bulk update events’ is closed to new replies.