Hi there,
since some time (not sure when) the OpenStreetMap plugin with the Mapnik map shows some (random) tiles with the message "Access Blocked Referer is required". The other maps (DE, FR, HOT, ...) work without issue.
Has anyone else seen this? For now I have switched the map but I like the Mapnik style :-)
Thanks!
Thomas
Piwigo 16.4.0 Check for upgrade
Installed on 17 October 2015, 10 years 7 months 2 weeks ago
Operating system: Linux
Container info: (unofficial) Unknown
PHP: 8.4.21 (Show info) [2026-06-01 21:37:26]
MySQL: 5.7.42-log [2026-06-01 21:37:26]
Graphics Library: External ImageMagick 6.9.11-60
Cache size 17049.97 MB calculated right now Refresh
Piwigo URL: http://www.feuster.com/piwigo
Offline
Hello Thomas !
What happens to my Piwigo rather often (once a month maybe), is that OSM-FR does not show at all : only a rectangle of grey nothing. Other times, the map is valid for world wide view, but gets grey when I zoom in.
I suppose this basemap is currently unavailable because too many users are trying to access it. If the issue persists for more than two or three hours, I switch to a different basemap, trying several until one works. I come back a few days later to try to load my preferred map. There is a forum for OSM-FR, and I sometimes browse it to try to find out how long the outage will last and why it’s happening.
So far, I haven’t found a permanent solution.
Offline
Hi Katryne!
Thanks for the answer. Interestingly, I don't see this happening for OSM-FR - maybe I check during different times than you do.
Since I also use leaflet in some other projects I had a look there and there was discussion about a change that OpenStreetMap introduced some time ago that leads to the behavior that randomly some tiles show this error message "Access blocked 403r". The solution there was to ensure that a valid Referer is set during the call to OpenStreetMap (https://github.com/Leaflet/Leaflet/pull/9897).
Since the plugin also uses leaflet under the hood it might be necessary to backport this change here as well? Not sure if my skills are sufficient for that. Will have a look at this once I have some spare time...
Offline
We got the 403r error with the genealogy software i use and it looks that the coders found a solution : https://tng.community/index.php?/forums … ent-137977
Offline
Cool! But not sure if I have access to .htaccess on my hosting.
In any case: This "strict-origin-when-cross-origin" setting is also, what leaflet changed to get it working again.
Offline
.htaccess are by default hidden files. You may have to enable hidden files display in your ftp software.
With the Block You Bots plugin, you may also have access to your .htaccess file directly in this plugin settings, so within the administration of the Piwigo. But I am not sure, I haven't tried, I am no coder and I'm a webmaster who causes disasters. Ask those in the know !
Last edited by Katryne (2026-06-02 20:57:39)
Offline