500 error trying to update recurring events

Home Forums Calendar Products Events Calendar PRO 500 error trying to update recurring events

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1550967
    Frederick
    Participant

    Trying to update a recurring event in wp-admin leads to the page crashing and giving a 500 error every time. Updating other post types works just fine. Sometimes we’ll get a memory exhausted error (it’s at 512 MB on the server and 256 locally: Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 20480 bytes) in /var/www/public/wp-content/plugins/events-calendar-pro/src/Tribe/Recurrence.php on line 93), but not always. I’ve tried moving to to a local dev environment, using twentyseventeen and no non-Modern Tribe plugins, but still no go. Any advice?

    #1552034
    Cliff
    Member

    Hi, Frederick. Very sorry this is happening.

    1)

    Please enable WP_DEBUG and WP_DEBUG_LOG (which will create a file on your server at /wp-content/debug.log if there are any WP_DEBUG messages) and share any debug messages you see when trying again.

    2)

    One of the ways your WordPress site can be faster and perform better is by using a newer version of PHP.

    The oldest version of PHP that WordPress will support is 5.2 (from November 2006), but that’s from over a decade ago and the PHP team stopped supporting it in January 2011!

    There have been a number of performance improvements to each PHP version. Upgrading from 5.3 (June 2009) to 5.4 (June 2013) provided a healthy performance improvement. OPcache is enabled by default in PHP 5.5 (June 2013) and later. And upgrading from 5.6 (August 2014) to 7+ (December 2015) was a huge improvement to performance. FYI: there is no PHP 6. If interested, you can see PHP’s release history on Wikipedia.

    What is OPcache? Well, because PHP is server-side code, it needs to compile the script each time it executes. This includes all the code from WordPress core, your theme, and all your active plugins. OPcache caches the compiled PHP code so it doesn’t have to compile each time it executes. Basically, you want it because it’s great for improving performance.

    If these details aren’t enough to sway you to update your version of PHP (anything is better than nothing if you don’t want to be on the latest-greatest — so if you’re on 5.5, 5.6 is better!), you should take WordPress’ word for it. WordPress recommends PHP 7+, and they even provide a letter you can copy and paste to send to your web host.

    If your web host does not support PHP 7 or won’t upgrade your version of PHP at all, you should strongly consider switching web hosts (as recommended by WordPress).

    In conclusion, if you’re concerned about performance issues, you should start with having the most performant version of PHP (there are also other benefits like reduced security vulnerabilities).

    Note that when using the latest version of PHP, you will also need the latest (or at least recent) version of each of your site components (theme and plugins). Therefore, you should update WordPress core, all installed themes, and all installed plugins before updating your version of PHP.

    #1567676
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘500 error trying to update recurring events’ is closed to new replies.