Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
I'm getting this in my logs, I believe since upgrading to PHP 7.2
Warning: count(): Parameter must be an array or an object that implements Countable in popup_element() (line 242 of /my-site/sites/all/modules/popup/includes/popup.api.inc).
Comment | File | Size | Author |
---|---|---|---|
#5 | 3021642-5.patch | 503 bytes | joelpittet |
Comments
Comment #2
jigish.addweb CreditAttribution: jigish.addweb at AddWeb Solution Pvt. Ltd. commented@jaydee1818, Count function getting $body variable null. It is the cause of the issue. I put condition if the variable is not null then only count the value.
Kindly review it.. I hope this patch helps you to resolve your issue
Thanks!..
Comment #3
Cybertrail CreditAttribution: Cybertrail commentedThe patch fixed the error but there is still a notice about an undefined variable.
Notice: Undefined variable: popup_body in popup_element() (line 259 of /home/f9o3h7sufm61/public_html/sites/all/modules/popup/includes/popup.api.inc).
Comment #4
joelpittetThis should fix #3's issue.
Comment #5
joelpittetActually it doesn't but all that needs to change here is count() to strlen() and NULL is fine I checked.
php -r "strlen(trim(NULL));"
Comment #7
vuilThe patch is committed. Thank you!
Comment #9
vuil