• Resolved Sea Jay

    (@jcollier)


    I have a multisite instance with EM active on site 2 and working well.

    However, on site 3, when I activate EM, I can create a new event, but I get this error when saving: “Something went wrong saving your event to the index table. Please inform a site administrator about this.”

    So, I looked in the database. Site 2 has these tables:

    wpmu2_em_bookings
    wpmu2_em_events
    wpmu2_em_locations
    wpmu2_em_meta
    wpmu2_em_tickets
    wpmu2_em_ticket_bookings

    However, for site 3, there are no em tables at all.

    So, I went to the site 3 plugins dashboard and clicked on EM Uninstall. However, it gets stuck at “Deleting…” in red with no action.

    How can I reset without losing the EM data for site 2, which is working great!

    (Other than this challenge, I’m ready to upgrade to pro.)

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi Jay,
    EM User here. 🙂

    You might try to trigger the install for blog 3 manually.

    In the functions.php of Blog 3, add these lines at the bottom of the file:

    em_create_events_table();
    em_create_events_meta_table();
    em_create_locations_table();
    em_create_bookings_table();
    em_create_tickets_table();
    em_create_tickets_bookings_table();
    em_add_options();
    

    Then in your Blog 3 dashboard, refresh the page.
    Check your database if the new tables have been created for Blog 3.
    Go back to your functions.php, delete the added lines.

    Note:
    Adding these lines will automatically trigger the execution of these install functions. Normally that is done by EM, but something went wrong… If you leave the lines in your functions.php, the functions will be re-executed every time the functions.php is called. And we won’t want that 🙂

    Thread Starter Sea Jay

    (@jcollier)

    That is a great lead!

    However, when I followed those steps, I received an error:

    Fatal error: Uncaught Error: Call to undefined function em_create_events_table() in …

    My PHP is somewhat limited. Are there other commands that need to be wrapped around those lines?

    Well, first please make sure you are using PHP 7, especially with WordPress 5.0 coming up.

    For those functions to work, EM needs to be activated on blog 3, else WordPress will not load the functions 🙂

    You can also try this:
    (Without the lines in functions.php).
    Deactivate Events Manager on Blog 3.

    In the functions.php you can add this:
    delete_option('dbem_version');
    Deleting this option, should trigger EM to (re)install itself.
    Reload your Dashboard.
    Delete the “delete_option” line from your functions.php (otherwise you’ll be looping adding and deleting.)
    Activate EM on blog 3. The installer should be re-triggered.

    Thread Starter Sea Jay

    (@jcollier)

    That worked. Perfect!

    Much appreciated.

    My pleasure! Glad I could help and that it’s solved for you 😀

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

The topic ‘Uninstall/delete frozen’ is closed to new replies.