piwigo-openstreetmap icon indicating copy to clipboard operation
piwigo-openstreetmap copied to clipboard

Error with piwigo 15

Open mdlaat opened this issue 1 year ago • 4 comments

Hi, thank you for this plugin. After updating piwigo to 15.0, I get these errors, also after trying to reinstall piwigo-openstreetmap:

Warning: file_put_contents(./osmmap.php): Failed to open stream: Permission denied in /config/www/plugins/piwigo-openstreetmap/maintain.class.php on line 161

Fatal error: Uncaught --> Smarty: unable to write file ./osmmap.php <-- thrown in /config/www/plugins/piwigo-openstreetmap/maintain.class.php on line 164

My piwigo was running otherwise fine in docker, as non-root. Help appreciated, thank you.

mdlaat avatar Nov 03 '24 12:11 mdlaat

Same here. and still the case after deactivation, delete and reinstall. is there any information I can share helping for find the issue?

addich avatar Nov 07 '24 16:11 addich

Workaround is to execute these 2 commands: docker exec -it piwigo bash -c 'touch /app/www/public/osmmap.php' docker exec -it piwigo bash -c 'chmod 777 /app/www/public/osmmap.php'

mdlaat avatar Nov 12 '24 14:11 mdlaat

The workaround was also good for this symptom: During activation of the piwigo-openstreetmap plugin the red message "An error ocurred" appeared.

PaulSpa avatar May 06 '25 12:05 PaulSpa

On Debian, I used the following workaround:

cd /usr/share/piwigo
touch osmmap.php
chmod 755 osmmap.php

Stamgastje avatar May 18 '25 19:05 Stamgastje