Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: config.inc.php missing?  (Read 13629 times)

0 Members and 1 Guest are viewing this topic.

Yasmin86

  • Coppermine novice
  • *
  • Country: no
  • Offline Offline
  • Gender: Female
  • Posts: 35
config.inc.php missing?
« 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?
Logged

phill104

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4885
    • Windsurf.me
Re: config.inc.php missing?
« Reply #1 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
Logged
It is a mistake to think you can solve any major problems just with potatoes.

Yasmin86

  • Coppermine novice
  • *
  • Country: no
  • Offline Offline
  • Gender: Female
  • Posts: 35
Re: config.inc.php missing?
« Reply #2 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
Logged

Yasmin86

  • Coppermine novice
  • *
  • Country: no
  • Offline Offline
  • Gender: Female
  • Posts: 35
Re: config.inc.php missing?
« Reply #3 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.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: config.inc.php missing?
« Reply #4 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.
Logged

Yasmin86

  • Coppermine novice
  • *
  • Country: no
  • Offline Offline
  • Gender: Female
  • Posts: 35
Re: config.inc.php missing?
« Reply #5 on: March 24, 2013, 03:21:53 pm »

Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: config.inc.php missing?
« Reply #6 on: March 24, 2013, 07:06:52 pm »

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

Yasmin86

  • Coppermine novice
  • *
  • Country: no
  • Offline Offline
  • Gender: Female
  • Posts: 35
Re: config.inc.php missing?
« Reply #7 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/ )
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: config.inc.php missing?
« Reply #8 on: March 26, 2013, 10:58:57 am »

Please run http://jasoncookonline.net/photos/update.php as described in the upgrade docs.
Logged

Yasmin86

  • Coppermine novice
  • *
  • Country: no
  • Offline Offline
  • Gender: Female
  • Posts: 35
Re: config.inc.php missing?
« Reply #9 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
Logged
Pages: [1]   Go Up
 

Page created in 0.03 seconds with 20 queries.