coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Installation & Setup => Topic started by: aznmaverick on April 05, 2005, 12:03:46 AM

Title: HELP...can't get past install.php...
Post by: aznmaverick on April 05, 2005, 12:03:46 AM
First of all i get these two error messages on top of the install form of install.php...
Notice: Undefined index: PATH_TRANSLATED in c:\Inetpub\wwwroot\image\install.php on line 21

Notice: Undefined offset: -1 in c:\Inetpub\wwwroot\image\install.php on line 22

Next, i have installed MySQL4.0 Imagemagick and am using it with IIS on win2k. I can get to the install.php form. i enter all my info, but when i submit the form...the next page is just a page with the coppemine logo on it with the two errors i noted above.

I have followed the directions of setting up mysql, i've set passwords and tested the mysql server, it seems to be okay. i am out of ideas, please help me

Thanks,
Title: Re: HELP...can't get past install.php...
Post by: Nibbler on April 05, 2005, 12:38:59 AM
Have you verified that mysql is working properly - have you installed any other script that uses mysql to test ?

and what version of php are you using ?
Title: Re: HELP...can't get past install.php...
Post by: aznmaverick on April 05, 2005, 10:17:15 AM
I have run the tests for mysql...but nothing more than that. I have php5.0.4 installed
Title: Re: HELP...can't get past install.php...
Post by: kegobeer on April 05, 2005, 02:43:05 PM
Have you searched the forums yet?  There are many posts that talk about a blank install page, like this one. (http://forum.coppermine-gallery.net/index.php?topic=13517.msg62228;topicseen#msg62228)
Title: Re: HELP...can't get past install.php...
Post by: nommiiss on April 15, 2005, 04:37:59 PM
I have this same problem..... Have you resolved your problem?

Please let me know

Simon
Title: Re: HELP...can't get past install.php...
Post by: kegobeer on April 15, 2005, 09:59:38 PM
Simon, have you searched the forums or tried the link I provided?  Have you tried those possible solutions?
Title: Re: HELP...can't get past install.php...
Post by: nommiiss on April 25, 2005, 11:09:29 AM
Yeah i fixed this problem

I took out the top lines of code that check for errors.

I think it might have somthing todo with IIS running PHP.

I will post the fix tonight when i get home to help  people that are having the same problem. :o

Simon Brownridge.
Title: Re: HELP...can't get past install.php...
Post by: nommiiss on April 25, 2005, 08:45:57 PM
I remarked thease lines of code in index.ini

// Check if standalone is installed in a portal like phpNuke (added by DJMaze)
$DIR=preg_split("/[\/\\\]/",dirname($_SERVER['PATH_TRANSLATED']));
if ($DIR[count($DIR)-2] == "modules") {
    echo "<html><body><h1>ERROR</h1>You installed the standalone Coppermine into your Nuke portal.<br>".
         "Please download and install a CPG Port: <a href=\"http://sourceforge.net/project/showfiles.php?group_id=89658\">CPG for PostNuke OR CPG for PHPnuke</a></body></html>";
    die();
} // end check


Hope this helps everyone.

Regards Simon
Title: Re: HELP...can't get past install.php...
Post by: kotun on June 17, 2005, 07:49:45 AM
Hi,

I am testing on localhost (including to develop new static pages before transfering to a shared server) - using windows XP Pro, IIS 5.1, PHP 5.0.4, MySQL 4.1.12 and Coppermine 1.3.3

I have tried and tested the following as suggested on the forum:
1) register_long_arrays = On
2) switching to a lower PHP4.x
3) change all occurance of HTTP_POST_VARS to _POST
4) use http://computername/coppermine/install.php instead of http://localhost/coppermine/install.php
5) setting cookies

My problem is that I keep getting the following line that is causing me not to install Coppermine.

Notice: Undefined index: PATH_TRANSLATED in C:\inetpub\wwwroot\New_Folder\mytshungtsin\install.php on line 21

Notice: Undefined offset: -1 in C:\inetpub\wwwroot\New_Folder\mytshungtsin\install.php on line 22

and that causes me to not be able to see anything but the lines above and a coppermine logo that have texts saving that my installation wasn't performed or signing in the first time and then redirect me to install.php.

For your information, I am using movabletype for testing also in my localhost and it works fine...and that I am dialing up to the Internet and I have not have the chance to download phpmyadmin to give you guys some more clues.

I do hope someone out there can help as I am really not sure what to do next.

Title: Re: HELP...can't get past install.php...
Post by: Nibbler on June 17, 2005, 11:01:00 AM
You can safely cut that code out of install.php

// Check if standalone is installed in a portal like phpNuke (added by DJMaze)
$DIR=preg_split("/[\/\\\]/",dirname($_SERVER['PATH_TRANSLATED']));
if ($DIR[count($DIR)-2] == "modules") {
    echo "<html><body><h1>ERROR</h1>You installed the standalone Coppermine into your Nuke portal.<br>".
         "Please download and install a CPG Port: <a href=\"http://sourceforge.net/project/showfiles.php?group_id=89658\">CPG for PostNuke OR CPG for PHPnuke</a></body></html>";
    die();
} // end check


or disable/reduce error reporting in your php.ini
Title: Re: HELP...can't get past install.php...
Post by: kegobeer on June 17, 2005, 11:52:15 PM
In your php.ini you probably have

display_errors = On

Turn it off.