Thread Starter
Marisa
(@marisa2023)
The library works fine from the regular WordPress site to get location from the IP address.
But it only fails on the admin pages.
On the settings page there is a link to https://mysite.com/wp-admin/tools.php?page=geoip-detect/geoip-detect.php
This fails. It generates the “Sorry, you are not allowed to access this page.” warning.
But if I type in https://mysite.com/wp-admin/tools.php?page=geoip-detect the browser address page it works.
This probably means you changed the admin page slugs .
-
This reply was modified 1 month, 1 week ago by
Marisa.
Thread Starter
Marisa
(@marisa2023)
The fact that:
/wp-admin/tools.php?page=geoip-detect works
The “Test IP Detection Lookup” button generates /wp-admin/tools.php?page=geoip-detect/geoip-detect.php
That URL produces “Sorry, you are not allowed to access this page.”
Thread Starter
Marisa
(@marisa2023)
I checked the box “Maxmind GeoIP Lite City (Automatic download & update)” . This used to work and it worked for months. Now it complains it cannot overwrite the current file. This may be related to the bad slugs / urls.
Yes indeed I changed the admin page slugs and did not test it thouroughly enough, sorry. It is fixed now in 5.6.4 (also the issue with the automatic download).
Thread Starter
Marisa
(@marisa2023)
Many thanks for fixing this so quickly.