• Resolved nexbridge

    (@nexbridge)


    We’re using AIOS version 5.4.9 and have recently started seeing the following error message in the PHP logs:

    [2026-07-28 10:40:23] preg_match(): Argument #2 ($subject) must be of type string, array given
    TypeError at /wp-content/plugins/all-in-one-wp-security-and-firewall/classes/wp-security-helper.php(137):
    #0 /wp-content/plugins/all-in-one-wp-security-and-firewall/classes/wp-security-helper.php(137): preg_match()
    #1 /wp-content/plugins/all-in-one-wp-security-and-firewall/classes/wp-security-utility.php(1584): AIOS_Helper::is_user_ip_address_within_list()
    #2 /wp-content/plugins/all-in-one-wp-security-and-firewall/classes/wp-security-general-init-tasks.php(627): AIOWPSecurity_Utility::is_genuine_search_bot()
    #3 /wp-includes/class-wp-hook.php(341): AIOWPSecurity_General_Init_Tasks->check_404_event()
    #4 /wp-includes/class-wp-hook.php(365): WP_Hook->apply_filters()
    #5 /wp-includes/plugin.php(522): WP_Hook->do_action()
    #6 /wp-includes/template-loader.php(23): do_action()
    #7 /wp-blog-header.php(19): require_once(‘…’)
    #8 /index.php(17): require(‘…’)
    #9 {main}

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Support hjogiupdraftplus

    (@hjogiupdraftplus)

    Hi @nexbridge,

    Thanks for raising this issue. Let me check this internally. It appears that the IP lists for genuine search engine bots, such as the Googlebot IP list, may not be correct.

    Regards

    Plugin Support hjogiupdraftplus

    (@hjogiupdraftplus)

    Hi @nexbridge.

    We’ve created an internal ticket to investigate it. To help us reproduce the problem, we need a little more information, as we haven’t been able to reproduce it on our side.

    Could you please check the following file?

    /wp-content/uploads/aios/firewall-rules/settings.php

    In that file, could you please copy the values for:

    • aiowps_googlebot_ip_ranges
    • aiowps_bingbot_ip_ranges

    If possible, please paste those values into https://pastebin.com/ and send us the link.

    This information will help us investigate the issue further.

    Regards,

    Thread Starter nexbridge

    (@nexbridge)

    Hi there,

    See below as requested:

    https://pastebin.com/Tbxnjmrt

    Please note it’s a one-time link.

    Plugin Support hjogiupdraftplus

    (@hjogiupdraftplus)

    Hi @nexbridge,

    Thanks for sharing the values of aiowps_googlebot_ip_ranges and aiowps_bingbot_ip_ranges.

    After checking them, they appear to be valid and I couldn’t find any issues. Since these values are updated automatically by a scheduled cron job, it’s difficult to determine what they contained at the time the error occurred. It’s also possible that you may no longer be experiencing this error.

    Please let us know if you still see the following error:

    Argument #2 ($subject) must be of type string, array given (TypeError)

    In the meantime, we’ll check if it may possible to not trigger that error, even if the stored data is in an unexpected format.

    Regards

    Thread Starter nexbridge

    (@nexbridge)

    OK – if it happens again I’ll let you know.

    Plugin Support hjogiupdraftplus

    (@hjogiupdraftplus)

    Hi @nexbridge

    Ok, keep me posted.

    Thread Starter nexbridge

    (@nexbridge)

    Just to let you know that this happened again on 29th and 30th August. I’ve pasted the current values for aiowps_googlebot_ip_ranges and aiowps_bingbot_ip_ranges below as a one-time link, in case it helps:

    https://pastebin.com/W6NkjYne

    Plugin Support hjogiupdraftplus

    (@hjogiupdraftplus)

    Hi @nexbridge,

    The shared values for aiowps_googlebot_ip_ranges and aiowps_bingbot_ip_ranges seem to be valid, and I couldn’t find any issues.

    We have made a change to the function that matches the user’s IP address against these IP ranges. Therefore, the next release of AIOS should not have this issue.

    Regards

    Thread Starter nexbridge

    (@nexbridge)

    Just to let you know that this happened again today. The version being used is 5.4.10 – should that contain the fix you mentioned?

    Plugin Support hjogiupdraftplus

    (@hjogiupdraftplus)

    Hi @nexbridge,

    No, AIOS 5.4.10 was released as a security patch. The main update will still be released and will include this fix.

    https://wordpress.org/plugins/all-in-one-wp-security-and-firewall/#developers

Viewing 10 replies - 1 through 10 (of 10 total)

You must be logged in to reply to this topic.