• Resolved waynecwp

    (@waynecwp)


    The Settings page ends at:
    Restriction Type	
    There has been a critical error on this website. Please check your site admin email inbox for instructions.
    
    Learn more about troubleshooting WordPress.
    ---
    These error details were sent in an email to the site Admin.
    
    Error Details
    
    =============
    
    An error of type E_ERROR was caused in line 416 of the file /home/acovrecleaning/livedev2/wp-content/plugins/simple-address-autocomplete/includes/class-simple-address-autocomplete.php. Error message: Uncaught TypeError: array_search(): Argument #2 ($haystack) must be of type array, string given in /home/acovrecleaning/livedev2/wp-content/plugins/simple-address-autocomplete/includes/class-simple-address-autocomplete.php:416
    
    Stack trace:
    
    #0 /home/acovrecleaning/livedev2/wp-content/plugins/simple-address-autocomplete/includes/class-simple-address-autocomplete.php(416): array_search()
    
    #1 /home/acovrecleaning/livedev2/wp-admin/includes/template.php(1785): Simple_Address_Autocomplete->field_callback()
    
    #2 /home/acovrecleaning/livedev2/wp-admin/includes/template.php(1739): do_settings_fields()
    
    #3 /home/acovrecleaning/livedev2/wp-content/plugins/simple-address-autocomplete/includes/class-simple-address-autocomplete.php(59): do_settings_sections()
    
    #4 /home/acovrecleaning/livedev2/wp-includes/class-wp-hook.php(308): Simple_Address_Autocomplete->simple_address_autocomplete_settings_page_content()
    
    #5 /home/acovrecleaning/livedev2/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
    
    #6 /home/acovrecleaning/livedev2/wp-includes/plugin.php(517): WP_Hook->do_action()
    
    #7 /home/acovrecleaning/livedev2/wp-admin/admin.php(259): do_action()
    
    #8 /home/acovrecleaning/livedev2/wp-admin/options-general.php(10): require_once('/home/acovrecle...')
    
    #9 {main}
    
    ? thrown
    ---
    
    
    Thank you.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Raza Khadim

    (@razakhadim)

    Kia ora Wayne,

    I can’t seem to replicate the error. Could you please also share the text just before the Error Details that was emailed to you? It should look something like this.

    When seeking help with this issue, you may be asked for some of the following information:
    WordPress version 6.1.1
    Active theme: Your Theme Name (version 1.2.3)
    Current plugin: Plugin Name (version 4.5.6)
    PHP version 7.4.33

    The caching has caused issues, not specifically this type, make sure you have cleared the cache and chosen a country. Also, a screenshot of the settings would be helpful to understand The Setting ends at: Restriction Type part of it.

    Thanks

    Plugin Author Raza Khadim

    (@razakhadim)

    @waynecwp I have not heard back from you in a week. I will close this support topic. Please do let me know if issue is not resolved.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Unable to save settings, errors thrown.’ is closed to new replies.