WordPress.org

Ready to get started?Download WordPress

Forums

WP Find Your Nearest
[resolved] New installation, Select Country not working, with PHP error (5 posts)

  1. bootle
    Member
    Posted 11 months ago #

    Plugin version 0.2.5 (latest).

    Running on local development machine, using LAMMP, PHP Version 5.3.8

    Select Country dropdown is empty, and below it is the folliwng message:

    Just started setup, no stockists added yet.

    Country

    Select the country you will be using this plugin in
    Country
    ( ! ) Warning: Invalid argument supplied for foreach() in /home/colin/www/voakesfreefrom/wp-content/plugins/wp-find-your-nearest/includes/admin_panel_FYN_options.php on line 228
    Call Stack
    # Time Memory Function Location
    1 0.0007 450804 {main}( ) ../edit.php:0
    2 0.0010 525356 require_once( '/home/colin/www/voakesfreefrom/wp-admin/admin.php' ) ../edit.php:10
    3 0.3341 37872136 do_action( ) ../admin.php:151
    4 0.3341 37872992 call_user_func_array ( ) ../plugin.php:406
    5 0.3341 37873008 aphs_FYN_options_page( ) ../plugin.php:406
    6 0.3343 37873056 do_settings_sections( ) ../admin_panel_FYN_options.php:260
    7 0.3411 37963312 do_settings_fields( ) ../template.php:1088
    8 0.3411 37963516 call_user_func ( ) ../template.php:1120
    9 0.3411 37963532 aphs_FYN_country_form( ) ../template.php:1120

    http://wordpress.org/plugins/wp-find-your-nearest/

  2. bootle
    Member
    Posted 11 months ago #

    Seems to be fine on remote machine, but would like to setup locally first.

  3. Adam Sargant
    Member
    Plugin Author

    Posted 11 months ago #

    hmmm... what happens if you replace line 225 in /includes/admin_panel_FYN_options.php

    require_once('countrycodes.php');

    with

    global $countrycodes_array;

    ?

  4. bootle
    Member
    Posted 11 months ago #

    Works a treat!

    Foxed as to how ;-)

    Tested on remote server too, seems fine.

  5. Adam Sargant
    Member
    Plugin Author

    Posted 11 months ago #

    OK, thanks for the feedback... looks like a 0.2.6 is on its way out soon :-D

Reply

You must log in to post.

About this Plugin

About this Topic