Errors when running install.php Errors when running install.php
 

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]

Main Menu

Errors when running install.php

Started by dunblane33, April 19, 2005, 04:50:49 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

dunblane33

I have just completed a fresh install on Windows XP SP2 of the following:
Apache 2.0.54, MySQL 4.1.11, PHP 5.0.4 and ImageMagick 6.2.1
I have selected default installs on everything as this is new to me and manually installed PHP.
The CPG1.3.2 installation folder has been copied into C:\Program Files\Apache Group\Apache2\htdocs

All components test OK individually, however when I run http://localhost/cpg132/install.php and complete the form I get the following errors on the page:

Notice: Undefined index: PATH_TRANSLATED in C:\Program Files\Apache Group\Apache2\htdocs\cpg132\install.php on line 21
Notice: Undefined offset: -1 in C:\Program Files\Apache Group\Apache2\htdocs\cpg132\install.php on line 22

I can run any of the other PHP pages but the app keeps telling me I need to install coppermine.

Steve Moore

OmegaGOD

Please search the board for PATH_TRANSLATED.

--OmegaGOD
Please do not PM me with support questions. Please read the manual and then if posting questions please place them in the proper sub-boards.

Suffering

I'm also trying to install on Windows XP SP2 and having the same troubles.  I'm using the built-in IIS web server however.

MySQL 5.0.12
CPG 1.3.3

I'm getting the same errors with the PATH_TRANSLATED variable being undefined:

Notice: Undefined index: PATH_TRANSLATED in C:\Clement Kin Web Sites\ClementRoot\coppermine\install.php on line 21

Notice: Undefined offset: -1 in C:\Clement Kin Web Sites\ClementRoot\coppermine\install.php on line 22

I've searched all the posting for answers and found nothing that helped.  I did try replacing the PATH_TRANSLATED variable with SCRIPT_NAME, and the errors go away but I am left with a blank page.

And oh btw, I do have register_long_arrays = On in my php.ini.  Didn't help at all.

All in all this has been a very frustrating experience.  I have spent hours looking for answers to no avail.  The most frustrating thing is the lack of helpful error messages and poor documentation.

Can anybody please help?

thegent

i get the same error

i think it is an assumtion on the part of coppermine that everyone will use the wwwroot folder.
neither you nor i use that folder, we have the same problem
i bet if you install using a site built on wwwroot, like i did, you will have no problem, just like me.
Confucias say:
Man who walks sideways through door at airport is going to Bangkok!!

kegobeer

Quote from: thegent on September 17, 2005, 09:58:32 PM
i get the same error

i think it is an assumtion on the part of coppermine that everyone will use the wwwroot folder.
neither you nor i use that folder, we have the same problem
i bet if you install using a site built on wwwroot, like i did, you will have no problem, just like me.

What?  That makes no sense and has absolutely nothing to do with this issue.  This has everything to do with a lack of experience when running webservers on a home machine, especially under IIS.  Microsoft has a "fix" posted for PATH_TRANSLATED not showing up.  Try googling for PATH_TRANSLATED IIS.

I have Apache 2.0.54, PHP 5.0.4, and MySQL 4.1.13 running on my W2K Pro test box.  Straight out of the box, with no odd tweaks, Coppermine 1.3.4 and the latest dev work without incident.  If I have error notices turned on in php.ini, I see the undefined index: PATH_TRANSLATED, but it has not stopped things from working.  If you choose to use IIS, I suggest reading up on how to properly administer it.
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

Suffering

All I had to do to get things working is to roll back PHP to version 4.40 from 5.XX.  I have not resolved the PHP PATH_TRANSLATED errors, but as you say it doesn't keep things from working...