• Resolved forgeonline

    (@forgeonline)


    Hello,

    I am getting the following error on one of my WP sites which is causing the site to crash occasionally.

    
     [03-Apr-2023 03:16:57 UTC] PHP Deprecated:  The PSR-0 Requests_... class names in the Request library are deprecated. Switch to the PSR-4 WpOrg\Requests\... class names at your earliest convenience. in /container/application/public/wp-includes/class-requests.php on line 24
    [03-Apr-2023 03:16:57 UTC] PHP Fatal error:  Uncaught Error: Cannot use object of type WpOrg\Requests\Response as array in /container/application/public/wp-content/plugins/cleantalk-spam-protect/lib/Cleantalk/Common/HTTP/Response.php:24
    Stack trace:
    #0 /container/application/public/wp-content/plugins/cleantalk-spam-protect/lib/Cleantalk/ApbctWP/HTTP/Request.php(57): Cleantalk\Common\HTTP\Response->__construct(Object(WpOrg\Requests\Response), Array)
    #1 /container/application/public/wp-content/plugins/cleantalk-spam-protect/lib/Cleantalk/ApbctWP/HTTP/Request.php(22): Cleantalk\ApbctWP\HTTP\Request->requestSingle()
    #2 /container/application/public/wp-content/plugins/cleantalk-spam-protect/lib/Cleantalk/ApbctWP/Helper.php(57): Cleantalk\ApbctWP\HTTP\Request->request()
    #3 /container/application/public/wp-content/plugins/cleantalk-spam-protect/lib/Cleantalk/ApbctWP/Helper.php(163): Cleantalk\ApbctWP\Helper::httpRequest('https://www.bui...', Array, Array)
    #4 /container/application/public/wp-content/plugins/cleantalk-spam-protect/cleantalk.php(1037): Cleantalk\ in /container/application/public/wp-content/plugins/cleantalk-spam-protect/lib/Cleantalk/Common/HTTP/Response.php on line 24
    

    I disabled the plugin and it seems working fine but when I tried to activate it again and the following fatal error occurs

    Deprecated: The PSR-0 Requests_... class names in the Request library are deprecated. Switch to the PSR-4 WpOrg\Requests\... class names at your earliest convenience. in /container/application/public/wp-includes/class-requests.php on line 24
    
    Fatal error: Uncaught Error: Cannot use object of type WpOrg\Requests\Response as array in /container/application/public/wp-content/plugins/cleantalk-spam-protect/lib/Cleantalk/Common/HTTP/Response.php:24 Stack trace: #0 /container/application/public/wp-content/plugins/cleantalk-spam-protect/lib/Cleantalk/ApbctWP/HTTP/Request.php(57): Cleantalk\Common\HTTP\Response->__construct(Object(WpOrg\Requests\Response), Array) #1 /container/application/public/wp-content/plugins/cleantalk-spam-protect/lib/Cleantalk/ApbctWP/HTTP/Request.php(22): Cleantalk\ApbctWP\HTTP\Request->requestSingle() #2 /container/application/public/wp-content/plugins/cleantalk-spam-protect/lib/Cleantalk/ApbctWP/Helper.php(57): Cleantalk\ApbctWP\HTTP\Request->request() #3 /container/application/public/wp-content/plugins/cleantalk-spam-protect/lib/Cleantalk/ApbctWP/Helper.php(70): Cleantalk\ApbctWP\Helper::httpRequest('https://www.bui...', Array, 'get_code get') #4 /container/application/public/wp-content/plugins/cleantalk-spam-protect/inc/cleantalk-pluggable in /container/application/public/wp-content/plugins/cleantalk-spam-protect/lib/Cleantalk/Common/HTTP/Response.php on line 24

    The site is running WP 6.2 and PHP 7.4

    Any advice would be appreciated.

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

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘PHP Fatal error – AntiSpam 6.6’ is closed to new replies.