• Resolved demiduska

    (@demiduska)


    Hi, found this warning. How to fix that?

    php 7.4
    Wordpress 5.6.1
    Version Plugin 2.1.0

    [12-Feb-2021 12:25:26 UTC] PHP Warning: count(): Parameter must be an array or an object that implements Countable in /home/landscape/public_html/wp-content/plugins/w3-total-cache/lib/Azure/GuzzleHttp/Handler/CurlFactory.php on line 67

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @demiduska

    Thank you for your inquiry and I m happy to assist you with this.
    When did you start seeing this warning? Have you made any recent upgrades/downgrades of PHP?
    Can you please confirm that you are using Azure CDN via W3 Total Cache?
    Thanks!

    Thread Starter demiduska

    (@demiduska)

    When did you start seeing this warning? – When i starting use CDN.
    Have you made any recent upgrades/downgrades of PHP? – No
    Yes, Im using Azure CDN via W3.

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @demiduska

    Thank you for the information.
    Can you please share which PHP version you are using and also the WP version?
    Thanks!

    Thread Starter demiduska

    (@demiduska)

    php 7.4
    Wordpress 5.6.1
    Version Plugin 2.1.0

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @demiduska

    Thank you for the information.
    Can you please make a backup of the /wp-content/plugins/w3-total-cache/lib/Azure/GuzzleHttp/Handler/CurlFactory.php file and edit the file by replacing line 67:
    if (count($this->handles) >= $this->maxHandles)
    with
    if ( $this->handles != null && count($this->handles) >= $this->maxHandles )
    And see if the issue persists?
    Thanks!

    Thread Starter demiduska

    (@demiduska)

    Yes, everything is ok, thank you!

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

The topic ‘Parameter must be an array or an object that implements Countable- W3-total-cach’ is closed to new replies.