PHP Error Array with Count – PHP 7.2
-
We are getting a redundent php error that causes our error log files to grow well over 1gb on all our sites. The error is this:
[20-Nov-2018 22:27:12 UTC] PHP Warning: count(): Parameter must be an array or an object that implements Countable in /home/michiganlifeltg/public_html/MICHIGANHORSEPROPERTY.COM/wp-content/plugins/flexmls-idx/pages/listing-details.php on line 634
The code on line 634 is this:
if ( count($sf[‘Rooms’] > 0) ) {
foreach ($sf[‘Rooms’] as $r) {
foreach ($r[‘Fields’] as $rf) {
foreach ($rf as $rfk => $rfv) {$label = null;
Research is telling me this might be tied to PHP 7.2.
Any help to eliminate these errors on our 11 websites would be much appreciated.
The page I need help with: [log in to see the link]
- The topic ‘PHP Error Array with Count – PHP 7.2’ is closed to new replies.