fatal error fatal error
 

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

fatal error

Started by garnetrose, December 08, 2005, 04:43:45 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

garnetrose

Fatal error: Call to undefined function: cpg_display_help() in /home/keesterk/public_html/kassian/themes/sample/theme.php on line 798

I wasn't having any problems until I uploaded 130 photos and decided to try some different themes to see what they look like.  After trying the fruity, I received the above error, and now I cannot fix it.
Simply,
~Kim

Tranz

Did you replace all files when upgrading, assuming that this was an upgrade and not new installation?

garnetrose

was I supposed to upgrade first?

I'm trying to upgrade right now and this is the message:


Upgrading...

Initializing Parameters - Done.
Generating MySQL Backup - Done.
Generating Files Backup - Done.CREATE TABLE `cpg_favpics` ( `user_id` INT( 11 ) NOT NULL , `user_favpics` TEXT NOT NULL , PRIMARY KEY ( `user_id` ) ) COMMENT = 'Stores the server side favourites' - Table 'cpg_favpics' already exists

Simply,
~Kim

garnetrose

if I did a total re-install, is there a way to retrieve the 130 images I have already uploaded with the first version?
Simply,
~Kim

Joachim Müller

not if you haven't made a backup of your old install (both files and database dump). Why did you run a fresh install? Upgrading is easy...

garnetrose

I didn't install again, I ran the upgrade and received that error when I switched templates/theme.  I only suggested maybe I need to re-install as I cannot even access the 'home' page or the admin stuff at all.  I keep getting the same error as the previous post.

If it gets too complicated, however, I will re-install to a different directory and start over.  I was trying to avoid this as I have 130 images uploaded already, but can't log in to admin to access config to change the template back or do anything for that matter.

Any suggestions?  Just trying to do this as quickly as possible as I will be leaving for vacation soon.

Any help is appreciated greatly.  :)
Simply,
~Kim

donnoman

Why in the world is it attempting to load the sample theme?

Fatal error: Call to undefined function: cpg_display_help() in /home/keesterk/public_html/kassian/themes/sample/theme.php

can you post a link to your gallery?

Tranz

The sample theme is still in the CVS. I even deleted my local copy before doing a CVS update and the folder got added again.

Joachim Müller

Quote from: TranzNDance on December 09, 2005, 07:36:10 AM
The sample theme is still in the CVS. I even deleted my local copy before doing a CVS update and the folder got added again.
well, why shouldn't it be there? We only removed the styleguide theme afaik.

Tranz

Oh, it seemed from Donnoman's question, he didn't expect it to be there. Maybe I misunderstood. :-[

garnetrose

Quote from: donnoman on December 09, 2005, 05:41:20 AM
Why in the world is it attempting to load the sample theme?

Fatal error: Call to undefined function: cpg_display_help() in /home/keesterk/public_html/kassian/themes/sample/theme.php

can you post a link to your gallery?

http://kassian.keesterkovers.com/thumbnails.php?album=lastup&cat=0

is this want you wanted?
Simply,
~Kim

donnoman

No, I expect the sample theme to be on the disk, because it is there for reference.

But it shouldn't be selectable as a valid theme, and it should never be included by init.inc.php, the only way I can think of is to force it with something like :

http://kassian.keesterkovers.com/thumbnails.php?album=lastup&cat=0&theme=sample


If you go to his site with:

http://kassian.keesterkovers.com/thumbnails.php?album=lastup&cat=0&theme=classic


You'll notice that the site works. So I'm assuming he's managed to select the sample theme from the config options. (I'll go back and fix that so they can't).

What I suggest is use the second url, to get to the config, and select "classic" or some other theme than "sample".

donnoman

While config does allow users to select the sample theme, the theme works properly on my system. I can't reproduce the failure.

garnetrose  did you modify the sample theme at all?  Perhaps you need to upload it again.