Title: PHP7 error
Last modified: December 11, 2016

---

# PHP7 error

 *  Resolved [mlbdenver](https://wordpress.org/support/users/mlbdenver/)
 * (@mlbdenver)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/php7-error-9/)
 * My site throws this error when I move into the admin area of my site from the
   front end after upgrading to 7.1. Using 5.6.6.1 Thought you would want to see
   the stack trace:
 * [11-Dec-2016 04:07:09 UTC] PHP Fatal error: Uncaught Error: [] operator not supported
   for strings in /home/xxxxxx/public_html/wp-content/plugins/events-manager/classes/
   em-events.php:63
    Stack trace: #0 /home/xxxxxx/public_html/wp-content/plugins/
   events-manager/widgets/em-events.php(69): EM_Events::get(Array) #1 /home/xxxxxx/
   public_html/wp-includes/class-wp-widget.php(395): EM_Widget->widget(Array, Array)#
   2 /home/xxxxxx/public_html/wp-includes/widgets.php(738): WP_Widget->display_callback(
   Array, Array) #3 /home/xxxxxx/public_html/wp-content/themes/genesis/lib/functions/
   widgetize.php(254): dynamic_sidebar(‘home-middle-rig…’) #4 /home/xxxxxx/public_html/
   wp-content/themes/xxxxxx/front-page.php(51): genesis_widget_area(‘home-middle-
   rig…’, Array) #5 /home/xxxxxx/public_html/wp-includes/class-wp-hook.php(298):
   xxx_home_sections(”) #6 /home/xxxxxx/public_html/wp-includes/class-wp-hook.php(
   323): WP_Hook->apply_filters(”, Array) #7 /home/xxxxxx/public_html/wp-includes/
   plugin.php(453): WP_Hook->do_action(Array) #8 /home/xxxxxx/public_ht in /home/
   xxxxxx/public_html/wp-content/plugins/events-manager/classes/em-events.php on
   line 63

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

 *  Plugin Support [angelo_nwl](https://wordpress.org/support/users/angelo_nwl/)
 * (@angelo_nwl)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/php7-error-9/#post-8543164)
 * this issue is already been reported and the devs are already looking into this.
 *  [petervanderdoes](https://wordpress.org/support/users/petervanderdoes/)
 * (@petervanderdoes)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/php7-error-9/#post-8544506)
 * If you are not afraid to edit files:
 * Open /home/xxxxxx/public_html/wp-content/plugins/events-manager/classes/em-events.
   php
 * Change line 36:
    $groupby_sql = ”; to $groupby_sql = [];
 * And you are good to go. Not sure if there are more problems like this.
 *  Thread Starter [mlbdenver](https://wordpress.org/support/users/mlbdenver/)
 * (@mlbdenver)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/php7-error-9/#post-8544563)
 * Thanks! Not afraid to edit files. Wasn’t sure if the devs were aware of this 
   one so I thought I’d post it.
 * (FWIW – I have so many other plugins with issues, I fear I’m a ways off from 
   PHP7)
 *  [ArnaudBan](https://wordpress.org/support/users/arnaudban/)
 * (@arnaudban)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/php7-error-9/#post-8617420)
 * Thank you Peter, editing the file work fine !
 *  [luntrasul](https://wordpress.org/support/users/luntrasul/)
 * (@luntrasul)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/php7-error-9/#post-8961327)
 * Yes work, thx [@petervanderdoes](https://wordpress.org/support/users/petervanderdoes/)
 *  [JohnRDOrazio](https://wordpress.org/support/users/lwangaman/)
 * (@lwangaman)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/php7-error-9/#post-8974387)
 * I was having the same problem after updating to PHP 7.1, I was getting the same
   error in my logs and I figured out to change the string definition to an array
   for the $groupby_sql variable. After that my site was working again.
 *  Plugin Author [Marcus (aka @msykes)](https://wordpress.org/support/users/netweblogic/)
 * (@netweblogic)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/php7-error-9/#post-9098423)
 * 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:
 * [http://wp-events-plugin.com/documentation/upgrade-dev-version/](http://wp-events-plugin.com/documentation/upgrade-dev-version/)

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

The topic ‘PHP7 error’ is closed to new replies.

 * ![](https://ps.w.org/events-manager/assets/icon-256x256.png?rev=3550347)
 * [Events Manager - Calendar, Bookings, Tickets, and more!](https://wordpress.org/plugins/events-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/events-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/events-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/events-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/events-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/events-manager/reviews/)

## Tags

 * [php-error](https://wordpress.org/support/topic-tag/php-error/)

 * 7 replies
 * 7 participants
 * Last reply from: [Marcus (aka @msykes)](https://wordpress.org/support/users/netweblogic/)
 * Last activity: [9 years, 1 month ago](https://wordpress.org/support/topic/php7-error-9/#post-9098423)
 * Status: resolved