• Hello,

    I’m experiencing a critical error with the No External Links plugin and would like to report a possible bug.Critical error when using JavaScript Redirect masking option

    Steps to reproduce:

    1. Go to No External Links settings.
    2. In Masking Type, select JavaScript Redirect.
    3. Enter any content into the JavaScript Redirect Text field.
    4. Click Save.

    Error message:
    Uncaught Error:
    Mihdan\No_External_Links\Admin\Admin::sanitize_text_array_deep():
    Argument #1 ($arr) must be of type array, null given,
    called in /s2-decideletters/wordpress/wp-includes/class-wp-hook.php on line 343
    in /s2-decideletters/wordpress/wp-content/plugins/mihdan-no-external-links/admin/Admin.php on line 2361

    Call stack:

    • Mihdan\No_External_Links\Admin\Admin::sanitize_text_array_deep()
    • wp-includes/class-wp-hook.php:343
    • WP_Hook::apply_filters()
    • wp-includes/plugin.php:205
    • apply_filters()
    • wp-includes/formatting.php:5135
    • sanitize_option()
    • wp-includes/option.php:887
    • update_option()
    • wp-admin/options.php:345

    It looks like sanitize_text_array_deep() is receiving null instead of an array when saving this option.

    I would really appreciate it if you could take a look or let me know if there’s a workaround or fix planned.

    Thank you very much for your support.

You must be logged in to reply to this topic.