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: Upgrade from 1.1.1 to 1.2 error  (Read 4252 times)

0 Members and 1 Guest are viewing this topic.

benjam

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 20
    • http://www.iohelix.com
Upgrade from 1.1.1 to 1.2 error
« on: December 06, 2003, 12:16:48 am »

After upgrading the program from 1.1.1 to 1.2, and after running the upgrade.php script (everything was OK) I get this error...

Fatal error: Call to undefined function: theme_display_album_list_cat() in /home/benjam/public_html/photos/index.php on line 493

not sure where that function its calling is, but it seems to be missing.

Any suggestions appreciated.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Upgrade from 1.1.1 to 1.2 error
« Reply #1 on: December 06, 2003, 12:23:05 pm »

You need to replace your themes from 1.1.x with the ones from the 1.2 package. If you're using custom themes, you'll have to modify your theme accordingly. Use a diff viewer like http://winmerge.sourceforge.net to find out what has changed in theming (look for the changes in theme.php, compare /themes/default/theme.php from cpg1.1 and 1.2) to find out what changes you'll have to apply to your 1.1 theme to make it work with 1.2

GauGau
Logged

benjam

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 20
    • http://www.iohelix.com
Upgrade from 1.1.1 to 1.2 error
« Reply #2 on: December 08, 2003, 06:24:26 pm »

I did replace all of the old themes.  I kept a copy of the old ones on my local disk so that i could diff the old ones and the new ones (I only made one change to the old ones), but I replaced the old ones on the server.

I'll try replacing them again though.

EDIT: Nope, I replaced all of the themes, as well as the index.php file again, and it still gives me the same error message.

I may not have been using one of the five included themes when I switched to the newer version, is there a place where I can tell the script to use one of the newer themes without going through the config script online?  As in, MyPHPAdmin or maybe in the config file?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Upgrade from 1.1.1 to 1.2 error
« Reply #3 on: December 08, 2003, 09:34:33 pm »

in phpMyAdmin, edit the cpg11d_config table (might have another prefix, depending on how you named it), look for "theme" and change the value to "default".

GauGau
Logged

benjam

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 20
    • http://www.iohelix.com
Upgrade from 1.1.1 to 1.2 error
« Reply #4 on: December 08, 2003, 11:42:27 pm »

I wish I could say it worked...   I really thought it would, but it didn't.  I tried every theme in the themes folder with the same results every time.  Not sure what the problem is now, I'm at a loss.  Thanks for your continued help though.

What file is that function in, maybe I can check to see that it's loading the file it needs correctly.

I checked the theme.php file and found a function called theme_display_album_list() and another one called theme_display_cat_list(), but I didn't see any theme_display_album_list_cat() function.  Is this function just named wrong in the index.php file?  I know it's highly doubtful, considering everbody else's pages seem to be working ok...  just thinking out loud.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Upgrade from 1.1.1 to 1.2 error
« Reply #5 on: December 09, 2003, 05:50:18 am »

function theme_display_album_list_cat() should be defined in themes/yourtheme/theme.php, look for
Quote
// Function to display first level Albums of a category
GauGau
Logged

benjam

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 20
    • http://www.iohelix.com
Upgrade from 1.1.1 to 1.2 error
« Reply #6 on: December 09, 2003, 05:15:30 pm »

ok...   thats really wierd, I checked all of the themes that came in the zip file, and NONE of them have that function...   am I in some wierd universe where I'm the only one who downloads a corrupt zip file?

No I'm really confused.  I downloaded the zip file, but it's the wrong zip file? hmmm....

Lemme try downloading it again...
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Upgrade from 1.1.1 to 1.2 error
« Reply #7 on: December 09, 2003, 06:19:56 pm »

not so sure what you downloaded as well: cpg1.2.0final standalone is the file to go for.

GauGau
Logged

benjam

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 20
    • http://www.iohelix.com
Upgrade from 1.1.1 to 1.2 error
« Reply #8 on: December 09, 2003, 08:09:46 pm »

well...   I downloaded the file again today, uploaded it, and it works!  so thanks for your help, and you may close this thread.


and just fyi- the zip file I had before was called cpg1.2.0_final.zip and the one I got today was cpg1.2.0final.zip, so they were different files.  Just in case anybody else is having the same problem.
Logged
Pages: [1]   Go Up
 

Page created in 0.015 seconds with 18 queries.