• Resolved mhurwicz

    (@mhurwicz)


    Logged in as a user with admin privileges
    Clicked “deactivate” on a plugin.
    Got the below fatal error and continued to get this just going to the site.

    Disabled email-subscribers by renaming the folder in plugins using cpanel file manager. That fixes the site, but if I reactivate email-subscribers, the fatal error recurs.

    Fatal error: Uncaught RuntimeException: Error saving action: Error saving
    action: Database error. in /home/myaccount/public_html/mydomain.com/wp-
    content/plugins/email-subscribers/lite/includes/libraries/action-
    scheduler/classes/migration/ActionScheduler_DBStoreMigrator.php:44 Stack trace: #0 /home/myaccount/public_html/mydomain.com/wp-content/plugins/email-
    subscribers/lite/includes/libraries/action-scheduler/classes/data-
    stores/ActionScheduler_HybridStore.php(242): ActionScheduler_DBStoreMigrator-
    >save_action(Object(ActionScheduler_Action), NULL) #1
    /home/myaccount/public_html/mydomain.com/wp-content/plugins/email-
    subscribers/lite/includes/libraries/action-
    scheduler/classes/ActionScheduler_ActionFactory.php(177):
    ActionScheduler_HybridStore->save_action(Object(ActionScheduler_Action)) #2
    /home/myaccount/public_html/mydomain.com/wp-content/plugins/email-
    subscribers/lite/includes/libraries/action-
    scheduler/classes/ActionScheduler_ActionFactory.php(84):
    ActionScheduler_ActionFactory->store(Object(ActionScheduler_ in
    /home/myaccount/public_html/mydomain.com/wp-content/plugins/email-
    subscribers/lite/includes/libraries/action-
    scheduler/classes/migration/ActionScheduler_DBStoreMigrator.php on line 44
    There has been a critical error on this website. Please check your site admin
    email inbox for instructions.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter mhurwicz

    (@mhurwicz)

    Tried deleting email-subscribers (screen message said this was successful), downloading fresh zip file and reinstalling, but the problem comes back when ai activate email-subscribers. I notice deleting email-subscribers does not affect the wp_es database tables. Should I delete those manually?

    Plugin Contributor Malay Ladu

    (@malayladu)

    Hi,

    Sorry for the inconvenience you had.

    Please let us know which version of Email Subscribers & WordPress are you using?

    We will take a look at it and get back to you.

    Thread Starter mhurwicz

    (@mhurwicz)

    Since I reinstalled email-subscribers, I had the latest version: 4.7.2
    WordPress is the latest version: 5.7.2

    Thread Starter mhurwicz

    (@mhurwicz)

    BTW the URL shown above is not the real one. Also, email-subscribers is currently disabled by renaming the folder in cpanel.

    Plugin Contributor kishanranawat

    (@kishanranawat)

    Hi there,

    Email Subscribers plugin uses Action Scheduler library to perform some tasks in the background.

    From the error log messages which you have shared, it looks the issue is maybe related to corrupt database tables which were created by the Action Scheduler library. We suspect that the table {table_prefix}_actionscheduler_actions in the site’s database is missing the Primary Key or Auto-increment option or both which in turn preventing the Action Scheduler library from saving new actions in the table.

    Will it be possible for you to log in to some database management tools like phpMyAdmin and check mentioned table’s structure? It should look something similar to this. You can also contact your hosting provider in case if you need any help in accessing the database.

    If it doesn’t match with the above screenshot then you might need to modify the table structure to resolve the issue. Here is one useful article which we found related to this issue only which explains the steps to fix the issue in detail.

    In case if the table structure is correct then the issue might be with something. We may need to debug it further to find the exact issue.

    Hope this helps you. Let us know if you have any further queries.

    Thank you.

    Plugin Contributor kishanranawat

    (@kishanranawat)

    Hi there,

    Just following up on the issue.

    Was our previous reply helpful in resolving the issue? Is it resolved or are you still facing the issue? Please let us know.

    Also, let us know if you have any further queries.

    Thank you.

    Thread Starter mhurwicz

    (@mhurwicz)

    Actually, I ended up rebuilding the site from the ground up and using a different notifications plugin.

    Plugin Contributor kishanranawat

    (@kishanranawat)

    Hi there,

    Thanks for your response.

    Glad to hear that in the last, you found a solution that is working in your case.

    I am marking this thread as resolved. Feel free to open a new ticket if you need any help from us in the future.

    Thank you.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘fatal error trying to deactivate a plugin’ is closed to new replies.