ZenphotoCMS Forum
Sitemap error - undefined startsitemapcache() - 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: Sitemap error - undefined startsitemapcache() (/thread-7468.html)



Sitemap error - undefined startsitemapcache() - makar - 12-08-2010

Hello,

When pointing my browser to sitemap.php I get the following error:

Fatal error: Call to undefined function startsitemapcache() in /home/testbed/public_html/sitemap.php on line 11

Here's debug info:

http://pastebin.com/aVTRk31U

What could be wrong?




Sitemap error - undefined startsitemapcache() - acrylian - 12-08-2010

The only I could think of is that the plugin is not enabled. But actually then you should not get that far then and get a "page not found".




Sitemap error - undefined startsitemapcache() - makar - 12-08-2010

Hmm, I tried disabling it and then enabling it again but still get the same error.

When plugin is disabled and when executing sitemap.php, I get different error:

Zenphoto Error: the requested object was not found.




Sitemap error - undefined startsitemapcache() - acrylian - 12-08-2010

All right, I was able to reproduce that... Sorry, I don't know why but somehow the call to the plugin functions itself got lost... For a quick workaround add this in line 5 of the root sitemap.php file (right before the if):
require_once(ZENFOLDER . "/zp-extensions/sitemap-extended.php");




Sitemap error - undefined startsitemapcache() - makar - 12-08-2010

Works fine now. Thanks!