coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 upgrading => Topic started by: scrich on November 25, 2005, 05:10:52 PM

Title: Config error
Post by: scrich on November 25, 2005, 05:10:52 PM
Hello.

After upgrading my CMG from 1.3.3 to 1.4.2, my config.php shows an error:

QuoteFatal error: Call to undefined function: db_query() in /usr/home/antoniorull.com/htdocs/fotos/config.php on line 227

What must I do to repair it?
Title: Re: Config error
Post by: Joachim Müller on November 25, 2005, 05:13:58 PM
you haven't upgraded properly, you need to overwrite all cpg1.3.x files with the ones from the 1.4 package, especially the files inside the include folder!
Title: Re: Config error
Post by: Nibbler on November 25, 2005, 05:17:54 PM
There is no config.php in 1.4. If you have a theme that still links to it then you need to follow the theme upgrade instructions.
Title: Re: Config error
Post by: DeadKenny on December 10, 2005, 02:15:33 PM
Quote from: GauGau on November 25, 2005, 05:13:58 PM
you haven't upgraded properly, you need to overwrite all cpg1.3.x files with the ones from the 1.4 package, especially the files inside the include folder!
I definitely followed the upgrade process to the letter and overwrote all the necessary files. Versioncheck even confirms this. Yet I have the same problem.

Quote from: Nibbler on November 25, 2005, 05:17:54 PM
There is no config.php in 1.4. If you have a theme that still links to it then you need to follow the theme upgrade instructions.
Sounds more like the answer. I'm using the Kubrick theme and I guess that's outdated. Problem is I can't access the config page to even switch to another theme in the meanwhile :(
Title: Re: Config error
Post by: Nibbler on December 10, 2005, 02:24:59 PM
Go to admin.php manually then.
Title: Re: Config error
Post by: DeadKenny on December 10, 2005, 02:32:59 PM
Cheers. I've reset the theme and I've also cleaned out the theme directory and just uploaded the official 1.4.2 ones.

Problem now is half the buttons are missing on the themes.

Ah, seems if I set the language to English (US) it works. Means I can't use UTF-8 or British :(

Edit: Think I've got it... set the default language to English and set the character encoding to UTF-8, rather than pick English UTF-8 in the language.
Title: Re: Config error
Post by: Nibbler on December 10, 2005, 02:58:36 PM
You have to enable language fallback in config to use British. Also clean out all the old uft8 language files from the lang directory.
Title: Re: Config error
Post by: Joachim Müller on March 07, 2006, 09:40:35 AM
Quote from: DeadKenny on December 10, 2005, 02:15:33 PM
I'm using the Kubrick theme and I guess that's outdated.
I have just released the Theme "Kubrick" for cpg1.4.x (http://forum.coppermine-gallery.net/index.php?topic=28715.0)