Zenphoto version 1.3.1.2 6110
I'm using [i]printLatestNews()[/i] on gallery.php in a modified Zenpage theme. No problems so far.
But with the latest nightly I suddenly get this warning:
Warning: get_class() expects parameter 1 to be object, null given in ...\zp-core\zp-extensions\zenpage\zenpage-template-functions.php on line 91.
Sorry, maybe I have confused you. Shortcut answers....
The error is coming from getNewsType(). Guess I had presumed you had looked at line 91. Anyway that function is not called from printLatestNews() so I presumed that you thought printLatestNews() might be supposed to store something into$_zp_current_zenpage_news. It does not and I do not know what it would set it to anyway.
That's what I thought too :-)
Trying to figure this out I used the standard Zenpage theme and put printLatestNews() all the way at the bottom of [i]gallery.php[/i].
But I think I narrowed it down a bit.
getNewsType()(and subsequently get_class()) is called from getNewsReadMore().
I guess it has something to do with the recent changeset [6096].