Support » Plugin: WooCommerce Postmates Integration » Error & Conflict

  • Resolved tklug


    Hi Agli,

    Great plugin – thank you for building it!

    It looks like I’m receiving some sort of conflict with the following in the error log:
    [26-Mar-2021 20:34:35 UTC] PHP Warning: count(): Parameter must be an array or an object that implements Countable in /home/u930831016/domains/ on line 67

    I am still trouble shooting, but I believe it is related to the cart. I see you added a comment to that function:

    public function release(EasyHandle $easy)
            $resource = $easy->handle;
            if (count($this->handles) >= $this->maxHandles) {
            } else {
    <strong>            // Remove all callback functions as they can hold onto references
                // and are not cleaned up by curl_reset. Using curl_setopt_array
                // does not work for some reason, so removing each one
                // individually.</strong>
                curl_setopt($resource, CURLOPT_HEADERFUNCTION, null);
                curl_setopt($resource, CURLOPT_READFUNCTION, null);
                curl_setopt($resource, CURLOPT_WRITEFUNCTION, null);
                curl_setopt($resource, CURLOPT_PROGRESSFUNCTION, null);
                $this->handles[] = $resource;

    So perhaps it has to do with not using the curl_setopt_array?

    Thank you in advance.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter tklug



    I haven’t been able to pinpoint any conflicts yet, the error seems to only occur if the fixed fee is not set or is set to 0. If a fixed fee at either the default or shipping method level is set greater than 0, then the error does not occur.

    Also – I went to your website to make a donation but it seems to be down. Hopefully not for long.


    Plugin Author Agli Pançi


    @tklug I am glad you like the plugin 🙂

    The error you are describing is thrown but a dependency of the plugin and not by my code specifically. However, I will find the time to fix that as well.

    I am working on getting my website back 🙂 My Paypal is agli.panci[at]gmail[dot]com

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.