Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Undefined index: PATH_TRANSLATED in .../index.php  (Read 13240 times)

0 Members and 1 Guest are viewing this topic.

djnz

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Undefined index: PATH_TRANSLATED in .../index.php
« on: July 10, 2004, 10:17:05 pm »

Are you aware that $_SERVER['PATH_TRANSLATED'] is not available in many configurations of php? This is accessed directly right at the beginning of index.php and generates a warning from php, but of course without error_reporting at sufficient level you don't see it (I have had a working gallery for a while but I set error_reporting=E_ALL to debug something else and there it was).

If you think you are ok, just try E_ALL in your index.php!

I must say that lines 21-27 of index.php in CPG1.3 are pretty lame anyway - I don't want to parse this code every time my gallery is hit just to detect whether I am stupid enough to install the wrong version. So the fix is easy.

On the bright side :) I love Coppermine and have installed it a number of times; it is at the heart of a sexy (not in that sense) integration project I am working on right now...
Logged

tycoonrp

  • Coppermine newbie
  • Offline Offline
  • Posts: 16
Re: Undefined index: PATH_TRANSLATED in .../index.php
« Reply #1 on: September 24, 2004, 10:08:32 pm »

hello,
i have encountered the same errors.  mine errors are:

Notice: Undefined index: PATH_TRANSLATED in C:\wwwroot\index.php on line 21
Notice: Undefined offset: -1 in C:\wwwroot\index.php on line 22

where exactly in index.php did you add error_reporting=E_ALL to fix these errors?  any other solution?

thanks.

rick
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Undefined index: PATH_TRANSLATED in .../index.php
« Reply #2 on: September 24, 2004, 10:21:33 pm »

switch off debug mode in coppermine config and you should be fine.

Joachim
Logged

tycoonrp

  • Coppermine newbie
  • Offline Offline
  • Posts: 16
Re: Undefined index: PATH_TRANSLATED in .../index.php
« Reply #3 on: September 24, 2004, 11:00:27 pm »

where can i find the coppermine config and switch the debug mode off?

thanks
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: Undefined index: PATH_TRANSLATED in .../index.php
« Reply #4 on: September 24, 2004, 11:03:12 pm »

Log in as administrator and make sure you're in Admin Mode, not User Mode. Click the config button.
Logged

tycoonrp

  • Coppermine newbie
  • Offline Offline
  • Posts: 16
Re: Undefined index: PATH_TRANSLATED in .../index.php
« Reply #5 on: September 24, 2004, 11:11:01 pm »

i don't think i got to that stage.  it won't continue to the next page.  i'm stuck at the "welcome to coppermine installation".
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Undefined index: PATH_TRANSLATED in .../index.php
« Reply #6 on: September 24, 2004, 11:32:24 pm »

the notices are definitely not your problem...

Joachim
Logged

tycoonrp

  • Coppermine newbie
  • Offline Offline
  • Posts: 16
Re: Undefined index: PATH_TRANSLATED in .../index.php
« Reply #7 on: September 25, 2004, 12:17:18 am »

i was restless many nights trying to get coppermine running correctly.  i formatted my pc and reinstalled php501, even the latest php502 and still got the same errors.  finally!!! i got it to work.  thanks everyone for your support and effort.  special thanks to my buddy, tony, provided a great suggestion... to install php4.x
Logged

Andi

  • VIP
  • Coppermine regular visitor
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 85
  • Join the Future
    • www.pragmamx.org
Logged
hope, I could help you... :)
Pages: [1]   Go Up
 

Page created in 0.022 seconds with 15 queries.