forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: creativename on January 15, 2010, 01:24:57 am

Title: After changing theme, getting "Failed to find block 'documentation'" error
Post by: creativename on January 15, 2010, 01:24:57 am
I have 1.4.21, and I was just checking the different themes for the first time (I'd never changed from classic before). But after changing to (I believe) Styleguide, if I hit Continue I started getting a page that showed the error message:
Code: [Select]
Template error
Failed to find block 'documentation'(#(<!-- BEGIN documentation -->)(.*?)(<!-- END documentation -->)#s) in :

                <div align="left">
                <table cellpadding="0" cellspacing="1">
                        <tr>
                                <td class="admin_menu"><a href="editpics.php?mode=upload_approval" title="">{UPL_APP_LNK}</a></td>
                                <td class="admin_menu"><a href="config.php" title="">{CONFIG_LNK}</a></td>
                                <td class="admin_menu"><a href="albmgr.php{CATL}" title="">{ALBUMS_LNK}</a></td>
                                <td class="admin_menu"><a href="catmgr.php" title="">{CATEGORIES_LNK}</a></td>
                                <td class="admin_menu"><a href="usermgr.php" title="">{USERS_LNK}</a></td>
                                <td class="admin_menu"><a href="groupmgr.php" title="">{GROUPS_LNK}</a></td>
                                <td class="admin_menu"><a href="banning.php" title="">{BAN_LNK}</a></td>
                                <td class="admin_menu"><a href="db_ecard.php" title="">{DB_ECARD_LNK}</a></td>
                                <td class="admin_menu"><a href="reviewcom.php" title="">{COMMENTS_LNK}</a></td>
                                <td class="admin_menu"><a href="searchnew.php" title="">{SEARCHNEW_LNK}</a></td>
                                <td class="admin_menu"><a href="util.php" title="">{UTIL_LNK}</a></td>
                                <td class="admin_menu"><a href="profile.php?op=edit_profile" title="">{MY_PROF_LNK}</a></td>
                        </tr>
                </table>
                </div>
I found this earlier thread (http://forum.coppermine-gallery.net/index.php/topic,45463.0.html), but my themes.inc.php already has the braces mentioned. I tried hitting the back button and changing the theme back to Classic, but I'd just get the same error message. Likewise when trying to Restore factory defaults. Viewing images would give the above error, and the homepage and album pages would look like this:
http://img35.imageshack.us/img35/8564/18894609.gif

I ended up changing the cpg_congif 'theme' option to 'classic', and that seems to have worked - I don't know if there are any other steps involved in changing the theme that I would also need to do to prevent further errors.

What is this issue? And is there any way to change the theme while this issue is occurring other than via MySQL?
Title: Re: After changing theme, getting "Failed to find block 'documentation'" error
Post by: Jeff Bailey on January 15, 2010, 01:52:21 am
Please read the Board Rules (http://forum.coppermine-gallery.net/index.php/topic,55415.0.html).
Please Upgrade (http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#upgrade).
Please post a link (http://forum.coppermine-gallery.net/index.php/topic,55415.msg270616.html#msg270616).
please do not hotlink images, instead attach them (http://forum.coppermine-gallery.net/index.php/topic,55415.msg270617.html#msg270617).
 :o
Title: Re: After changing theme, getting "Failed to find block 'documentation'" error
Post by: Joachim Müller on January 15, 2010, 09:21:51 am
You broke nearly every board rule (http://forum.coppermine-gallery.net/index.php/topic,55415.0.html) that exists. If you want support in the future, read board rules up and do as suggested there.

Marking your double posting (http://forum.coppermine-gallery.net/index.php/topic,63233.0.html) accordingly.