Bug found. Causes whole website to slow down significantly
-
Dear sir,
Firstly, thank you for your plugin. It is very good at what it does. My client uses it a lot and they have a lot of IP addresses in it. However, recently we found that the website has slowed down significantly. I narrowed down the problem to your plugin. The website sped up a lot when I had it disabled.
Through my investigation, here are my findings:Using Query Monitor, I had several notices that states:
Undefined offset at
wp-content/plugins/ip-based-login/lib/IPv6/BigInteger.php:893
wp-content/plugins/ip-based-login/lib/IPv6/BigInteger.php:896I cleared the list of IP addresses and added them in bulk instead. It seems that certain IP addresses are not calculated correctly. Here are some of them
4.31.46.6
4.31.46.7
4.31.46.8I printed out to screen the value of $i and $value at the location the problem occured. Inside your loop, they were looking at:
$value = Array( [0] => 2043398 [2] => 0)
$i = 1
So there is no index 1 that spout the error out.I hope this will help you to come up with a fix soon. Thank you
- The topic ‘Bug found. Causes whole website to slow down significantly’ is closed to new replies.