forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: garnetrose on December 08, 2005, 04:43:45 pm

Title: fatal error
Post by: garnetrose on December 08, 2005, 04:43:45 pm
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.
Title: Re: fatal error
Post by: Tranz on December 08, 2005, 05:00:50 pm
Did you replace all files when upgrading, assuming that this was an upgrade and not new installation?
Title: Re: fatal error
Post by: garnetrose on December 08, 2005, 05:03:47 pm
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
 
Title: Re: fatal error
Post by: garnetrose on December 08, 2005, 05:59:17 pm
if I did a total re-install, is there a way to retrieve the 130 images I have already uploaded with the first version?
Title: Re: fatal error
Post by: Joachim Müller on December 09, 2005, 12:17:55 am
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...
Title: Re: fatal error
Post by: garnetrose on December 09, 2005, 01:44:01 am
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.  :)
Title: Re: fatal error
Post by: 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?
Title: Re: fatal error
Post by: Tranz 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.
Title: Re: fatal error
Post by: Joachim Müller on December 09, 2005, 09:54:05 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.
Title: Re: fatal error
Post by: Tranz on December 09, 2005, 12:52:06 pm
Oh, it seemed from Donnoman's question, he didn't expect it to be there. Maybe I misunderstood. :-[
Title: Re: fatal error
Post by: garnetrose on December 09, 2005, 01:13:50 pm
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?
Title: Re: fatal error
Post by: donnoman on December 10, 2005, 08:14:44 pm
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 :
Code: [Select]
http://kassian.keesterkovers.com/thumbnails.php?album=lastup&cat=0&theme=sample

If you go to his site with:
Code: [Select]
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".
Title: Re: fatal error
Post by: donnoman on December 10, 2005, 08:23:37 pm
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.