tokkonopapa / WordPress-IP-Geo-Block

A WordPress plugin that will blocks any comment, pingback and trackback spams posted from outside your nation. And it will also protect against malicious access to the login form, admin area and XML-RPC from undesired countries.
http://www.ipgeoblock.com/
29 stars 14 forks source link

E_COMPILE_ERROR in line 849 in the file IPv6.php (using php version 8.2.6) #66

Open gjatester opened 1 year ago

gjatester commented 1 year ago

Hi. WordPress threw this error: E_COMPILE_ERROR in line 849 in the file IPv6.php (Latest WP and php version 8.2.6). The error message: "Array and string offset access syntax with curly braces is no longer supported.

I just changed the curly braces $ip{$pos} = ''; with square brackets and problem solved: $ip[$pos] = '';

gjatester commented 1 year ago

Plugin versjon is 3.0.17.4

darrenmcentee commented 1 year ago

Hi, im not connected to this project directly, but i was an avid user some years back.

You may want to move on from this, as it's repo hasnt been updated in 4-5 years.

There is a new updated fork from Darko Gjorgjijoski over on https://wordpress.org/plugins/ip-location-block/

This is based on the now abandoned “IP Geo Block” plugin by tokkonopapa.

Darko has fixed various issues and improved the overall codebase. Best to check that out instead. Cheers, Darren.

ddur commented 1 year ago

@darrenmcentee

Thank You for the information.