ZenphotoCMS Forum
_GALLERY_INDEX_ errors in Debug log - 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: _GALLERY_INDEX_ errors in Debug log (/thread-13091.html)



_GALLERY_INDEX_ errors in Debug log - mowgli597 - 27-06-2018

Since upgrading to Zenphoto 1.5 my debug log is being flooded with the following message:

{3862365:Wed, 27 Jun 2018 04:53:27 GMT}
NOTICE: Use of undefined constant _GALLERYINDEX - assumed '_GALLERYINDEX' in /home/bpskdk/public_html/zenphoto/zp-core/rewrite.php(100) : eval()'d code on line 1
eval called from rewriteHandler (rewrite.php [100])
from include (index.php [38])
from index.php [31]

My setup is as follows:

Zenphoto version 1.5 (Official build)   
Current locale setting: en_US.UTF8  
PHP version: 5.6.36
MySQLi version: 5.5.5



_GALLERY_INDEX_ errors in Debug log - fretzl - 27-06-2018

Look in your /zp-data/zenphoto.cfg.php file.
You will see something like this around line 72:

$conf['special_pages'] = array(
'page'=> array('define'=>'_PAGE_', 'rewrite'=>'page'),
'search'=> array('define'=>'_SEARCH_', 'rewrite'=>'_PAGE_/search'),
'archive'=> array('define'=>'_ARCHIVE_', 'rewrite'=>'_PAGE_/archive'),
'tags'=> array('define'=>'_TAGS_', 'rewrite'=>'_SEARCH_/tags')
);

You have to add one line so it looks like this:

$conf['special_pages'] = array(
'page'=> array('define'=>'_PAGE_', 'rewrite'=>'page'),
'search'=> array('define'=>'_SEARCH_', 'rewrite'=>'_PAGE_/search'),
'archive'=> array('define'=>'_ARCHIVE_', 'rewrite'=>'_PAGE_/archive'),
'tags'=> array('define'=>'_TAGS_', 'rewrite'=>'_SEARCH_/tags'),
'gallery'=> array('define'=>'_GALLERY_INDEX_', 'rewrite'=>'_PAGE_/gallery')
);



_GALLERY_INDEX_ errors in Debug log - vincent3569 - 27-06-2018

in 1.5, this line already exists !
see https://github.com/zenphoto/zenphoto/blob/master/zp-core/zenphoto_cfg.txt




_GALLERY_INDEX_ errors in Debug log - fretzl - 27-06-2018

Yes, but when you just upgrade the line is not added.
At least, not on my local installs.




_GALLERY_INDEX_ errors in Debug log - acrylian - 27-06-2018

That's sounds like a bug then sadly…




_GALLERY_INDEX_ errors in Debug log - mowgli597 - 10-07-2018

My sincere apologies for not replying sooner.

The update to the /zp-data/zenphoto.cfg.php file fixed the problem for me.

Many thanks.




_GALLERY_INDEX_ errors in Debug log - acrylian - 10-07-2018

Thanks for the follow up. We'll also see to fix this for the next bugfix update.