Geo Plugin problem but was working before (2 posts)

  1. anthonymcg
    Posted 11 years ago #

    Hi all,

    I've had the Geo plugin working with my WP install for a little while but something happened and I believe it could be to do with the $postdata variable and a recent upgrade to One of the functions in the plugin goes like this:

    function edit_form_advanced($not_used)
    global $postdata;

    $geolocations = get_settings('geo_locations');

    echo '<fieldset><legend><a href="http://www.asymptomatic.net/_wiki/GeoPlugin">' . __('Location', 'Geo') . '</a></legend>';

    echo ("Postdata is: " . $postdata);

    if(!in_array('post_lon', array_keys(get_object_vars($postdata))))
    echo '</fieldset>';

    There's more to that function but it's crashing out on the !in_array line because $postdata doesn't seem to be an array. In fact it seems to be blank. Anyone have any idea on whether the recent bug fixes would have messed it up?

  2. anthonymcg
    Posted 11 years ago #

    Anyone got any ideas on this?

Topic Closed

This topic has been closed to new replies.

About this Topic