Title: Fatal error: Uncaught Error: Call to undefined function is_plugin_active()
Last modified: May 4, 2020

---

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

 *  Resolved [rjcb1990](https://wordpress.org/support/users/rjcb1990/)
 * (@rjcb1990)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-uncaught-error-call-to-undefined-function-is_plugin_active/)
 * When trying to activate the plugin it broke the site with the following error:
 * Fatal error: Uncaught Error: Call to undefined function is_plugin_active() […]
   thrown in /…/…/public_html/wp-content/plugins/shipping-by-city-for-woocommerce/
   class-shipping-by-city-for-woocommerce.php on line 75
    -  This topic was modified 6 years, 1 month ago by [rjcb1990](https://wordpress.org/support/users/rjcb1990/).

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

 *  [HammerOz](https://wordpress.org/support/users/hammeroz/)
 * (@hammeroz)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-uncaught-error-call-to-undefined-function-is_plugin_active/#post-12775184)
 * Yes, same error for me
 *  [cacaogt](https://wordpress.org/support/users/cacaogt/)
 * (@cacaogt)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-uncaught-error-call-to-undefined-function-is_plugin_active/#post-12790772)
 * Hi, i fixed this way:
 *     ```
       if (!function_exists('is_plugin_active')) {
           include_once(ABSPATH . 'wp-admin/includes/plugin.php');
       }
       ```
   
    -  This reply was modified 6 years, 1 month ago by [cacaogt](https://wordpress.org/support/users/cacaogt/).
 *  Plugin Author [C-Metric](https://wordpress.org/support/users/rupeshjorkar/)
 * (@rupeshjorkar)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-uncaught-error-call-to-undefined-function-is_plugin_active/#post-12796241)
 * Hello All,
 * Thank you for sharing the issue.
 * We have updated our code and resolved the issue. You can download latest version
   or please update the current version to use this plugin.
 * If you still faced the issue then share with us, We are available to resolve 
   the issue.
 * Kind regards,
    Rupesh Jorkar
 *  Thread Starter [rjcb1990](https://wordpress.org/support/users/rjcb1990/)
 * (@rjcb1990)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-uncaught-error-call-to-undefined-function-is_plugin_active/#post-12842711)
 * It is working great thank you!

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

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

 * ![](https://ps.w.org/shipping-by-city-for-woocommerce/assets/icon-256x256.png?
   rev=2253381)
 * [Shipping by City for Woocommerce](https://wordpress.org/plugins/shipping-by-city-for-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/shipping-by-city-for-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/shipping-by-city-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/shipping-by-city-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/shipping-by-city-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/shipping-by-city-for-woocommerce/reviews/)

 * 4 replies
 * 4 participants
 * Last reply from: [rjcb1990](https://wordpress.org/support/users/rjcb1990/)
 * Last activity: [6 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-uncaught-error-call-to-undefined-function-is_plugin_active/#post-12842711)
 * Status: resolved