ZenphotoCMS Forum
Undefined variable: conf (rewriteTokens.php) - 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: Undefined variable: conf (rewriteTokens.php) (/thread-11693.html)



Undefined variable: conf (rewriteTokens.php) - adamus - 2014-03-18

In ma admin panel Options -> plugins I have discovered such problem:
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE in /home/itprojns/public_html/abakgaleria/zp-core/zp-extensions/rewriteTokens.php(32) : eval()'d code on line 4
Notice: Undefined variable: conf in /home/itprojns/public_html/abakgaleria/zp-core/zp-extensions/rewriteTokens.php on line 33

And on register_user plugin I have:
Warning: Invalid argument supplied for foreach() in /home/itprojns/public_html/abakgaleria/zp-core/zp-extensions/rewriteTokens.php on line 60

Any attempts to solve this like refresh meta tags or restore script doesn't help and destroys gallery, link to my broken site:

http://galeria.abakpracownia.pl/
Wersja Zenphoto 1.4.5.9 [12ad1f92fa] (Official build)

Have you known how to fix this?




Undefined variable: conf (rewriteTokens.php) - acrylian - 2014-03-18

The rewrite tokens are for the modrewrite urls and are not related to meta tags or users.

Try a reupload from the 1.4.5.9 package for now. Generally the 1.4.5.x stream does not really get any fixes anymore as 1.4.6 is ahead.




Undefined variable: conf (rewriteTokens.php) - adamus - 2014-03-18

I have restored gallery from backup, and turned off plugin rewriteTokens. But the plugin is still broken. The problem is in line 60:

foreach ($this->conf_vars['special_pages'] as $page => $element) {

It seems that the problem lies somewhere in the system configuration, but I'm not sure.