WordPress.org

Ready to get started?Download WordPress

Forums

GEO my WordPress
[resolved] [Plugin: GEO my WP] Getting array_chunk() Error on Search Results page. (4 posts)

  1. kjmagic13
    Member
    Posted 1 year ago #

    Warning: array_chunk() [function.array-chunk]: Size parameter expected to be greater than 0 in /home/content/63/9480763/html/hosting/byowner/wp-content/plugins/geo-my-wp/get-places.php on line 261

    When using the shortcode [wppl form="1" form_only="y"] or the widget, this error is generated on the results page along with no results from an exact zipcode search (ie post has zip of 33544, searched for 33544). On a fresh install of WordPress (3.4.1).

    There are only three posts, all with addresses, lat & long assigned to them.

    http://wordpress.org/extend/plugins/geo-my-wp/

  2. Eyal Fitoussi
    Member
    Plugin Author

    Posted 1 year ago #

    Hi kjmagic13,
    i believe that this issue as to do with the "per page" settings in the shortcode you created. Did you set it to 0? if so you must change it to a number greater than 0. check that and let me know it that solves the issue.

    note that even if the "per page" shows 5 when you go to edit it save the shortcode again and see if that works.

  3. kjmagic13
    Member
    Posted 1 year ago #

    That's what it was. Thanks so much!

  4. Eyal Fitoussi
    Member
    Plugin Author

    Posted 1 year ago #

    You are very welcome.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.