• Resolved John

    (@dsl225)


    Hi,

    I’m getting this since a couple of days.
    Maybe, but not sure, it coincides to the fact I switched to PHP 7.2?

    PHP Warning: count(): Parameter must be an array or an object that implements Countable in /wp-content/plugins/another-wordpress-classifieds-plugin/includes/listings/class-listings-finder.php on line 528

    Thanks.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi @dsl225,

    Sorry that you ran into issues here!

    It would most likely be PHP 7.2. I don’t believe we’ve tested that with AWPCP quite yet, but we will certainly do so shortly.

    Thanks for bringing it to our attention. We’ll get this resolved in a patch release shortly.

    Thread Starter John

    (@dsl225)

    Yes, it appears it’s clearly related to 7.2 as I switched back to 7.1 and no issues are showing up again. Thanks.

    Thread Starter John

    (@dsl225)

    With 7.1 I have another one:

    PHP Warning: Illegal string offset 'image-dimensions' in /wp-content/plugins/another-wordpress-classifieds-plugin/includes/class-media-api.php on line 349

    Thread Starter John

    (@dsl225)

    And now this one, still in PHP 7.1:

    PHP Fatal error: Uncaught Error: [] operator not supported for strings in /wp-content/plugins/another-wordpress-classifieds-plugin/includes/listings/class-listings-finder.php:112
    
    Stack trace:
    #0 /wp-content/plugins/another-wordpress-classifieds-plugin/includes/listings/class-listings-finder.php(103): AWPCP_ListingsFinder->normalize_regions_query(Array)
    #1 /wp-content/plugins/another-wordpress-classifieds-plugin/includes/listings/class-listings-finder.php(20): AWPCP_ListingsFinder->normalize_query(Array)
    #2 /wp-content/plugins/another-wordpress-classifieds-plugin/includes/class-listings-collection.php(118): AWPCP_ListingsFinder->find(Array)
    #3 /wp-content/plugins/another-wordpress-classifieds-plugin/includes/functions/listings.php(39): AWPCP_ListingsCollection->find_enabled_listings_with_query(Array)
    #4 /wp-content in /wp-content/plugins/another-wordpress-classifieds-plugin/includes/listings/class-listings-finder.php on line 112

    Hi @dsl225,

    We have a patch release coming out tonight that should address all of these issues, FYI. Version 3.8.3.

    Thread Starter John

    (@dsl225)

    Great, thanks!

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘PHP warning’ is closed to new replies.