•  » Engine
  •  » picture.php/i.php $conf['question_mark_in_urls'] bug (2.4)

#1 2012-06-29 15:26:06

fatman
Translation Team
2012-03-16
20

picture.php/i.php $conf['question_mark_in_urls'] bug (2.4)

if I enable $conf['question_mark_in_urls'] = false; the url in picture.php will become

../../../i.php/galleries/XXXXXXXX
../../../galleries/XXXXXXX

that make some element in that page is not load.

it should be caused by $page['root_path'] in section_init.php is incorrect build. i.php also have this problem.

Offline

 

#2 2012-06-29 15:37:01

flop25
Piwigo Team
2006-07-06
7038

Re: picture.php/i.php $conf['question_mark_in_urls'] bug (2.4)

my local last stable install is running with $conf['question_mark_in_urls'] = false; by default and I don't get any problem
What is your theme ?

ps : my urls are like yours but without problem to load it


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#3 2012-06-29 16:16:13

fatman
Translation Team
2012-03-16
20

Re: picture.php/i.php $conf['question_mark_in_urls'] bug (2.4)

flop25 wrote:

my local last stable install is running with $conf['question_mark_in_urls'] = false; by default and I don't get any problem
What is your theme ?

ps : my urls are like yours but without problem to load it

I checked again, I think mainly is the i.php problem, not the section_init.php.

If the image is first time to load in picture.php the img src is point to  "../../../i.php/galleries/XXXXXXXX", the image can't load, however, if it is loaded before(cache image generated?), it will point to
"../../../_data/i/galleries/XXXXX", it will be ok.

I am using stripped, but also have same problem on clear.

Offline

 

#4 2012-06-29 16:18:19

flop25
Piwigo Team
2006-07-06
7038

Re: picture.php/i.php $conf['question_mark_in_urls'] bug (2.4)

ok it seems a problem with a server config or something like that.
Could you first rename the .htaccess of piwigo in something else, just to see its influence

ps : have you tried to set it 'true' ?


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#5 2012-06-29 16:29:07

fatman
Translation Team
2012-03-16
20

Re: picture.php/i.php $conf['question_mark_in_urls'] bug (2.4)

True is OK.

I am using nginx, so don't have the .htaccess ....

Offline

 

#6 2012-06-29 16:57:10

flop25
Piwigo Team
2006-07-06
7038

Re: picture.php/i.php $conf['question_mark_in_urls'] bug (2.4)

sry it's beyond my knowledge


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#7 2012-06-29 22:47:42

fatman
Translation Team
2012-03-16
20

Re: picture.php/i.php $conf['question_mark_in_urls'] bug (2.4)

OK, found the root cause, that is the server config problem.

I used to make the image file hotlink prevention rule before the php file pass to fastcgi rule.  So, the /i.php/pathto/a.jpg match the hotlink prevention first, and not going to fastcgi.

Thank for your help.

Offline

 
  •  » Engine
  •  » picture.php/i.php $conf['question_mark_in_urls'] bug (2.4)

Board footer

Powered by FluxBB