Support » Plugin: WP Mail SMTP by WPForms » Version 2.1.1 crashing WP-Admin

  • Resolved Frank Gomez

    (@frank6tg)


    Version 2.1.1 caused WordPress Admin to Crash. What is weird to me is what does SMTP have to do with WooCommerce?

    Error Details
    =============
    An error of type E_ERROR was caused in line 44 of the file /home/s161/html/wp-content/plugins/wp-mail-smtp/vendor/woocommerce/action-scheduler/classes/migration/ActionScheduler_DBStoreMigrator.php. Error message: Uncaught RuntimeException: Error saving action: Error saving action: Table ‘s161.wpii_actionscheduler_actions’ doesn’t exist in /home/s161/html/wp-content/plugins/wp-mail-smtp/vendor/woocommerce/action-scheduler/classes/migration/ActionScheduler_DBStoreMigrator.php:44
    Stack trace:
    #0 /home/s161/html/wp-content/plugins/wp-mail-smtp/vendor/woocommerce/action-scheduler/classes/data-stores/ActionScheduler_HybridStore.php(242): ActionScheduler_DBStoreMigrator->save_action(Object(ActionScheduler_Action), NULL)
    #1 /home/s161/html/wp-content/plugins/wp-mail-smtp/vendor/woocommerce/action-scheduler/classes/ActionScheduler_ActionFactory.php(177): ActionScheduler_HybridStore->save_action(Object(ActionScheduler_Action))
    #2 /home/s161/html/wp-content/plugins/wp-mail-smtp/vendor/woocommerce/action-scheduler/classes/ActionScheduler_ActionFactory.php(84): ActionScheduler_ActionFactory->store(Object(ActionScheduler_Action))
    #3 /home/s161/html/wp-content/plugins/wp-mail-smtp/vendor/woocommerce/action-scheduler/functions.php(36

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • I just resolved the exact same problem.

    Download and install this action scheduler plugin:
    https://github.com/woocommerce/action-scheduler/archive/3.1.4.zip

    Then use that plugin to create the data base tables related to the action scheduler plugin simply by loading the interface via wp-admin:
    https://yoursite.com/wp-admin/tools.php?page=action-scheduler

    You’ll see a notification banner at the top indicated the service will try to recreate the missing tables for the action scheduler.

    Once that’s done, try the WP Mail SMTP plugin again.

    Plugin Author Gregor Capuder

    (@capuderg)

    Hi @frank6tg,

    our plugin is using Action Scheduler library from version v2.1. and WooCommerce is the author of this library, that’s why you see the WooCommerce in the error output.

    Please visit this support post for more information and possible solutions: https://wordpress.org/support/topic/there-has-been-a-critical-error-on-your-website-45/

    @kinsilico thank you very much for providing your solution to fix these missing Action Scheduler database tables.

    Take care!

    Thread Starter Frank Gomez

    (@frank6tg)

    I see. Thank you for the information. I’ll try the fix.
    Once action scheduler database tables are there the I’ll delete the plugin. Curious, I use WP SMTP Mail on dozen’s of sites. None have WooCommerce. Why wouldn’t EVERY site have a problem?

    Thread Starter Frank Gomez

    (@frank6tg)

    The solution didn’t work. I installed and activated Action Scheduler and then updated WP SMTP Mail and got this error:

    Update Failed: {“success”:true,”data”:{“update”:”plugin”,”slug”:”wp-mail-smtp”,”oldVersion”:”Version 2.0.1″,”newVersion”:”Version 2.1.1″,”plugin”:”wp-mail-smtp\/wp_mail_smtp.php”,”pluginName”:”WP Mail SMTP”}}

    Plugin Author Gregor Capuder

    (@capuderg)

    Hi,

    @dantianhealth – Action Scheduler library is made by the WooCommerce team and it allows us to trigger and process async tasks. WooCommerce (as a plugin) does not have anything to do with this issue. The name “WooCommerce” is just mentioned in the error because the file path contains the name “woocommerce” part.

    We are not sure why this DB table creation is failing for some users. @frank6tg as you said, the v2.1.1 update only caused issue on one of your sites, right?

    @frank6tg after installing the Action Scheduler plugin linked in @kinsilico post above, did you also visit the https://yoursite.com/wp-admin/tools.php?page=action-scheduler page on your WP site? This should trigger the database table creation.

    Once that is done you can delete the Action Scheduler plugin and install the latest version of our WP Mail SMTP plugin.

    Let me know if this resolved your issue.

    Take care!

    Thread Starter Frank Gomez

    (@frank6tg)

    The solution here: https://wordpress.org/support/topic/there-has-been-a-critical-error-on-your-website-45/ works.

    1. I Removed version 2.1.1 of WP SMTP Mail via FTP
    2. installed old version of WP SMTP Mail
    3. installed action scheduler
    4. visitied this url https://yourwpsite.xyz/wp-admin/tools.php?page=action-scheduler
    5. Reloaded URL – should show hook / database info
    6. Updated WP SMTP Mail
    7. Tested for problems
    Plugin Author Gregor Capuder

    (@capuderg)

    Hi @frank6tg,

    great! Thank you for letting us know.

    Have a nice day!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Version 2.1.1 crashing WP-Admin’ is closed to new replies.