• I can’t enable EM after update. All other plugins are disabled.
    PHP version 8.2
    Can’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)
  • This looks like the same problem that was reported here: https://www.ads-software.com/support/topic/problem-after-upgrade-to-v6-4-1/

    You can fix this by adding the following code after line 931 in wp-content/plugins/events-manager/em-install.php:

    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

    (@ekdesign1000)

    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

    (@ekdesign1000)

    DB error has gone after WP update.
    Thank you!

    @joneiseman Thxs for you solution!

    Solved in my case

    The developer should be applied this issue or similar

    Plugin Author Marcus

    (@msykes)

    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. For more detailed instructions, see our documentation for upgrading to dev versions.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Fatal error after update’ is closed to new replies.