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
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,
Hi there,
See below as requested:
https://pastebin.com/Tbxnjmrt
Please note it’s a one-time link.
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
OK – if it happens again I’ll let you know.
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
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
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?
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