Warning: count(): Parameter must be an array or an object that implements Countable in cc->http_send() (line 1888 of class.cc.php).

Created on 25 June 2020, almost 5 years ago
Updated 30 January 2025, 3 months ago

We are experiencing subscribers are not being added to Constant Contact since moving to PHP 7.3

We fixed a number of errors but still have this one.

Warning: count(): Parameter must be an array or an object that implements Countable in cc->http_send() (line 1888 of /sites/all/modules/constant_contact/class.cc.php).

        if($method == 'POST' OR $method == 'PUT' AND count($params) > 0):
            curl_setopt($ch, CURLOPT_POSTFIELDS, $params);
        endif;
πŸ› Bug report
Status

Needs review

Version

3.6

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States crutch

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024