Support » Plugin: Events Manager » Events Manager and problem with WP admin area

  • Resolved eamonlaser


    I’m moving a site to a newer server (same hosting company, both servers are Linux, just newer, higher spec server) and whenever Events Manager is enabled the WordPress backend stops being available.

    If I disable all other plugins and use a standard WordPress theme (Twenty Seventeen) I still get the same problem. As soon as I remove the Events Manager theme (using FTP) the backend works again.

    I’m using WordPress 4.7.2 and Event Manager

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Support angelo_nwl


    can you enable wp_debug or check your php logs to see if there’s any other error?

    Thread Starter eamonlaser


    Thanks – that would be a good first step! The error I get when I activate the events manager plugin is below. The server is running PHP 7.1

    Fatal error: Uncaught Error: [] operator not supported for strings in /home/testsite/public_html/wp-content/plugins/events-manager/classes/em-events.php:63 Stack trace: #0 /home/testsite/public_html/wp-content/plugins/events-manager/classes/em-events.php(124): EM_Events::get(Array, true) #1 /home/testsite/public_html/wp-content/plugins/events-manager/admin/em-admin.php(21): EM_Events::count(Array) #2 /home/testsite/public_html/wp-includes/class-wp-hook.php(298): em_admin_menu(”) #3 /home/testsite/public_html/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters(NULL, Array) #4 /home/testsite/public_html/wp-includes/plugin.php(453): WP_Hook->do_action(Array) #5 /home/testsite/public_html/wp-admin/includes/menu.php(149): do_action(‘admin_menu’, ”) #6 /home/testsite/public_html/wp-admin/menu.php(282): require_once(‘/home/thamenews…’) #7 /home/testsite/public_html/wp-admin/admin.php(138): require(‘/home/thamenews…’) #8 /home/testsite/public_html/wp-admin/plugins.php in /home/testsite/public_html/wp-content/plugins/events-manager/classes/em-events.php on line 63

    Are you able to test with PHP 5?

    Thread Starter eamonlaser


    The original site is running on PHP 5, the new server is running on PHP 7.1 so that is certainly one of the differences. Not sure if I can make this site run on PHP 5 in its current location.

    If you could that would help us confirm this is related to PHP 7. That said, I think that’s likely to be the issue so I’ve passed this thread on to the Dev team.

    Thread Starter eamonlaser


    I’ve now got the site running on PHP 5.5 and we are not getting these errors, so it looks like that’s the problem. We are able to try the site on these versions of PHP (if this helps) 5.5, 5.6, 7.0, 7.1

    Ok, great. Thanks for the extra testing I’ve updated the bug report.

    Plugin Author Marcus (aka @msykes)


    Hi, I’m sorry for the delayed reply. We’re working through various PHP 7 compatibility reports and trying to nail them all.

    We should have at least a dev version ready for download within the next few days, however the fix is pretty simple.

    On events-manager/classes/em-events.php on line 36 change this line:

    $groupby_sql = ”;


    $groupby_sql = array();

    I believe that’s the only fatal error in PHP 7.1 (7.0 was tested and should be fine), but we’re working on various warnings/notices that cropped up since the .1 update.

    Plugin Author Marcus (aka @msykes)


    Hi everyone, sorry for the delayed replies, a way overdue update is scheduled for next week which fixes all reported PHP 7 errors and warnings. The dev version is a RC, considered stable and already available to try:

    Hi have this same error and i did deactivate a lot of plugin without fixing it for WP 4.8.

    • This reply was modified 5 years, 10 months ago by onigetoc.
    Plugin Author Marcus



    I think it’d be best you start a new thread as I’m pretty sure the error won’t be related to PHP 7 anymore if you’re running the latest plugin updates. This issue is resolved.

    I’d suggest also deactivating ALL your plugins apart from EM and/or switching themes, to rule those out. If that doesn’t work, or when you find the conflicting plugin/theme, check your PHP logs to see if there’s anything there that’d give a clue as to what’s happening, which would help us or the other developer, depending where the problem lies.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Events Manager and problem with WP admin area’ is closed to new replies.