coppermine-gallery.com/forum

Dev Board => cpg1.4 Testing/Bugs => cpg1.4 Testing/Bugs: FIXED/CLOSED => Topic started by: Tranz on March 01, 2005, 06:00:06 AM

Title: template error on phpinfo when not admin
Post by: Tranz on March 01, 2005, 06:00:06 AM
When I tried to access phpinfo while not logged in as admin, it showed this:
QuoteTemplate error
Failed to find block 'admin_approval'(#(<!-- BEGIN admin_approval -->)(.*?)(<!-- END admin_approval -->)#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>
<!-- BEGIN log_ecards -->
                                <td class="admin_menu"><a href="db_ecard.php" title="{DB_ECARD_TITLE}">{DB_ECARD_LNK}</a></td>
<!-- END log_ecards -->
                                <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>
Other admin-only pages showed correct error message:
QuoteYou don't have permission to access this page.
Title: Re: template error on phpinfo when not admin
Post by: omniscientdeveloper on March 01, 2005, 08:23:15 AM
I added a static in pageheader to keep it from running twice. This should fix our template errors...hopefully.

[edit]

I'll commit it later today.

[/edit]
Title: Re: template error on phpinfo when not admin
Post by: Tranz on March 05, 2005, 10:16:17 AM
I got the template error after running an update a few minutes ago.
Title: Re: template error on phpinfo when not admin
Post by: omniscientdeveloper on March 05, 2005, 10:28:06 AM

I haven't commited the change yet.
Title: Re: template error on phpinfo when not admin
Post by: Joachim Müller on March 21, 2005, 09:07:32 AM
works for me, appears to be fixed - marking thread accordingly.

Joachim