Error & Conflict
-
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/localpantrymarket.com/public_html/wp-content/plugins/woo-postmates-integration/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php on line 67I 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; unset($easy->handle); if (count($this->handles) >= $this->maxHandles) { curl_close($resource); } 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); curl_reset($resource); $this->handles[] = $resource; } }
So perhaps it has to do with not using the curl_setopt_array?
Thank you in advance.
Tim
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Error & Conflict’ is closed to new replies.