• Resolved cede007

    (@cede007)


    Hello, after trying to import settings from another events manager installation (from Version 6.1.3 to Version 6.3), there is a Typ E_ERROR.

    Now the events manager can’t be activated at all, every time an error message comes up. I have already uninstalled the plugin several times, reinstalled, the error remains. Even a complete duplicate of the page did not help.

    The error message:

    Ein Fehler vom Typ E_ERROR wurde in der Zeile 1467 der Datei …/wp-content/plugins/events-manager/em-install.php verursacht. Fehlermeldung: Uncaught TypeError: Cannot access offset of type string on string in …/wp-content/plugins/events-manager/em-install.php:1467
    Stack trace:
    #0 …/wp-content/plugins/events-manager/em-install.php(42): em_upgrade_current_installation()
    #1 …/wp-content/plugins/events-manager/events-manager.php(593): em_install()
    #2 …/wp-includes/class-wp-hook.php(308): em_init()
    #3 …/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
    #4 …/wp-includes/plugin.php(517): WP_Hook->do_action()
    #5 …/wp-settings.php(623): do_action()
    #6 …/wp-config.php(116): require_once('...')
    #7 …/wp-load.php(50): require_once('...')
    #8 …/wp-admin/admin.php(34): require_once('...')
    #9 …/wp-admin/plugins.php(10): require_once('...')
    #10 {main}
     thrown

    What can I do?

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

    (@joneiseman)

    Try this to re-install Events Manager.

    Install the Code Snippets plugin. Then in the backend click on Snippets > Add New

    Then give it a title and add the following code:

    update_option('dbem_version', '');

    Then underneath select “Only run once” and then click on the “Save Changes and Activate” button.

    Then try installing and activating the Events Manager plugin.

    This will probably not save any events that you have already created but it may allow you to install Events Manager.

    Thread Starter cede007

    (@cede007)

    Thank you for your answer. I have tested it, but unfortunately it does not work, the same error occurs. Could I also make a change directly in the database?

    joneiseman

    (@joneiseman)

    It’s crashing because it expects dbem_data in the wp_options table to be an array but instead it’s a string. Create a new code snippet just like the previous one but this time use the following code:

    update_option('dbem_data', array());

    Alternatively, you could modify the wp_options table. Search for the row with an option_name of “dbem_data” and change the option_value to this:

    a:0:{}
    Thread Starter cede007

    (@cede007)

    Great, thank you! This snippet works! Everything seems to be ok!

    Actually, such an error should not happen, right? I just tried to import the settings from the Events Manager, from an older version (6.1.3). I would have expected an error message, but not such a massive error.

    joneiseman

    (@joneiseman)

    Yes, I agree this should not happen. But since I don’t own this plugin, there’s not much I can do about it.

    Thread Starter cede007

    (@cede007)

    Now, for interest, I also tested the solution with the database entry. Works also!

    So I thank you again very much!

    • This reply was modified 3 years ago by cede007.
Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Typ E_ERROR after import settings’ is closed to new replies.