Title: Problem with deactivation
Last modified: April 23, 2026

---

# Problem with deactivation

 *  Resolved [vlidi](https://wordpress.org/support/users/vlidi/)
 * (@vlidi)
 * [2 weeks, 4 days ago](https://wordpress.org/support/topic/problem-with-deactivation-2/)
 * After the import and export went well, I have tried to deactivate the plugin.
   
   On both the source and the target site there was this fatal error trying to deactivate
   the plugin:
 * “Fatal error: Uncaught Error: Class “ActionScheduler_RecurringActionScheduler”
   not found in /home/examplecom/example.com/wp-content/plugins/import-users-from-
   csv-with-meta/lib/action-scheduler/classes/abstracts/ActionScheduler.php:191 
   Stack trace: #0 /home/examplecom/example.com/wp-content/plugins/import-users-
   from-csv-with-meta/lib/action-scheduler/action-scheduler.php(60): ActionScheduler::
   init() #1 /home/examplecom/example.com/wp-content/plugins/import-users-from-csv-
   with-meta/lib/action-scheduler/action-scheduler.php(66): action_scheduler_initialize_3_dot_8_dot_1()#
   2 /home/examplecom/example.com/wp-content/plugins/import-users-from-csv-with-
   meta/import-users-from-csv-with-meta.php(91): include_once(‘/home/examplecom/…’)#
   3 /home/examplecom/example.com/wp-includes/class-wp-hook.php(341): ImportExportUsersCustomers::
   deactivate() #4 /home/examplecom/example.com/wp-includes/class-wp-hook.php(365):
   WP_Hook->apply_filters() #5 /home/examplecom/example.com/wp-includes/plugin.php(
   522): WP_Hook->do_action() #6 /home/examplecom/example.com/wp-admin/includes/
   plugin.php(826): do_action() #7 /home/examplecom/example.com/wp-admin/plugins.
   php(211): deactivate_plugins() #8 {main} thrown in /home/examplecom/example.com/
   wp-content/plugins/import-users-from-csv-with-meta/lib/action-scheduler/classes/
   abstracts/ActionScheduler.php on line 191″
 * Both sites are on WordPress 6.9.4, PHP 8.1.34.
 * AI analysis of the problem:
 * “Trace shows the crash happens inside the plugin’s deactivation routine. In the
   plugin source, ImportExportUsersCustomers::deactivate() tries to load its bundled
   Action Scheduler if as_unschedule_all_actions() is unavailable, then immediately
   calls as_unschedule_all_actions( ‘acui_cron_process’ ). That bundled bootstrap
   initializes Action Scheduler 3.8.1.”
 * The proposed patch:
 *     ```wp-block-code
       [php]static function deactivate() {if ( get_option( 'acui_cron_activated' ) ) {if ( ! function_exists( 'as_unschedule_all_actions' ) && file_exists( plugin_dir_path( FILE ) . 'lib/action-scheduler/action-scheduler.php' ) ) {include_once plugin_dir_path( FILE ) . 'lib/action-scheduler/action-scheduler.php';}    if ( function_exists( 'as_unschedule_all_actions' ) ) {        as_unschedule_all_actions( 'acui_cron_process' );    }}[/php]
       ```
   
 * I am not sure if this has to do with particular configurations or possible conflicts,
   the target site was a fresh install.
   Hope this helps if something needs fixing.

Viewing 1 replies (of 1 total)

 *  Plugin Author [Javier Carazo](https://wordpress.org/support/users/carazo/)
 * (@carazo)
 * [2 weeks, 4 days ago](https://wordpress.org/support/topic/problem-with-deactivation-2/#post-18888831)
 * Thank you very much for reporting the bug. The solution you suggest, which seems
   to have been generated by AI, might mask the bug but not address the underlying
   cause.
 * I’m working on a new version that fixes the underlying issue.
 * Please update when it becomes available, and thank you again.

Viewing 1 replies (of 1 total)

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fproblem-with-deactivation-2%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/import-users-from-csv-with-meta/assets/icon-256x256.png?
   rev=1174343)
 * [Import and export users and customers](https://wordpress.org/plugins/import-users-from-csv-with-meta/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/import-users-from-csv-with-meta/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/import-users-from-csv-with-meta/)
 * [Active Topics](https://wordpress.org/support/plugin/import-users-from-csv-with-meta/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/import-users-from-csv-with-meta/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/import-users-from-csv-with-meta/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Javier Carazo](https://wordpress.org/support/users/carazo/)
 * Last activity: [2 weeks, 4 days ago](https://wordpress.org/support/topic/problem-with-deactivation-2/#post-18888831)
 * Status: resolved