Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Fatal error  (Read 3131 times)

0 Members and 1 Guest are viewing this topic.

helpme

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Fatal error
« 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?
Logged

donnoman

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1615
  • From donovanbray.com
    • Donovan Bray
Re: Fatal error
« Reply #1 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.

Code: [Select]
<?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.
Logged

Nibbler

  • Guest
Re: Fatal error
« Reply #2 on: April 26, 2005, 02:07:27 pm »

Only change 1 line:

Code: [Select]
$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.
Logged

helpme

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: Fatal error
« Reply #3 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.
Logged
Pages: [1]   Go Up
 

Page created in 0.013 seconds with 15 queries.