forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 upgrading => Topic started by: Yasmin86 on February 04, 2013, 04:42:40 pm

Title: config.inc.php missing?
Post by: Yasmin86 on February 04, 2013, 04:42:40 pm
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?
Title: Re: config.inc.php missing?
Post by: phill104 on February 04, 2013, 05:18:07 pm
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
Title: Re: config.inc.php missing?
Post by: Yasmin86 on February 05, 2013, 05:00:12 pm
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
Title: Re: config.inc.php missing?
Post by: Yasmin86 on February 05, 2013, 05:26:55 pm
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.
Title: Re: config.inc.php missing?
Post by: Αndré on February 06, 2013, 09:53:15 am
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.
Title: Re: config.inc.php missing?
Post by: Yasmin86 on March 24, 2013, 03:21:53 pm
They all say cpg14x_ :(

http://img705.imageshack.us/img705/7200/49071288.jpg
Title: Re: config.inc.php missing?
Post by: Αndré on March 24, 2013, 07:06:52 pm
In include/config.inc.php, set $CONFIG['TABLE_PREFIX'] to 'cpg14x_'.
Title: Re: config.inc.php missing?
Post by: Yasmin86 on March 26, 2013, 10:53:14 am
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/ )
Title: Re: config.inc.php missing?
Post by: Αndré on March 26, 2013, 10:58:57 am
Please run http://jasoncookonline.net/photos/update.php as described in the upgrade docs.
Title: Re: config.inc.php missing?
Post by: Yasmin86 on March 26, 2013, 11:02:28 am
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