ZenphotoCMS Forum
Print_Album_Menu problem... - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: Print_Album_Menu problem... (/thread-7808.html)



Print_Album_Menu problem... - Blue Dragonfly - 2010-11-05

Hi all,

I just upgraded the code to the current SVN version, and broke my site :-) It was using the zpFocus theme, and dies near the end of my album menu. Long story short, the problem is reproducible with the default ZenPage theme, if I change the $showsubs parameter in the sidebar.php file from false to true, to show sub-albums. One of my albums, in which are a couple dynamic albums, fails and further output is cut off.

The error in the system log (using Win7) is:

php[42308]
PHP Fatal error: Class name must be a valid object or a string in C:\Dragonfly Images\Website\zp-core\class-search.php on line 1119

Let me know what else I can do or what other info is needed to help diagnose! thanks.




Print_Album_Menu problem... - Blue Dragonfly - 2010-11-05

Found it! class_search.php, line 1119 - Should be:

$album = new Album(new gallery(), $albumname);

instead of:

$album = new Album(new $gallery(), $albumname);



Print_Album_Menu problem... - acrylian - 2010-11-05

Please open a ticket. Note also that it is not recommend to use the svn version on a live site. We are doing some restructuring and are in the middle of reworking the sorting script which is partly broken currently.




Print_Album_Menu problem... - Blue Dragonfly - 2010-11-05

Thanks, Acrylian. Ticket created. I know it's not wise - but it sure is a motivating factor to figure it out quickly! I do make a backup regularly and can always revert the changes of necessary.




Print_Album_Menu problem... - Blue Dragonfly - 2010-11-05

Star Trek fans will note the ticket number: 1701 :-)