Needs review
Project:
http:BL
Version:
7.x-1.1-rc1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Anonymous (not verified)
Created:
3 Mar 2020 at 19:20 UTC
Updated:
26 May 2025 at 08:52 UTC
Jump to comment: Most recent
Comments
Comment #1
Anonymous (not verified) commentedcmseasy created an issue. See original summary.
Comment #2
mariquita commentedI'm receiving this error, too, but using php version 7.2.
Comment #3
mattshoafI was seeing this as well, on that line `!count(form_get_errors())`, count is calling a function, in other drupal code that uses that they've changed it to `!form_get_errors()`. If you remove count and the corresponding parenthesis it will remove the error, this module hasn't been updated since 2012, so I doubt we'll see another update any time soon.
Comment #4
fgmThe error happens because form_get_errors() returns an inconsistent result type: an array when errors exist, but null when no errors exist, so
count()cannot be used:empty()should be used instead.Comment #8
fgmSubmitted PR
Comment #9
Anonymous (not verified) commented@fgm, thanks for the patch, my log warning is gone now.