ZenphotoCMS Forum
Fatal Error: getTags - 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: Fatal Error: getTags (/thread-12275.html)



Fatal Error: getTags - kocho - 2015-08-21

Hi all,

I'm getting an error at where my tags should be, but only on some (not many) albums and I'm not sure why.

The error is:

Fatal error: Call to a member function getTags() on a non-object in /public_html/gallery/zp-core/template-functions.php on line 3349

Line 3349 is:
return $_zp_current_album->getTags();

I'm not really sure why this is the case – especially considering it's only on a couple of albums. I tried removing all Tags from that particular album, no help. I also tried refreshing the metadata and that was no help either.

Any ideas?




Fatal Error: getTags - acrylian - 2015-08-21

Well, that means that $_zp_current_album is not an object when getTags() is used with it. Or short it is used outside standard album context. Why that might be is hard to say since we don't know your theme and what you possibly are doing.