Failed to find block 'admin_approval' Failed to find block 'admin_approval'
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Failed to find block 'admin_approval'

Started by vxmedia, December 20, 2005, 12:08:59 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

vxmedia

Just upgraded to 1.4.2 when I click on the main category in Admin mode I get "There was an error while processing a database query"
When I'm in User mode and click on it, it breaks out altogether into code as below:
I've also bridged it with SMF 1.1, don't know if that is anything to do with it.

Template 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>
                                </tr><tr>
<!-- 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>

Joachim Müller

upgrade your custom theme then as suggested in the theme upgrade guide that comes with the coppermine package

vxmedia

I upgraded from 1.3.2 to 1.4.2 and didn't have a custom theme I am using the hardwired theme.

kegobeer

Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

lamama

I considered starting a new topic, but I guess my problem is quite similar to this, so I write here.

Like some others here I keep getting these strange error message (thumbnails.php)

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>

I've tried the fix Nibbler posted: http://forum.coppermine-gallery.net/index.php?topic=24295.0
I've checked the servers disk space (some suggested to do so) and found it should be enough space left.

I've checked my (somehow modified) theme files and theme.inc.php. Maybe I've just overlooked something, but it seems like I can reproduce that same bug with the cpg demo gallery here, so the mods to my installation should not be relavant:

http://coppermine-gallery.net/demo/cpg14x/thumbnails.php?album=190

the result is the error message I've posted above.

"album=190" is a bogus value - it doesn't exist.

I guess that is the problem: invalid parameters and the way cpg handles them.

In my case: I've replaced my old 1.3.x installation of Coppermine with a fresh install of 1.4.x just a few days ago. Serveral links from other websites to my gallery were valid before, but now pointing to the fresh install, where they are no longer valid. The results are not regular cpg error messages, but that strange "template errors".

Can anyone reproduce this?
Any idea how to solve it?

Nibbler

The demo has not been updated to include that fix. Attach your theme.inc.php and your custom theme to your next posting.

Joachim Müller

demo has been updated, fix works as expected.

lamama

ok, I guess I made a mistake during the theme migration. A funny thing is that the actual theme works with Opera (result: "album does not exist"-message when accessing an invalid album number) while the fatal error appears in Firefox.

But before I'm doing any more alarm I will try to get my theme straight  :)