Announcement

#1 2017-05-02 18:10:13

cybermcm
Member
2014-09-29
4

[resolved] Piwigo data corruption

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

 

#2 2017-05-02 18:34:32

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13791

Re: [resolved] Piwigo data corruption

Can you give me your URL by email? <my username on this forum>@<the domain name of this forum>

Offline

 

#3 2017-05-03 22:21:13

cybermcm
Member
2014-09-29
4

Re: [resolved] Piwigo data corruption

I did send you the info via mail. Thanks for looking into it.

Offline

 

#4 2017-05-04 13:11:37

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13791

Re: [resolved] Piwigo data corruption

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):

Code:

<?php
$conf['derivative_url_style'] = 2;
?>

Offline

 

#5 2017-05-04 13:51:08

cybermcm
Member
2014-09-29
4

Re: [resolved] Piwigo data corruption

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

 

#6 2017-05-04 13:57:05

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13791

Re: [resolved] Piwigo data corruption

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

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact