Undefined Index???? Undefined Index????
 

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

Main Menu

Undefined Index????

Started by peakoverload, June 13, 2004, 11:01:02 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

peakoverload

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!

peakoverload

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.

Casper

I'm glad you got it fixed, but is there any reason you did not just upgrade as per the docs.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

peakoverload

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).