Hi,
I'm using Piwigo for a long time now, never had any problems (always updated every minor and major version).
Today I upgraded to 2.9.0 and noticed a lot of failing pictures.
I examined the file structure and noticed that files are saved in
/_data/i/galleries
/_data/i/upload
/upload
/galleries
Pictures which are currently not working are before 2014-10 (Version 2.7.0)
Is there a way to find out what's wrong with my installation and fix it?
Piwigo version: 2.9.0
PHP version: 5.6.30-0+deb8u1
MySQL version: 5.5.55-0+deb8u1
Piwigo URL: private
Offline
Can you give me your URL by email? <my username on this forum>@<the domain name of this forum>
Offline
I did send you the info via mail. Thanks for looking into it.
Offline
Hi cybermcm,
Very strange. Let's see that together :-)
If I open the page of a photo from 2017, the URL of the photo is :
_data/i/upload/2017/05/01/20170501215623-552ab312-me.jpg => works fine
and a photo from 2013 :
_data/i/galleries/kids/2013/2013-01-08_Paul_01-me.jpg => fails fine! "could not load" photo.
Now if I force Piwigo to load the photo through PHP :
i.php?/galleries/kids/2013/2013-01-08_Paul_01-me.jpg => works fine!
It means the file is there and can be read. But I also see that if I try to open directly _data/i/galleries/kids/2013/2013-01-08_Paul_01-me.jpg in my browser, I'm redirected to index.php?/category/43
Don't you have some .htaccess files in _data/i/2013 which automatically redirect the visitor?
Can you try to activate this setting in the local configuration (with plugin LocalFiles Editor):
<?php $conf['derivative_url_style'] = 2; ?>
Offline
Hi,
I do not have a .htaccess file but I've a global Redirect rule in place, my bad..... after removing my rule everything seems to work fine again.
my initial question: is it correct that files reside in 4 different folders?
/_data/i/galleries
/_data/i/upload
/upload
/galleries
BR and thanks again for pointing me in the correct direction...
CyberMCM
Offline
cybermcm wrote:
I do not have a .htaccess file but I've a global Redirect rule in place, my bad..... after removing my rule everything seems to work fine again.
Good :-)
cybermcm wrote:
my initial question: is it correct that files reside in 4 different folders?
Yes :
* _data/i : cache for multiple sizes
* upload : where Piwigo stores photos added with the web form or remote applications
* galleries : where you manually add photos (by FTP, for example)
Offline