• Resolved burtcav

    (@burtcav)


    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]

Viewing 1 replies (of 1 total)
  • @burtcav

    Could you shoot me an email? mattf at flexmls dot com

    I have submitted this as a bug to the developers. I do have a workaround file you could use in the meantime. It appears PHP version 7.2 is a little more strict with the count() function and that’s why the warning is being thrown.

Viewing 1 replies (of 1 total)
  • The topic ‘PHP Error Array with Count – PHP 7.2’ is closed to new replies.