• Resolved Peter Smits

    (@psmits1567)


    Hi,

    After updating the site to the latest version of WordPress I get the following warnings
    Trying to access array offset on value of type bool in /www/wp-content/plugins/ip2location-country-blocker/ip2location-country-blocker.php on line 2956
    Can you provide a fix for that?
    The add-on does still blocks unwanted visitors
    Regards,
    Peter

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author ip2location

    (@ip2location)

    Hi,

    Can you please do a database update under the plugin settings and try again?

    It looks like there is a problem with the lookup result.

    Hi,

    Thanks for your support, I performed the action you described.
    But yesterday I noticed the same error again
    [15-May-2022 02:52:58 UTC] PHP Warning: Trying to access array offset on value of type bool in /www/wp-content/plugins/ip2location-country-blocker/ip2location-country-blocker.php on line 2956
    [15-May-2022 02:52:58 UTC] PHP Warning: Trying to access array offset on value of type bool in /www/wp-content/plugins/ip2location-country-blocker/ip2location-country-blocker.php on line 2957

    Any suggestions?
    Peter

    Plugin Author ip2location

    (@ip2location)

    I made some fixes to this issue. Please update to version 2.26.12.

    Thread Starter Peter Smits

    (@psmits1567)

    Hi, This morning I updated my site with the patch.
    3 hours later no errors yet, but I think we will have to wait a bit longer.
    Then tomorrow I will let you know if it is fixed with this patch
    Thanks for the quick support!
    Peter

    Thread Starter Peter Smits

    (@psmits1567)

    Hi,

    Checked my logging and noticed the following errors

    [17-May-2022 16:51:06 UTC] PHP Warning:  Undefined variable $caches in /www/wp-content/plugins/ip2location-country-blocker/ip2location-country-blocker.php on line 3057
    [17-May-2022 16:51:06 UTC] PHP Warning:  Undefined variable $caches in /www/wp-content/plugins/ip2location-country-blocker/ip2location-country-blocker.php on line 3058
    [17-May-2022 16:51:06 UTC] PHP Warning:  Trying to access array offset on value of type null in /www/wp-content/plugins/ip2location-country-blocker/ip2location-country-blocker.php on line 3058
    [17-May-2022 16:51:06 UTC] PHP Warning:  Undefined variable $caches in /www/wp-content/plugins/ip2location-country-blocker/ip2location-country-blocker.php on line 3059

    I hope this helps you find a solution
    Peter

    Plugin Author ip2location

    (@ip2location)

    Can you update to the latest version for this fix?

    Thread Starter Peter Smits

    (@psmits1567)

    Hi,

    Just checked my site, there are currently no more errors present
    So it seems to be resolved
    Thanks for the quick fixes
    Peter

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘PHP errors’ is closed to new replies.