• Resolved gimico

    (@gimico)


    Plugin doesn’t allow me to save after installation and has this error message after Restriction Type on the setup menu:

    “There has been a critical error on this website. Please check your site admin email inbox for instructions.

    Learn more about troubleshooting WordPress.”

    Everything including plugins are up to date, and I have cleared the WP and browser cache.

    The error message in the email is:

    WordPress version 6.1.1
    Active theme: Zita (version 1.5.8)
    Current plugin: Simple Address Autocomplete (version 1.2.0)
    PHP version 8.0.27

    Error Details
    =============
    An error of type E_ERROR was caused in line 416 of the file /var/www/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 /var/www/wp-content/plugins/simple-address-autocomplete/includes/class-simple-address-autocomplete.php:416
    Stack trace:
    #0 /var/www/wp-content/plugins/simple-address-autocomplete/includes/class-simple-address-autocomplete.php(416): array_search(‘biased’, ‘biased’, true)
    #1 /var/www/wp-admin/includes/template.php(1785): Simple_Address_Autocomplete->field_callback(Array)
    #2 /var/www/wp-admin/includes/template.php(1739): do_settings_fields(‘simple_autocomp…’, ‘general_setting…’)
    #3 /var/www/wp-content/plugins/simple-address-autocomplete/includes/class-simple-address-autocomplete.php(59): do_settings_sections(‘simple_autocomp…’)
    #4 /var/www/wp-includes/class-wp-hook.php(308): Simple_Address_Autocomplete->simple_address_autocomplete_settings_page_content(”)
    #5 /var/www/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(”, Array)
    #6 /var/www/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #7 /var/www/wp-admin/admin.php(259): do_action(‘settings_page_s…’)
    #8 /var/www/wp-admin/options-general.php(10): require_once(‘/var/www/wp-adm…’)
    #9 {main}
      thrown

    • This topic was modified 1 year, 8 months ago by gimico.
    • This topic was modified 1 year, 8 months ago by gimico.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Raza Khadim

    (@razakhadim)

    Hi @gimico sorry for the late reply. I can’t seem to replicate but have some theories. Will push it in the next update. Sorry for the inconvenience it may have caused.

    Plugin Author Raza Khadim

    (@razakhadim)

    @gimico this issue is now resolved in version 1.2.1. Please update the plugin and let me if you still see the issue.

    Thanks

    Plugin Author Raza Khadim

    (@razakhadim)

    I am marking this as resolved for now but do let me know if the issue persists.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Restriction Type – Critical Error on Website’ is closed to new replies.