Title: Fatal error: Uncaught Error: Call to undefined function deactivate_plugins()
Last modified: February 24, 2019

---

# Fatal error: Uncaught Error: Call to undefined function deactivate_plugins()

 *  [FlourishDNA](https://wordpress.org/support/users/flourishdna/)
 * (@flourishdna)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-error-call-to-undefined-function-deactivate_plugins/)
 * After I upgraded the WordPress to the latest stable version I am getting the 
   following error.
 * `Fatal error: Uncaught Error: Call to undefined function deactivate_plugins()
   in /home/dev/public_html/wp-content/plugins/wp-hotel-booking/includes/class-wphb-
   install.php:50 Stack trace: #0 /home/dev/public_html/wp-content/plugins/wp-hotel-
   booking/wp-hotel-booking.php(102): WPHB_Install::install() #1 /home/dev/public_html/
   wp-includes/class-wp-hook.php(286): WP_Hotel_Booking->install('/home/dev...')#
   2 /home/dev/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters('',
   Array) #3 /home/dev/public_html/wp-includes/plugin.php(465): WP_Hook->do_action(
   Array) #4 /home/dev/public_html/wp-settings.php(351): do_action('plugin_loaded','/
   home/dev...') #5 /home/dev/public_html/wp-config.php(89): require_once('/home/
   dev...') #6 /home/dev/public_html/wp-load.php(37): require_once('/home/dev...')#
   7 /home/dev/public_html/wp-admin/admin.php(34): require_once('/home/dev...') #
   8 /home/dev/public_html/wp-admin/index.php(10): require_on in /home/dev/public_html/
   wp-content/plugins/wp-hotel-booking/includes/class-wphb-install.php on line 50`
 * PHP 7.2

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

 *  [WebMaster](https://wordpress.org/support/users/emreselcuk/)
 * (@emreselcuk)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-error-call-to-undefined-function-deactivate_plugins/#post-11253459)
 * Looks like fixed with last update.
 *  [danbru](https://wordpress.org/support/users/danbru/)
 * (@danbru)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-uncaught-error-call-to-undefined-function-deactivate_plugins/#post-11439532)
 * I’m running the latest (5.1.1) and getting this error…

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

The topic ‘Fatal error: Uncaught Error: Call to undefined function deactivate_plugins()’
is closed to new replies.

 * ![](https://ps.w.org/wp-hotel-booking/assets/icon-256x256.png?rev=2442679)
 * [WP Hotel Booking](https://wordpress.org/plugins/wp-hotel-booking/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-hotel-booking/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-hotel-booking/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-hotel-booking/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-hotel-booking/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-hotel-booking/reviews/)

## Tags

 * [fatal error](https://wordpress.org/support/topic-tag/fatal-error/)

 * 2 replies
 * 3 participants
 * Last reply from: [danbru](https://wordpress.org/support/users/danbru/)
 * Last activity: [7 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-uncaught-error-call-to-undefined-function-deactivate_plugins/#post-11439532)
 * Status: not resolved