Title: Erro when activating plugin
Last modified: March 4, 2021

---

# Erro when activating plugin

 *  Resolved [michaelmorais](https://wordpress.org/support/users/michaelmorais/)
 * (@michaelmorais)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/erro-when-activating-plugin/)
 * I hve this massive error when activating the pluging WP Mail SMTP by WPForms
 *     ```
       The error: 
       ```
   
 * WordPress database error: [Table ‘localdb.wp_actionscheduler_actions’ doesn’t
   exist]
    SELECT a.action_id FROM wp_actionscheduler_actions a WHERE a.hook=’action_scheduler/
   migration_hook’ AND a.status=’in-progress’ ORDER BY scheduled_date_gmt DESC LIMIT
   1 WordPress database error: [Table ‘localdb.wp_actionscheduler_actions’ doesn’t
   exist] SELECT a.action_id FROM wp_actionscheduler_actions a WHERE a.hook=’action_scheduler/
   migration_hook’ AND a.status=’pending’ ORDER BY scheduled_date_gmt ASC LIMIT 
   1 WordPress database error: [Table ‘localdb.wp_actionscheduler_actions’ doesn’t
   exist] SELECT a.action_id FROM wp_actionscheduler_actions a WHERE a.hook=’action_scheduler/
   migration_hook’ AND a.status=’in-progress’ ORDER BY scheduled_date_gmt DESC LIMIT
   1 WordPress database error: [Table ‘localdb.wp_actionscheduler_actions’ doesn’t
   exist] SELECT a.action_id FROM wp_actionscheduler_actions a WHERE a.hook=’action_scheduler/
   migration_hook’ AND a.status=’pending’ ORDER BY scheduled_date_gmt ASC LIMIT 
   1 WordPress database error: [Table ‘localdb.wp_actionscheduler_groups’ doesn’t
   exist] SELECT group_id FROM wp_actionscheduler_groups WHERE slug=’action-scheduler-
   migration’ WordPress database error: [Table ‘localdb.wp_actionscheduler_groups’
   doesn’t exist] SHOW FULL COLUMNS FROM `wp_actionscheduler_groups` WordPress database
   error: [Table ‘localdb.wp_actionscheduler_actions’ doesn’t exist] SHOW FULL COLUMNS
   FROM `wp_actionscheduler_actions`
 * Fatal error: Uncaught RuntimeException: Error saving action: Error saving action:
   Table ‘localdb.wp_actionscheduler_actions’ doesn’t exist in D:\home\site\wwwroot\
   wp-content\plugins\wp-mail-smtp\vendor\woocommerce\action-scheduler\classes\migration\
   ActionScheduler_DBStoreMigrator.php:44 Stack trace: #0 D:\home\site\wwwroot\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 D:\home\site\wwwroot\wp-
   content\plugins\wp-mail-smtp\vendor\woocommerce\action-scheduler\classes\ActionScheduler_ActionFactory.
   php(177): ActionScheduler_HybridStore->save_action(Object(ActionScheduler_Action))#
   2 D:\home\site\wwwroot\wp-content\plugins\wp-mail-smtp\vendor\woocommerce\action-
   scheduler\classes\ActionScheduler_ActionFactory.php(84): ActionScheduler_ActionFactory-
   >store(Object(ActionScheduler_Action)) #3 D:\home\site\wwwroot\wp-content\plugins\
   wp-mail-smtp\vendor\woocommerce\action- in D:\home\site\wwwroot\wp-content\plugins\
   wp-mail-smtp\vendor\woocommerce\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.`
 * I see a lot of woocommerce related actions to be done but iam not using woocomerse
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ferro-when-activating-plugin%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [Sanjeev Aryal](https://wordpress.org/support/users/sanzeeb3/)
 * (@sanzeeb3)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/erro-when-activating-plugin/#post-14140194)
 * Hi [@michaelmorais](https://wordpress.org/support/users/michaelmorais/),
 * Thanks for the error details. It looks like your site is unable to create the
   database tables required for the Action Scheduler library we use to schedule 
   tasks. Please follow this [troubleshooting guide](https://wpmailsmtp.com/docs/how-to-troubleshoot-action-scheduler-issues-wp-mail-smtp-2-1-1/)
   to fix the issue.
 * I hope this helps!
 *  Thread Starter [michaelmorais](https://wordpress.org/support/users/michaelmorais/)
 * (@michaelmorais)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/erro-when-activating-plugin/#post-14149642)
 * hello [@sanzeeb3](https://wordpress.org/support/users/sanzeeb3/) ,
 * when I follow the tutorial and install Action Scheduler Plugin it gives the same
   error and crashes my wordpress. I think something is wrong with my database and
   I don’t know how to solve it.
    But thanks for the reply
 *  [Sanjeev Aryal](https://wordpress.org/support/users/sanzeeb3/)
 * (@sanzeeb3)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/erro-when-activating-plugin/#post-14154213)
 * Hi [@michaelmorais](https://wordpress.org/support/users/michaelmorais/),
 * Thanks for the details! Yes, there is possibly some misconfiguration in your 
   database that is preventing Action Scheduler to create its database tables. Please
   contact your web host support to see any further details on that. You might also
   want to check the [steps outlined in this post](https://wordpress.org/support/topic/there-has-been-a-critical-error-on-your-website-65/)
   and discuss with your web host support.
 * Regards,

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

The topic ‘Erro when activating plugin’ is closed to new replies.

 * ![](https://ps.w.org/wp-mail-smtp/assets/icon-256x256.png?rev=1755440)
 * [WP Mail SMTP by WPForms - The Most Popular SMTP and Email Log Plugin](https://wordpress.org/plugins/wp-mail-smtp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-mail-smtp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-mail-smtp/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-mail-smtp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-mail-smtp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-mail-smtp/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Sanjeev Aryal](https://wordpress.org/support/users/sanzeeb3/)
 * Last activity: [5 years, 3 months ago](https://wordpress.org/support/topic/erro-when-activating-plugin/#post-14154213)
 * Status: resolved