![]() |
|
Wierd error - 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: Wierd error (/thread-10736.html) |
Wierd error - michalrusina - 14-01-2013 im trying to update my old theme and came acros a really weir error. this is the output i get: Fatal error: Call to a member function getNumImages() on a non-object in /Users/michalrusina/Sites/zenphoto/zp-core/template-functions.php on line 1905 the weird thing is that even when i remove all the contents of header.php, this error and the html stays there. the theme (in development) can be downloaded at storage.michalrusina.sk/m9.zip. thanks for help. Wierd error - acrylian - 14-01-2013 Please look into the debug log if there is a trace. Your old theme probably does a wrong or outdated call somewhere. Why do you have a new account actually, shouldn't you already have one here on the forum? Wierd error - michalrusina - 14-01-2013 please take a look at the theme, there are no new calls, just those from the original m9 wich works... i just updated html (now its html5) and moved some chunks of code. i cannot understand why the output stops at title tag, even tough im not using the function that threw error there. i could not remember my old login so i created a new one (its been a while). Wierd error - acrylian - 14-01-2013 Did you look at the Zenphoto debug log and if is there a trace of the error? It must not be the function in the error, it can be a call elsewhere. Also, do you get the error with official themes as well? If so you probably should try a reupload of the zp-core files. Wierd error - michalrusina - 14-01-2013 as i mentioned earlier, the old m9 theme works without problems, theres nothing in debug log, just a bunch of "WARNING: Cannot modify header information - headers already sent by (output started at /Users/michalrusina/Sites/zenphoto/themes/M9/functions.php:81)", but they are quite older problems that i already solved... |