Title: PHP 7.0 compatible
Last modified: December 29, 2016

---

# PHP 7.0 compatible

 *  Resolved [boconpro](https://wordpress.org/support/users/boconpro/)
 * (@boconpro)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/php-7-0-compatible-3/)
 * Hello everyone,
 * our provider is switching to php 7. We have run the WP Engine PHP Compatibility
   Checker and it says that Events Manager is possibly not PHP 7.0 compatible.
 * Are there any known issues or can we switch to php 7?
 * Thanks!

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

 *  [Chris Daley](https://wordpress.org/support/users/phxchris/)
 * (@phxchris)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/php-7-0-compatible-3/#post-8601983)
 * Seeing “[] operator not supported for strings” errors (em-events.php, line 63)
   when using PHP 7.1.
 * From the PHP.net 7.1 _Backward incompatible changes _page, Applying the empty
   index operator to a string (e.g. $str[] = $x) throws a fatal error instead of
   converting silently to array.
 * If they are going to PHP 7.1, vs. 7.0, this plugin will fail.
    -  This reply was modified 9 years, 5 months ago by [Chris Daley](https://wordpress.org/support/users/phxchris/).
      Reason: Added Backward Incompatible Change info
 *  [caimin_nwl](https://wordpress.org/support/users/caimin_nwl/)
 * (@caimin_nwl)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/php-7-0-compatible-3/#post-8604063)
 * [@boconpro](https://wordpress.org/support/users/boconpro/) Are you seeing any
   specific error messages?
 *  [Chris Daley](https://wordpress.org/support/users/phxchris/)
 * (@phxchris)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/php-7-0-compatible-3/#post-8604267)
 * Yes, seeing “[] operator not supported for strings” errors in classes/em-events.
   php, line 63.
 * If you change line 36 in classes/em-events.php to `$groupby_sql = array();` the
   issue goes away and the rest of the code appears to be working correctly.
    -  This reply was modified 9 years, 5 months ago by [Chris Daley](https://wordpress.org/support/users/phxchris/).
 *  [caimin_nwl](https://wordpress.org/support/users/caimin_nwl/)
 * (@caimin_nwl)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/php-7-0-compatible-3/#post-8609646)
 * Thanks. There are a couple of issues logged relating to PHP 7; I’ve add this 
   thread to them.
 *  [OceanWind](https://wordpress.org/support/users/oceanwind/)
 * (@oceanwind)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/php-7-0-compatible-3/#post-8610429)
 * My host just upgraded to PHP 7.0, and the Comment options have disappeared for
   all comments made to Event Manager events. These options appear for comments 
   made to posts, but not to events:
 * `Unapprove | Reply | Quick Edit | Edit | Spam | Trash`
 *  [OceanWind](https://wordpress.org/support/users/oceanwind/)
 * (@oceanwind)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/php-7-0-compatible-3/#post-8611305)
 * I take that back. PHP 7 is not the issue at all.
 * I migrated my site from multi-site to single-site, and this has really messed
   up Events Manager.
 * I’ll submit a separate ticket.

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

The topic ‘PHP 7.0 compatible’ 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](https://wordpress.org/support/topic-tag/php7/)

 * 6 replies
 * 4 participants
 * Last reply from: [OceanWind](https://wordpress.org/support/users/oceanwind/)
 * Last activity: [9 years, 4 months ago](https://wordpress.org/support/topic/php-7-0-compatible-3/#post-8611305)
 * Status: resolved