coppermine-gallery.com/forum

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: benjam on December 06, 2003, 12:16:48 AM

Title: Upgrade from 1.1.1 to 1.2 error
Post by: benjam 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.
Title: Upgrade from 1.1.1 to 1.2 error
Post by: Joachim Müller 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
Title: Upgrade from 1.1.1 to 1.2 error
Post by: benjam 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?
Title: Upgrade from 1.1.1 to 1.2 error
Post by: Joachim Müller 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
Title: Upgrade from 1.1.1 to 1.2 error
Post by: benjam 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.
Title: Upgrade from 1.1.1 to 1.2 error
Post by: Joachim Müller 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
Title: Upgrade from 1.1.1 to 1.2 error
Post by: benjam 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...
Title: Upgrade from 1.1.1 to 1.2 error
Post by: Joachim Müller on December 09, 2003, 06:19:56 PM
not so sure what you downloaded as well: cpg1.2.0final standalone (http://prdownloads.sourceforge.net/coppermine/cpg1.2.0final.zip?download) is the file to go for.

GauGau
Title: Upgrade from 1.1.1 to 1.2 error
Post by: benjam 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.