• Resolved Bessonweb

    (@besky)


    Hi and thanks for your greate plugin !

    I have this error in the settings page of the plugin :

    Fatal error: Uncaught TypeError: array_search(): Argument #2 ($haystack) must be of type array, string given in /home/clients/client-number/sites/my-website.com/wp-content/plugins/simple-address-autocomplete/includes/class-simple-address-autocomplete.php:416 Stack trace: #0 /home/clients/client-number/sites/my-website.com/wp-content/plugins/simple-address-autocomplete/includes/class-simple-address-autocomplete.php(416): array_search(‘biased’, ‘biased’, true) #1 /home/clients/client-number/sites/my-website.com/wp-admin/includes/template.php(1785): Simple_Address_Autocomplete->field_callback(Array) #2 /home/clients/client-number/sites/my-website.com/wp-admin/includes/template.php(1739): do_settings_fields(‘simple_autocomp…’, ‘general_setting…’) #3 /home/clients/client-number/sites/my-website.com/wp-content/plugins/simple-address-autocomplete/includes/class-simple-address-autocomplete.php(59): do_settings_sections(‘simple_autocomp…’) #4 /home/clients/client-number/sites/my-website.com/wp-includes/class-wp-hook.php(308): Simple_Address_Autocomplete->simple_address_autocomplete_settings_page_content(”) #5 /home/clients/client-number/sites/my-website.com/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(”, Array) #6 /home/clients/client-number/sites/my-website.com/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #7 /home/clients/client-number/sites/my-website.com/wp-admin/admin.php(259): do_action(‘settings_page_s…’) #8 /home/clients/client-number/sites/my-website.com/wp-admin/options-general.php(10): require_once(‘/home/clients/0…’) #9 {main} thrown in /home/clients/client-number/sites/my-website.com/wp-content/plugins/simple-address-autocomplete/includes/class-simple-address-autocomplete.php on line 416

    In my browser console, I have this error :

    Loading the Google Maps JavaScript API without a callback is not supported

    I don’t know if it’s the same origin but it’s certainly possible?

    I have tried to filled the field “Biased Search Coordinates” but impossible to save the setting and when I reload the page, the setting disapear.

    I hope this ticket help you to fix this bug.

    Have a good day!

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Fatal error: Uncaught TypeError: array_search()’ is closed to new replies.