Title: Critical Errors when Activating/Deleting Plugin
Last modified: October 27, 2022

---

# Critical Errors when Activating/Deleting Plugin

 *  Resolved [deeman001](https://wordpress.org/support/users/deeman001/)
 * (@deeman001)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/critical-errors-when-activating-deleting-plugin/)
 * Just today I’m gettin a critical error when this plugin is activated, so I tried
   deleting the plugin and I get an error as well, see below.
 * Activation Fail Message:
 *     ```
       Fatal error: Uncaught Error: Undefined constant "YellowTree\GeoipDetect\DataSources\Fastah\CURL_HTTP_VERSION_2_0"
       in /var/www/vhosts/finleysbarbershop.com/httpdocs/wp-content/plugins/geoip-detect/data-sources/fastah.php on line 188
   
       Call stack:
   
       YellowTree\G\D\F\FastahSource::__construct()
       wp-content/plugins/geoip-detect/data-sources/fastah.php:279
       include_once()
       wp-content/plugins/geoip-detect/geoip-detect.php:95
       include_once()
       wp-admin/includes/plugin.php:2313
       plugin_sandbox_scrape()
       wp-admin/plugins.php:192
       Query Monitor
       ```
   
 * ———————————————-
 * `Fatal error: Uncaught Error: Undefined constant "YellowTree\GeoipDetect\DataSources\
   Fastah\CURL_HTTP_VERSION_2_0" in /var/www/vhosts/finleysbarbershop.com/httpdocs/
   wp-content/plugins/geoip-detect/data-sources/fastah.php:188 Stack trace: #0 /
   var/www/vhosts/finleysbarbershop.com/httpdocs/wp-content/plugins/geoip-detect/
   data-sources/fastah.php(279): YellowTree\GeoipDetect\DataSources\Fastah\FastahSource-
   >__construct() #1 /var/www/vhosts/finleysbarbershop.com/httpdocs/wp-content/plugins/
   geoip-detect/geoip-detect.php(95): include_once('...') #2 /var/www/vhosts/finleysbarbershop.
   com/httpdocs/wp-admin/includes/plugin.php(2313): include_once('...') #3 /var/
   www/vhosts/finleysbarbershop.com/httpdocs/wp-admin/plugins.php(192): plugin_sandbox_scrape()#
   4 {main} thrown in /var/www/vhosts/finleysbarbershop.com/httpdocs/wp-content/
   plugins/geoip-detect/data-sources/fastah.php on line 188`
 * ———————————————-
 * Delete Fail Message:
 * `Deletion failed: .wp-die-message { display: none; } Fatal error: Uncaught Error:
   Undefined constant &quot;YellowTree\GeoipDetect\DataSources\Fastah\CURL_HTTP_VERSION_2_0&
   quot;in /var/www/vhosts/finleysbarbershop.com/httpdocs/wp-content/plugins/geoip-
   detect/data-sources/fastah.php on line 188Call stack:YellowTree\G\D\F\FastahSource::
   __construct()wp-content/plugins/geoip-detect/data-sources/fastah.php:279include_once()
   wp-content/plugins/geoip-detect/geoip-detect.php:95include_once()wp-admin/includes/
   plugin.php:1253uninstall_plugin()wp-admin/includes/plugin.php:958delete_plugins()
   wp-admin/includes/ajax-actions.php:4668wp_ajax_delete_plugin()wp-includes/class-
   wp-hook.php:307WP_Hook::apply_filters()wp-includes/class-wp-hook.php:331WP_Hook::
   do_action()wp-includes/plugin.php:476do_action()wp-admin/admin-ajax.php:187Query
   MonitorThere has been a critical error on this website.Learn more about troubleshooting
   WordPress.`
 * My site is info:
    ### wp-core ### version: 6.0.3
 * Thank you for letting me know what I should do.
    Darren

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

 *  [Benjamin Pick](https://wordpress.org/support/users/benjamin4/)
 * (@benjamin4)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/critical-errors-when-activating-deleting-plugin/#post-16140269)
 * Which PHP version are you using?
    Please try uploading 5.1.1 manually, this should
   fix the problem.
 *  Thread Starter [deeman001](https://wordpress.org/support/users/deeman001/)
 * (@deeman001)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/critical-errors-when-activating-deleting-plugin/#post-16140317)
 * Hi Benjamin,
    I’ll try to uploading manually
 * Server architecture
    Linux 3.10.0-042stab144.1 x86_64
 * Web server
    Apache
 * PHP version
    8.1.11
 *  Thread Starter [deeman001](https://wordpress.org/support/users/deeman001/)
 * (@deeman001)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/critical-errors-when-activating-deleting-plugin/#post-16140330)
 * Benjamin, the new version worked for me. Thanks for the quick reply.
 * Darren
 *  [Benjamin Pick](https://wordpress.org/support/users/benjamin4/)
 * (@benjamin4)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/critical-errors-when-activating-deleting-plugin/#post-16140332)
 * Perfect!
 *  [shaunhaage](https://wordpress.org/support/users/shaunhaage/)
 * (@shaunhaage)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/critical-errors-when-activating-deleting-plugin/#post-16668690)
 * I have tried the above steps and I am still getting this error. Is there anything
   else I can try here?
 * We are currently running 8.0
    -  This reply was modified 3 years, 1 month ago by [shaunhaage](https://wordpress.org/support/users/shaunhaage/).
 *  [Benjamin Pick](https://wordpress.org/support/users/benjamin4/)
 * (@benjamin4)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/critical-errors-when-activating-deleting-plugin/#post-16679599)
 * Can you post the PHP error you are seeing, please?
    -  This reply was modified 3 years, 1 month ago by [Benjamin Pick](https://wordpress.org/support/users/benjamin4/).

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

The topic ‘Critical Errors when Activating/Deleting Plugin’ is closed to new replies.

 * ![](https://ps.w.org/geoip-detect/assets/icon-256x256.jpg?rev=978998)
 * [Geolocation IP Detection](https://wordpress.org/plugins/geoip-detect/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/geoip-detect/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/geoip-detect/)
 * [Active Topics](https://wordpress.org/support/plugin/geoip-detect/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/geoip-detect/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/geoip-detect/reviews/)

 * 6 replies
 * 3 participants
 * Last reply from: [Benjamin Pick](https://wordpress.org/support/users/benjamin4/)
 * Last activity: [3 years, 1 month ago](https://wordpress.org/support/topic/critical-errors-when-activating-deleting-plugin/#post-16679599)
 * Status: resolved