Title: Fatal error after update
Last modified: July 17, 2023

---

# Fatal error after update

 *  Resolved [ekdesign1000](https://wordpress.org/support/users/ekdesign1000/)
 * (@ekdesign1000)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/fatal-error-after-update-130/)
 * I can’t enable EM after update. All other plugins are disabled.
   PHP version 8.2Can’t
   update to any other version.
 * **Warning**: Illegal string offset ‘admin-modals’ in **/home/civil/public_html/
   wp-content/plugins/events-manager/em-install.php** on line **933**
   **Notice**:
   Array to string conversion in **/home/civil/public_html/wp-content/plugins/events-
   manager/em-install.php** on line **933****Warning**: Illegal string offset ‘admin-
   modals’ in **/home/civil/public_html/wp-content/plugins/events-manager/em-install.
   php** on line **934****Warning**: Illegal string offset ‘admin-modals’ in **/
   home/civil/public_html/wp-content/plugins/events-manager/em-install.php** on 
   line **934****Notice**: Array to string conversion in **/home/civil/public_html/
   wp-content/plugins/events-manager/em-install.php** on line **934****Warning**:
   Illegal string offset ‘admin-modals’ in **/home/civil/public_html/wp-content/
   plugins/events-manager/em-install.php** on line **935****Fatal error**: Uncaught
   Error: Cannot use string offset as an array in /home/civil/public_html/wp-content/
   plugins/events-manager/em-install.php:935 Stack trace: #0 /home/civil/public_html/
   wp-content/plugins/events-manager/em-install.php(42): em_upgrade_current_installation()#
   1 /home/civil/public_html/wp-content/plugins/events-manager/events-manager.php(
   642): em_install() #2 /home/civil/public_html/wp-includes/class-wp-hook.php(308):
   em_init(”) #3 /home/civil/public_html/wp-includes/class-wp-hook.php(332): WP_Hook-
   >apply_filters(NULL, Array) #4 /home/civil/public_html/wp-includes/plugin.php(
   517): WP_Hook->do_action(Array) #5 /home/civil/public_html/wp-settings.php(623):
   do_action(‘init’) #6 /home/civil/public_html/wp-config.php(77): require_once(‘/
   home/civil/pub…’) #7 /home/civil/public_html/wp-load.php(50): require_once(‘/
   home/civil/pub…’) #8 /home/civil/public_html/wp-admin/admin.php(34): require_once(‘/
   home/civil/pub…’) #9 /home/civil/public_html/wp-admin/plugins.php(10): require_once(‘/
   home/civil/pub…’) #10 {ma in **/home/civil/public_html/wp-content/plugins/events-
   manager/em-install.php** on line **935**

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

 *  [joneiseman](https://wordpress.org/support/users/joneiseman/)
 * (@joneiseman)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/fatal-error-after-update-130/#post-16900433)
 * This looks like the same problem that was reported here: [https://wordpress.org/support/topic/problem-after-upgrade-to-v6-4-1/](https://wordpress.org/support/topic/problem-after-upgrade-to-v6-4-1/)
 *  [joneiseman](https://wordpress.org/support/users/joneiseman/)
 * (@joneiseman)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/fatal-error-after-update-130/#post-16901176)
 * You can fix this by adding the following code after line 931 in wp-content/plugins/
   events-manager/em-install.php:
 *     ```wp-block-code
       if ( ! is_array($data) )
           $data = array();
       ```
   
 * Once you have successfully activated the plugin you can remove this change or
   you can just leave it there until the next plugin update. Once the plugin is 
   activated you will no longer need this code change.
 *  Thread Starter [ekdesign1000](https://wordpress.org/support/users/ekdesign1000/)
 * (@ekdesign1000)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/fatal-error-after-update-130/#post-16902447)
 * Great! Fatal error is gone, but DB errors are appeared:
 * Unknown column ‘booking_meta_migrated’ in ‘where clause’]
   `SELECT booking_id,
   booking_meta FROM wp_em_bookings WHERE booking_meta_migrated IS NULL LIMIT 500`
 * **WordPress database error:** [Can’t DROP COLUMN `booking_meta_migrated`; check
   that it exists]
   `ALTER TABLE wp_em_bookings DROP ``booking_meta_migrated`
 * Please let me know if it is possible to fix
 * Thank you!
 *  Thread Starter [ekdesign1000](https://wordpress.org/support/users/ekdesign1000/)
 * (@ekdesign1000)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/fatal-error-after-update-130/#post-16902645)
 * DB error has gone after WP update. 
   Thank you!
 *  [alfredo49](https://wordpress.org/support/users/alfredo49/)
 * (@alfredo49)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/fatal-error-after-update-130/#post-16908798)
 * [@joneiseman](https://wordpress.org/support/users/joneiseman/) Thxs for you solution!
 * Solved in my case
 * The developer should be applied this issue or similar
 *  Plugin Author [Marcus](https://wordpress.org/support/users/msykes/)
 * (@msykes)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/fatal-error-after-update-130/#post-16914472)
 * Hello everyone, apologies for this error, this is something we never were able
   to reproduce but hard-coding the error ($data not being an array by default) 
   we confirmed the fix and have implemented it.
 * We’ve updated a dev version which will fix the issue and will soon release a 
   regular update with this and many more known bugfixes.
 * To upgrade to a dev version, visit _Dashboard > Events > Settings > Admin Tools_
   and click the _Check Dev Updates_ button. You’ll see the update appear on your
   plugins/updates page. You can also manually update by downloading the dev version
   [here](https://downloads.wordpress.org/plugin/events-manager.zip). For more detailed
   instructions, see our [documentation for upgrading to dev versions](http://wp-events-plugin.com/documentation/upgrade-dev-version/).

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

The topic ‘Fatal error after update’ is closed to new replies.

 * ![](https://ps.w.org/events-manager/assets/icon-256x256.png?rev=1039078)
 * [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/)

 * 6 replies
 * 4 participants
 * Last reply from: [Marcus](https://wordpress.org/support/users/msykes/)
 * Last activity: [2 years, 9 months ago](https://wordpress.org/support/topic/fatal-error-after-update-130/#post-16914472)
 * Status: resolved