• Resolved retr8bit

    (@retr8bit)


    So recently we updated to PHP 8.2.15 (WordPress 6.4.3). Then yesterday/day before started getting a fatal error message any time interacted with plugin functions. (back and front-end)

    Deactivated and uninstalled, but now wordpress won’t let me activate it – citing the “Plugin could not be activated because it triggered a fatal error.”

    Tried installing previous versions, but get same error.

    Any help would be great

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support sergecleantalk

    (@sergecleantalk)

    Hello,

    The plugin should work on PHP 8.2. Did you try to re-install it?

    https://cleantalk.org/help/update-wordpress

    If this didn’t help, could you send us a full error text?

    Thread Starter retr8bit

    (@retr8bit)

    Tried reinstalling, still getting fatal error report when I try to activate.

    Debug log:

    [09-Feb-2024 21:32:56 UTC] PHP Fatal error: Uncaught Error: Undefined constant “Cleantalk\ApbctWP\CURLOPT_USERAGENT” in /var/www/lwad.co.uk/public_html/LWAD/wp-content/plugins/cleantalk-spam-protect/lib/Cleantalk/ApbctWP/Helper.php:43
    Stack trace: 0 /var/www/lwad.co.uk/public_html/LWAD/wp-content/plugins/cleantalk-spam-protect/inc/cleantalk-pluggable.php(1360): Cleantalk\ApbctWP\Helper::httpRequest() 1 /var/www/lwad.co.uk/public_html/LWAD/wp-content/plugins/cleantalk-spam-protect/lib/Cleantalk/ApbctWP/Activator.php(15): apbct_settings__get_ajax_type() 2 /var/www/lwad.co.uk/public_html/LWAD/wp-content/plugins/cleantalk-spam-protect/cleantalk.php(735): Cleantalk\ApbctWP\Activator::activation() 3 /var/www/lwad.co.uk/public_html/LWAD/wp-includes/class-wp-hook.php(324): apbct_activation() 4 /var/www/lwad.co.uk/public_html/LWAD/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() 5 /var/www/lwad.co.uk/public_html/LWAD/wp-includes/plugin.php(517): WP_Hook->do_action() 6 /var/www/lwad.co.uk/public_html/LWAD/wp-admin/includes/plugin.php(693): do_action() 7 /var/www/lwad.co.uk/public_html/LWAD/wp-admin/plugins.php(58): activate_plugin() 8 {main}

    thrown in /var/www/lwad.co.uk/public_html/LWAD/wp-content/plugins/cleantalk-spam-protect/lib/Cleantalk/ApbctWP/Helper.php on line 43

    Plugin Support amagsumov

    (@amagsumov)

    Hello @retr8bit,

    Seems like the issue is that you do not have the curl library itself installed even though the curl is listed in php. Here is a one-to-one example and recommendations: https://github.com/yiisoft/yii2/issues/8664.

    You need to install php curl module.

    example how to install for debian: apt-get install php7.2-curlfor windows You need find(download) lib file “php-curl.dll” and add it to php extension directory, and then edit php.ini to activete it module: extension=php_curl.dll

    An article on how to install curl on ubuntu: https://websolutionstuff.com/post/how-to-install-php-curl-extension-in-ubuntu.

    If this is difficult for you, you can ask your hosting provider for help.

    Thank you.

    Plugin Support sergecleantalk

    (@sergecleantalk)

    Hello.
    We haven’t heard back from you in a few days, so I’m going to mark this topic as “resolved”.
    If you need further support, you can start a new topic or contact us via our private Ticket System: https://cleantalk.org/my/support/open.

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

The topic ‘Fatal error’ is closed to new replies.