Support » Plugin: Events Manager » Updating recurring events removes postmeta table entries

  • Resolved wafisher

    (@wafisher)


    Updating recurring events removes postmeta table entries that have nothing to do with Events Manager. I am on the latest version of WordPress (4.7.5) and Events Manager (5.7.2). I can update normal events without issue. When I try to update a recurring event with a simple text change to the description and adding an excerpt, there are massive changes to the postmeta table and it completely ruins my site. For example, the first 690 entries in the postmeta table are missing when I updated a recurring event (includes entries from WordPress (menu items, edit_lock, _edit_last,etc), Gravity Forms, and Advanced Custom Fields). In addition to those, there are other random postmeta entries that are missing, none have anything to do with Events Manager.

    Other installed plug-ins: Advanced Custom Fields, Advanced Custom Fields: Repeater Field, Awesome Weather Widget, Gravity Forms, Gravity Forms, Gravity Forms + Custom Post Types, Sucuri Security, Yoast SEO

    We have been using this setup for quite some time without any issues. No changes except WordPress/Plug-in updates and this started happening within the past week. Any help or insight is appreciated.

Viewing 7 replies - 1 through 7 (of 7 total)
  • angelo_nwl

    (@angelo_nwl)

    NetWebLogic Support

    we tried this on our test site and seems to be working fine; can you check your php logs to see if there’s any other error?

    wafisher

    (@wafisher)

    Nothing is added to the error_log when this happens. I am able to reproduce it every time I try to update a recurring event. Tested on a separate server & site with similar result (deleting rows it shouldn’t touch).

    wafisher

    (@wafisher)

    I have updated to the dev version 5.7.2.2 and the problem seems to be fixed.

    +1 on this bug. It’s deleting all my home page post meta.

    I have traced to line 2316 of em-event.php:

    $wpdb->query(“DELETE FROM {$wpdb->postmeta} WHERE post_id IN (“.implode(‘,’, array_keys($post_ids)).”)”);

    I’m getting this too, though it seems to be just hitting update – without making a change – also triggers the bug, I’ve let the Dev team know.

    Just to let you know that a fix is being worked on. We’ll update this thread as soon as it’s available.

    Plugin Author Marcus

    (@netweblogic)

    NetWebLogic Support

    Hi, I’m sorry for the inconvenience. This has already been fixed in the latest dev version as indicated by wafisher, which you can already update to automatically as described here – http://wp-events-plugin.com/documentation/upgrade-dev-version/

    We’ll be putting this out in a new update within the next few days.

Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.