Bug in geodir_term_post_count_update()

This topic contains 2 replies, has 3 voices, and was last updated by  Kiran 6 years, 6 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #430246

    Brandon Quig
    Expired Member
    Post count: 7

    In geodir_location_manager/geodir_count_functions.php, need to change

    $post_locations = $post_locations != '' ? explode(',', $post_locations) : '';

    to

    $post_locations = $post_locations != '' ? explode(',', $post_locations) : array();

    because

    count($post_locations)

    cannot accept a string input.

    Otherwise the following error can occur:

    >Warning: count(): Parameter must be an array or an object that implements Countable in /public_html/wp-content/plugins/geodir_location_manager/geodir_count_functions.php on line 370

    Warning: Cannot modify header information – headers already sent by (output started at /public_html/wp-content/plugins/geodir_location_manager/geodir_count_functions.php:370) in /public_html/wp-admin/post.php on line 198

    #430250

    Paolo
    Site Admin
    Post count: 31206

    A valid license is required to view this reply.

    You may need to login

    OR

    Buy either a Membership or valid license for this product.

    Thanks, Team GeoDirectory!

    #430429

    Kiran
    Moderator
    Post count: 7069

    A valid license is required to view this reply.

    You may need to login

    OR

    Buy either a Membership or valid license for this product.

    Thanks, Team GeoDirectory!

Viewing 3 posts - 1 through 3 (of 3 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount