Upgrade from 1.1.1 to 1.2 error Upgrade from 1.1.1 to 1.2 error
 

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

Main Menu

Upgrade from 1.1.1 to 1.2 error

Started by benjam, December 06, 2003, 12:16:48 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

benjam

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.

Joachim Müller

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

benjam

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?

Joachim Müller

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

benjam

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.

Joachim Müller

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

benjam

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...

Joachim Müller

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

GauGau

benjam

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.