• i remembered this plugin when i set up a new page. However this is a web server running nginx + php7.

    When trying to activate the plugin i got a php error for events-manager/classes/em-events.php line 63 ([] not accepted for string).

    Fix is simple:

    in line 51 of em-events.php add:


    //Create the SQL statement and execute

    $groupby_sql = array();

    if( !$count && $args[‘array’] ){

    Hope you guys add this in the next update so it won’t break again.

    ps: apache + php7 runs into the same error without the fix.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thanks. There’s a new version of the plugin due shortly that will correct issues with PHP 7.

    Hi, I having a similar problem, only I can’t login to the admin. All I see is: Fatal error: Uncaught Error: [] operator not supported for strings in /home/allemang/public_html/hv-arena.be/wp-content/plugins/events-manager/classes/em-events.php:63 Stack trace: #0 /home/allemang/public_html/hv-arena.be/wp-content/plugins/events-manager/classes/em-events.php(124): EM_Events::get(Array, true) #1 /home/allemang/public_html/hv-arena.be/wp-content/plugins/events-manager/admin/em-admin.php(21): EM_Events::count(Array) #2 /home/allemang/public_html/hv-arena.be/wp-includes/class-wp-hook.php(298): em_admin_menu(”) #3 /home/allemang/public_html/hv-arena.be/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters(NULL, Array) #4 /home/allemang/public_html/hv-arena.be/wp-includes/plugin.php(453): WP_Hook->do_action(Array) #5 /home/allemang/public_html/hv-arena.be/wp-admin/includes/menu.php(149): do_action(‘admin_menu’, ”) #6 /home/allemang/public_html/hv-arena.be/wp-admin/menu.php(282): require_once(‘/home/allemang/…’) #7 /home/allemang/public_html/hv-arena.be/wp-admin/admin.php(138): require(‘/home/alleman in /home/allemang/public_html/hv-arena.be/wp-content/plugins/events-manager/classes/em-events.php on line 63

    Please advice as soon as you can, how I can solve this.

    Which version of PHP are you using?

    Any idea when that update will be coming? I am having a very similar issue with PHP 7 compatibility and its holding back a client site would be great to have an eta on the update

    Hi Caimin_nwl I had to delete the plug file via ftp. I couldn’t reach my site using the admin login, which isn’t ideal at all. I have no idea which version of PHP is installed on the server. The only thing that I can tell is that from last Tuesday onwards the error occured.

    @@joris1969 It would be worth checking with your hosting company to see if that’s when they upgraded your version of PHP. Your version of PHP is probably listed in your hosting control panel.

    @@murenovich Sorry, no exact ETA yet other than “very soon”. Switching to the Dev version of the plugin will give you quicker access to newer versions of the plugin:

    https://wp-events-plugin.com/documentation/upgrade-dev-version/

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘php7 fix for error em-events.php line 63’ is closed to new replies.