Title: Non compatible with php7.1 (+ fix)
Last modified: February 13, 2017

---

# Non compatible with php7.1 (+ fix)

 *  Resolved [pixeline](https://wordpress.org/support/users/pixeline/)
 * (@pixeline)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/non-compatible-with-php7-1/)
 * The plugin (version 5.6.6.1) does not work on php 7.1.
 * Error message appears upon activation:
 *     ```
       ( ! ) Fatal error: Uncaught Error: [] operator not supported for strings in /srv/www/domain.com/current/web/wp-content/plugins/events-manager/classes/em-events.php on line 63
       ```
   
 * Only solution for now is to remove the plugin from the plugin folder to auto-
   desactivate it.
 * See [this page](http://php.net/manual/en/migration71.incompatible.php) for a 
   list of incompatible changes migating from php7.0 to php7.1.
 * The fix is to replace the faulty line
 * `$groupby_sql = '';`
 * by
 * `$groupby_sql = [];`
 * And that’s it. It works.
    -  This topic was modified 9 years, 3 months ago by [pixeline](https://wordpress.org/support/users/pixeline/).
    -  This topic was modified 9 years, 3 months ago by [pixeline](https://wordpress.org/support/users/pixeline/).
      Reason: added a temporary fix
    -  This topic was modified 9 years, 3 months ago by [pixeline](https://wordpress.org/support/users/pixeline/).

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

 *  [caimin_nwl](https://wordpress.org/support/users/caimin_nwl/)
 * (@caimin_nwl)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/non-compatible-with-php7-1/#post-8812385)
 * Thanks, I’ve passed this on to the Dev team.
 *  Plugin Author [Marcus (aka @msykes)](https://wordpress.org/support/users/netweblogic/)
 * (@netweblogic)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/non-compatible-with-php7-1/#post-9020711)
 * 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 = ”;
 * to
 * $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.

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

The topic ‘Non compatible with php7.1 (+ fix)’ 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

 * [PHP7.1](https://wordpress.org/support/topic-tag/php7-1/)

 * 2 replies
 * 3 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/non-compatible-with-php7-1/#post-9020711)
 * Status: resolved