coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 (BBS) Integration / Bridging => Topic started by: helpme on April 26, 2005, 01:47:11 AM

Title: Fatal error
Post by: helpme on April 26, 2005, 01:47:11 AM
 this is wat im getting

Fatal error :
There was an error while processing a database query


<?php
if (!$_SERVER['HTTP_HOST']) {
  $cpg_host=$HTTP_SERVER_VARS['http://www.dj2big.com'];
} else {
  $cpg_host=$_SERVER['http://www.dj2big.com'];
}
$cpg_path='/pics';
header("Location: http://www.dj2big.com/pics".$cpg_host.$cpg_path);
exit;
?>

did i do this right?
Title: Re: Fatal error
Post by: donnoman on April 26, 2005, 04:57:23 AM
if that was supposed to be your index.php in your root, and you want users to automatically be forwarded to the gallery then the following should be sufficient.


<?php
header
("Location: http://www.dj2big.com/pics");
exit;
?>



But it looks like you've got issues with coppermine.

you should be able to go to : http://www.dj2big.com/pics/index.php and get the main category page. http://www.dj2big.com/pics/update.php works so it appears you have a decent config.inc.php setup.

I would suspect not all of your files got uploaded properly, or if you've made some mods they aren't applied properly.
Title: Re: Fatal error
Post by: Nibbler on April 26, 2005, 02:07:27 PM
Only change 1 line:

$cpg_path='/pics';

Put everything else back as it was.

Also - that is not the cause of the error message. That file handles redirection only.
Title: Re: Fatal error
Post by: helpme on April 26, 2005, 07:24:13 PM
I have tried everything i dont know what i did wrong in the intergration. I tested coppermind to the fullest when i first installed it everything worked perfect even after i did the upgrade. since i have tried to intergrate it now i cant even look at it. I wish these instructions would contain examples becuase i have a feeling it is something i typed in that little piece thats causing the problems.