Advanced search  

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]

Pages: [1]   Go Down

Author Topic: fatal error  (Read 10939 times)

0 Members and 1 Guest are viewing this topic.

garnetrose

  • Coppermine newbie
  • Offline Offline
  • Gender: Female
  • Posts: 5
fatal error
« 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.
Logged
Simply,
~Kim

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: fatal error
« Reply #1 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?
Logged

garnetrose

  • Coppermine newbie
  • Offline Offline
  • Gender: Female
  • Posts: 5
Re: fatal error
« Reply #2 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
 
Logged
Simply,
~Kim

garnetrose

  • Coppermine newbie
  • Offline Offline
  • Gender: Female
  • Posts: 5
Re: fatal error
« Reply #3 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?
Logged
Simply,
~Kim

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: fatal error
« Reply #4 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...
Logged

garnetrose

  • Coppermine newbie
  • Offline Offline
  • Gender: Female
  • Posts: 5
Re: fatal error
« Reply #5 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.  :)
Logged
Simply,
~Kim

donnoman

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1615
  • From donovanbray.com
    • Donovan Bray
Re: fatal error
« Reply #6 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?
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: fatal error
« Reply #7 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.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: fatal error
« Reply #8 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.
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: fatal error
« Reply #9 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. :-[
Logged

garnetrose

  • Coppermine newbie
  • Offline Offline
  • Gender: Female
  • Posts: 5
Re: fatal error
« Reply #10 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?
Logged
Simply,
~Kim

donnoman

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1615
  • From donovanbray.com
    • Donovan Bray
Re: fatal error
« Reply #11 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".
Logged

donnoman

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1615
  • From donovanbray.com
    • Donovan Bray
Re: fatal error
« Reply #12 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.
Logged
Pages: [1]   Go Up
 

Page created in 0.021 seconds with 19 queries.