config.inc.php missing? config.inc.php missing?
 

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 missing?

Started by Yasmin86, February 04, 2013, 04:42:40 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Yasmin86

We're upgrading from 1.4 to the newest version, but something went wrong. All new files were uploaded sans 'albums' and 'anycontent.php.' However, the site now says "Coppermine Photo Gallery seems not to be installed correctly, or you are running coppermine for the first time. You'll be redirected to the installer. If your browser doesn't support redirect, click here." I did some googling and this topic seems to be exactly the same case: http://forum.coppermine-gallery.net/index.php?topic=74131.0 So it's fair to assume the config.inc.php file is missing (although why is it that it gets deleted when it wasn't replaced?)

However in our case, there is unfortunately no backup (I know, I know - stupid). Is there any way to get a new config.inc.php file?

phill104

Using your ftp app check include/config.inc.php and see if the file exists.

If not you will need to optn the file include/config.inc.php.sample in a text editor and fill out all the relevant details then save it as include/config.inc.php
It is a mistake to think you can solve any major problems just with potatoes.

Yasmin86

I did that, thank you! However, now I get this error:

Fatal error: While executing query 'SELECT name, value FROM cpg15x_config' in include/init.inc.php on line 179

mySQL error: Table 'jasoncoo_pic.cpg15x_config' doesn't exist

Yasmin86

By the way, I didn't remember the password for my MySQL user (to fill in the config.inc.php.sample file) so I had to delete it, make a new one and a new passord. The database is still intact though. I don't know if that matters.

Αndré

Check if the table prefix is correct. As you upgraded from cpg1.4.x it's most probably not cpg15x_, but cpg14x_. Just have a look at your table names in your MySQL database.


Αndré

In include/config.inc.php, set $CONFIG['TABLE_PREFIX'] to 'cpg14x_'.

Yasmin86

Ah yes, it said 15 before, and I changed it. But now my gallery just says "fatal error:" and that's it.  :-\

( http://jasoncookonline.net/photos/ )

Αndré


Yasmin86

It works! OH MY GOD you have no idea how happy this has made me, you made my day! Thank you so much for your help!!!!  ;D