Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Activation Error #228

Open
weswitt opened this issue Jan 16, 2023 · 2 comments
Open

Activation Error #228

weswitt opened this issue Jan 16, 2023 · 2 comments

Comments

@weswitt
Copy link

weswitt commented Jan 16, 2023

i'm running piwigo version 13.4.0 and current version of openstreetmap plugin.

when activating the plugin i get an error that says "an error occurred". the plugin displays a map as expected but changing the plugin settings have NO effect. for example, changing the "map height" has no effect. so it seems that there is in fact some kind of error preventing the plugin from working properly.

@Seneliux
Copy link

Seneliux commented Feb 10, 2024

Same issue. Fresh install of the Piwigo 14.2.0
PHP: 8.2.10
MySQL: 10.11.6

nginx logs shows this error:

024/02/10 09:52:05 [error] 28916#28916: *33 FastCGI sent in stderr: "PHP message: PHP Warning: file_put_contents(./osmmap.php): Failed to open stream: Permission denied in /www/piwigo/plugins/piwigo-openstreetmap/maintain.class.php on line 161; PHP message: PHP Warning: Undefined variable $_error_reporting in /www/piwigo/plugins/piwigo-openstreetmap/maintain.class.php on line 162; PHP message: PHP Warning: Undefined variable $PHPWG_ROOT_PATH in www/piwigo/plugins/piwigo-openstreetmap/maintain.class.php on line 163; PHP message: PHP Fatal error: Uncaught --> Smarty: unable to write file osmmap.php <--
thrown in /www/piwigo/plugins/piwigo-openstreetmap/maintain.class.php on line 163" while reading response header from upstream, client: 192.168.123.9, server: piwigo.org, request: "GET /piwigo/ws.php?method=pwg.plugins.performAction&action=activate&plugin=piwigo-openstreetmap&pwg_token=SECRETd&format=json HTTP/2.0", upstream: "fastcgi://unix:/run/php/php-fpm.sock:", host: "piwigo.org", referrer: "https://DOMAIN/piwigo/admin.php?page=plugins&tab=installed"

Permissions error and some varianles is undefined.
Can not activate the plugin.

@Seneliux
Copy link

Solution:
change the owner to "www user" of the piwigo folder. Enough not recursively. Ubuntu nginx user is www-data:
chown www-data:www-data piwigo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants