Title: Error Activating CleanTalk
Last modified: April 4, 2022

---

# Error Activating CleanTalk

 *  Resolved [Brian Bateman](https://wordpress.org/support/users/webdesignxtc/)
 * (@webdesignxtc)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/error-activating-cleantalk/)
 * CleanTalk was working well but after some caching problems caused me to deactivate
   the plugin temporarily, I got the following error when trying to re-activate.
   I uninstalled and then re-installed the plugin but am still getting the error.
 * Fatal error: Uncaught Error: Undefined constant “Cleantalk\ApbctWP\CURLOPT_USERAGENT”
   in /home/weencehost/public_html/wp-content/plugins/cleantalk-spam-protect/lib/
   Cleantalk/ApbctWP/Helper.php:42 Stack trace: #0 /home/weencehost/public_html/
   wp-content/plugins/cleantalk-spam-protect/lib/Cleantalk/ApbctWP/Helper.php(62):
   Cleantalk\ApbctWP\Helper::httpRequest(‘[https://weence&#8230](https://weence&#8230);.’,
   Array, ‘get_code’) #1 /home/weencehost/public_html/wp-content/plugins/cleantalk-
   spam-protect/inc/cleantalk-pluggable.php(947): Cleantalk\ApbctWP\Helper::httpRequestGetResponseCode(‘
   [https://weence&#8230](https://weence&#8230);.’) #2 /home/weencehost/public_html/
   wp-content/plugins/cleantalk-spam-protect/lib/Cleantalk/ApbctWP/Activator.php(
   15): apbct_settings__get_ajax_type() #3 /home/weencehost/public_html/wp-content/
   plugins/cleantalk-spam-protect/cleantalk.php(424): Cleantalk\ApbctWP\Activator::
   activation(”) #4 /home/weencehost/public_html/wp-includes/class-wp-hook.php(307):
   apbct_activation(”) #5 /home/weencehost/public_html/wp-includes/class-wp-hook.
   php(331): WP_Hook->apply_filters(”, Array) #6 /home/weencehost/public_html/wp-
   includes/plugin.php(474): WP_Hook->do_action(Array) #7 /home/weencehost/public_html/
   wp-admin/plugins.php(194): do_action(‘activate_cleant…’) #8 {main} thrown in /
   home/weencehost/public_html/wp-content/plugins/cleantalk-spam-protect/lib/Cleantalk/
   ApbctWP/Helper.php on line 42
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ferror-activating-cleantalk%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Support [eugenecleantalk](https://wordpress.org/support/users/eugenecleantalk/)
 * (@eugenecleantalk)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/error-activating-cleantalk/#post-15526903)
 * Hello.
    Could you ask your hosting provider if the PHP extension CURL is installed
   and activated for your website? [https://www.php.net/manual/en/book.curl.php](https://www.php.net/manual/en/book.curl.php)
 *  Thread Starter [Brian Bateman](https://wordpress.org/support/users/webdesignxtc/)
 * (@webdesignxtc)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/error-activating-cleantalk/#post-15530010)
 * Thank you for such a quick easy fix!
 * I’d upgraded the affected sites to PHP 8.1 and neglected to add the CURL extensions
   for PHP 8 and 8.1 to Apache.
 * This is a MUST HAVE Plugin. I love it.

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

The topic ‘Error Activating CleanTalk’ is closed to new replies.

 * ![](https://ps.w.org/cleantalk-spam-protect/assets/icon-256x256.gif?rev=3539767)
 * [Anti-Spam by CleanTalk. Spam Firewall & protection](https://wordpress.org/plugins/cleantalk-spam-protect/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cleantalk-spam-protect/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cleantalk-spam-protect/)
 * [Active Topics](https://wordpress.org/support/plugin/cleantalk-spam-protect/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cleantalk-spam-protect/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cleantalk-spam-protect/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Brian Bateman](https://wordpress.org/support/users/webdesignxtc/)
 * Last activity: [4 years, 2 months ago](https://wordpress.org/support/topic/error-activating-cleantalk/#post-15530010)
 * Status: resolved