You are not logged in.

#1 2020-01-07 10:21:31

karel
Member
From: Czech republic
Registered: 2007-01-15
Posts: 17

Piwigo - no write access

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

#2 2020-01-07 21:47:41

qinohe
Member
From: Netherlands
Registered: 2012-06-20
Posts: 1,494

Re: Piwigo - no write access

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

#3 2020-01-08 08:43:29

karel
Member
From: Czech republic
Registered: 2007-01-15
Posts: 17

Re: Piwigo - no write access

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

#4 2020-01-08 12:09:58

qinohe
Member
From: Netherlands
Registered: 2012-06-20
Posts: 1,494

Re: Piwigo - no write access

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

#5 2020-01-08 13:29:02

karel
Member
From: Czech republic
Registered: 2007-01-15
Posts: 17

Re: Piwigo - no write access

Yes, i found problem SE-linux, but i not have.
Yes, i try chmod -R 777, but same problem.

Offline

#6 2020-01-08 15:14:24

qinohe
Member
From: Netherlands
Registered: 2012-06-20
Posts: 1,494

Re: Piwigo - no write access

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

#7 2020-05-08 14:41:36

stueja
Member
Registered: 2015-10-18
Posts: 47

Re: Piwigo - no write access

systemctl edit php-fpm

add

ReadWritePaths = /usr/share/webapps/piwigo

Offline

Board footer

Powered by FluxBB