Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Slideshow problems due to PHP_SELF = REDIRECT_URL assignment  (Read 13865 times)

0 Members and 1 Guest are viewing this topic.

onkeljossip

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Slideshow problems due to PHP_SELF = REDIRECT_URL assignment
« on: March 23, 2004, 08:42:43 pm »

Hi folks,
I wasn't able to start a slideshow or browse to the next image whenever I accessed a random image from my gallery startpage.

I've looked into the code and found the following cause:

In init.inc.php the variable PHP_SELF is assigned as

Code: [Select]

$PHP_SELF = isset($HTTP_SERVER_VARS['REDIRECT_URL']) ? $HTTP_SERVER_VARS['REDIRECT_URL'] : $HTTP_SERVER_VARS['SCRIPT_NAME'];


Problem is that on my provider's server (Apache 1.3.19, PHP 4.1.2), REDIRECT_URL always points to the php script URL INCLUDING the HTTP-GET variables.  SCRIPT_NAME has the correct value but never gets used because REDIRECT_URL is already defined.

Example:

$PHP_SELF =  /pixies/displayimage.php?album=random&cat=&pos=-26
instead of the desired
$PHP_SELF =  /pixies/displayimage.php

(I've checked other servers on the web and they don't include the HTTP-GET variables in the REDIRECT_URL string. Lucky them.)

Could someone explain the reason why REDIRECT_URL is being used for PHP_SELF and not just SCRIPT_NAME?
I thought that REDIRECT_URL is just for error handling purposes.

Any insight is greatly appreciated!

Cheers,
onkeljossip (a very happy coppermine user)
Logged

bombo

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: Slideshow problems due to PHP_SELF = REDIRECT_URL assignment
« Reply #1 on: March 27, 2006, 09:45:53 am »

is there a reply somewhere for that ? it will help me aswell... thanks
Logged

Nibbler

  • Guest
Re: Slideshow problems due to PHP_SELF = REDIRECT_URL assignment
« Reply #2 on: March 27, 2006, 01:50:16 pm »

Update your gallery.
Logged

bombo

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: Slideshow problems due to PHP_SELF = REDIRECT_URL assignment
« Reply #3 on: March 27, 2006, 03:15:18 pm »

thanks but finally my problem was different sorry
http://forum.coppermine-gallery.net/index.php?topic=29639.msg137194#msg137194
but you do not support coppeminevis :'(
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 19 queries.