forum.coppermine-gallery.net

Dev Board => cpg1.4 Testing/Bugs => cpg1.4 Testing/Bugs: FIXED/CLOSED => Topic started by: toujours on July 07, 2005, 07:39:12 pm

Title: Search link problem ?
Post by: toujours on July 07, 2005, 07:39:12 pm
When not logged in, if I click on the Search link on the Home Page, I get an error message (see below). I have set a few config options including (but not limited to) all my albums which are private, only visible to registered users. When I log in the search option works fine...

I had a look for similar posts, but found none. If you think this is a bug, let me know and I'll provide URL, config. info or whatever.


Code: [Select]
Template error
Failed to find block 'log_ecards'(#(<!-- BEGIN log_ecards -->)(.*?)(<!-- END log_ecards -->)#s) in :

                <div align="center">
                <table cellpadding="0" cellspacing="1">
                        <tr>

                                <td class="admin_menu"><a href="admin.php" title="{ADMIN_TITLE}">{ADMIN_LNK}</a></td>
                                <td class="admin_menu"><a href="catmgr.php" title="{CATEGORIES_TITLE}">{CATEGORIES_LNK}</a></td>
                                <td class="admin_menu"><a href="albmgr.php{CATL}" title="{ALBUMS_TITLE}">{ALBUMS_LNK}</a></td>
                                <td class="admin_menu"><a href="groupmgr.php" title="{GROUPS_TITLE}">{GROUPS_LNK}</a></td>
                                <td class="admin_menu"><a href="usermgr.php" title="{USERS_TITLE}">{USERS_LNK}</a></td>
                                <td class="admin_menu"><a href="banning.php" title="{BAN_TITLE}">{BAN_LNK}</a></td>
                                <td class="admin_menu"><a href="reviewcom.php" title="{COMMENTS_TITLE}">{COMMENTS_LNK}</a></td>

                                <td class="admin_menu"><a href="picmgr.php" title="{PICTURES_TITLE}">{PICTURES_LNK}</a></td>
                                <td class="admin_menu"><a href="searchnew.php" title="{SEARCHNEW_TITLE}">{SEARCHNEW_LNK}</a></td>
                                <td class="admin_menu"><a href="util.php" title="{UTIL_TITLE}">{UTIL_LNK}</a></td>
                                <td class="admin_menu"><a href="profile.php?op=edit_profile" title="{MY_PROF_TITLE}">{MY_PROF_LNK}</a></td>
<!-- BEGIN documentation -->
                                <td class="admin_menu"><a href="{DOCUMENTATION_HREF}" title="{DOCUMENTATION_TITLE}" target="cpg_documentation">{DOCUMENTATION_LNK}</a></td>
<!-- END documentation -->
                        </tr>
                </table>
                </div>

Title: Re: Search link problem ?
Post by: toujours on July 08, 2005, 01:08:00 pm
I don't want to sound impatient, especially as this is not a big deal, but :

Bump...

Has anyone reproduced this one ...?
Title: Re: Search link problem ?
Post by: ne4x4 on July 08, 2005, 01:14:31 pm
Tried it on my 1.4.1 installation which has some private galleries, all worked ok whether I was logged in or not.
Title: Re: Search link problem ?
Post by: toujours on July 08, 2005, 02:31:05 pm
Thanks for testing it. I will remove my config modifications and I will retest. Hopefully this will more clearly define the conditions necessary for reproducing the message.

I'll post back here today or Monday with more info.
Title: Re: Search link problem ?
Post by: toujours on July 08, 2005, 07:28:16 pm
OK. I did a VERY quick test and found a way to reproduce this problem.

This is how you get the error (see my first post).
1. Make all of your albums private, only accessible to registered users.
2. Logout and do a search using the link in the top right hand corner.

This is how you don't get it.
3. Now login as admin and make one album visible to all users, even when not logged in.
4. Logout and do a search.

Personally this is not a big deal for me, but the error does show up an unsightly looking screen of code...
Title: Re: Search link problem ?
Post by: ne4x4 on July 08, 2005, 07:56:31 pm
Yes If I do that I can reproduce the error. When I checked last time I did have some albums visible to guests so I did not get the error
Title: Re: Search link problem ?
Post by: toujours on July 08, 2005, 09:00:12 pm
That's cool.

Dev team !  We found a bug !     ;)
Title: Re: Search link problem ?
Post by: Nibbler on July 09, 2005, 01:53:29 pm
Commited fix to devel, include/keywords.inc.php v1.10