forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Installation & Setup => Topic started by: peakoverload on June 13, 2004, 11:01:02 pm

Title: Undefined Index????
Post by: peakoverload on June 13, 2004, 11:01:02 pm
Well this is really weird!

I've had CPG 1.2 running on my live server for ages without any problems at all.

I have now done a fresh install of CPG 1.3 on my test server and hacked a few files to give me more custom fields. All of this works 100% perfectly on my test server.

I then deleted the install of cpg on my Live server and dropped all the tabels in the database and uploaded all the new files for cpg 1.3 keeping the structure identical and then updated the database with all the new tables. I've chmod'd the relevant albums and Includes folders to 777 so the live server version looks identical to my test server in every way as far as I can see.

However, when I then try to logon to my live server install of cpg I get this error message:

Quote
Notice: Undefined index: debug_mode in /home/photossh/public_html/cpg/include/functions.inc.php on line 101
Fatal error :
There was an error while processing a database query

Ive tried changing:

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

In init.inc.php to

Quote
$PHP_SELF = $HTTP_SERVER_VARS['PHP_SELF'];


but no joy :(

Any ideas what is going on? I'm totally stumped!
Title: Re: Undefined Index????
Post by: peakoverload on June 13, 2004, 11:18:38 pm
Fixed

Although I have no idea what was wrong!!

Basically I didnt bother to delete the include folder from my 1.2 install just deleted all the files with the exception of the config.inc.php file and then uploaded all the files into the folder. However despite rewritting all the files several times including the config.inc.php file I was still getting this error. I then deleted the folder and reuploaded it and BINGO it worked.

Have no idea why this was the case as the folder was named exactly the same etc.
Title: Re: Undefined Index????
Post by: Casper on June 14, 2004, 12:50:18 am
I'm glad you got it fixed, but is there any reason you did not just upgrade as per the docs.
Title: Re: Undefined Index????
Post by: peakoverload on June 14, 2004, 12:24:24 pm
Yeah my install of 1.2 was a new install (revamping my site) anyway so I figured there was no point in doing an upgrade so just did a fresh install but thought I'd keep the config.inc.php file as my test server database setup is different to my live server (different database name, username, password).