preg_match() TypeError in wp-security-helper.php
-
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}
You must be logged in to reply to this topic.