You are not logged in.
Pages: 1
Hi,
I upgrade piwigo, but now not working. When access on site:
Piwigo encountered an irrecoverable error
./_data/templates_c no write access
#1 mkgetdir /usr/share/webapps/piwigo/include/template.class.php(101)
#2 Template::__construct /usr/share/webapps/piwigo/include/common.inc.php(218)
#3 include_once /usr/share/webapps/piwigo/index.php(11)
Tried
chmod 777 /usr/share/webapps/piwigo/_data/templates_c/ -R
But still error.
Where is error?
Thanks for reply.
Offline
How did you upgrade piwigo?
Did you create a database backup, could get you on track in a short time..
Using 777 isn't a solution of course, and in fact you shouldn't use that kind of bad workarounds..
Use 'chown -R www-data:www-data piwigo/...'
Can't tell you where the exact error is, still.
Btw. I had no problems, but what php version are you running, 7.4? could be piwigo is not yet up to speed..
edit: I see _data has full read and write access, at least her it does(default).
Last edited by qinohe (2020-01-07 21:50:37)
Offline
chown -R http:http piwigo/ not work.
I upgrade piwigo over piwigo update site.
PHP running 7.4.1-1
nginx 1.16.1
Testing uninstall piwigo, delete piwigo folder and install piwigo aur.
Some error:
an error occurred
Give write access (chmod 777) to "_data/" directory at the root of your Piwigo installation
Offline
I checked and piwigo does indeed run on 7.4 already.
I can't say anything about nginx, running apache for all my local servers.
Also I didn't use the zip, used the netinstall from github, maybe try that one..
Now I have searched if others encountered the same problem are you running SE-linux?
You did 'chmod -R 777 piwigo/_data', right?
Offline
Yes, i found problem SE-linux, but i not have.
Yes, i try chmod -R 777, but same problem.
Offline
Hmm, maybe clone the github repo to your web space and see if that solves anything..
I that wont work I would suggest to open a bug report on https://github.com/Piwigo/Piwigo/issues if your sure is nothing wrong with your environment (nginx/mysql/php)
I'm a bit out of ideas :\
Offline
systemctl edit php-fpm
add
ReadWritePaths = /usr/share/webapps/piwigo
Offline
Pages: 1