[Solved]: Template error after upgrading to 1.4.21 [Solved]: Template error after upgrading to 1.4.21
 

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

[Solved]: Template error after upgrading to 1.4.21

Started by ltvvw, April 19, 2009, 05:15:05 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ltvvw

I've just upgraded our gallery from 1.3.2 to 1.4.21, all the thumbnails are visible when viewing the albums, but when you click to view full size you get the following message

Template error
Failed to find block 'report_file_button'(#(<!-- BEGIN report_file_button -->)(.*?)(<!-- END report_file_button -->)#s) in :

        <tr>
                <td align="center" valign="middle" class="navmenu" width="48">
                        <a href="{THUMB_TGT}" class="navmenu_pic" title="{THUMB_TITLE}"><img src="images/folder.gif" width="16" height="16" align="absmiddle" border="0" alt="{THUMB_TITLE}" /></a>
                </td>
                <td align="center" valign="middle" class="navmenu" width="48">
                        <a href="javascript:;" onClick="blocking('picinfo','yes', 'block'); return false;" title="{PIC_INFO_TITLE}"><img src="images/info.gif" width="16" height="16" border="0" align="absmiddle" alt="{PIC_INFO_TITLE}" /></a>
                </td>
                <td align="center" valign="middle" class="navmenu" width="48">
                        <a href="{SLIDESHOW_TGT}" title="{SLIDESHOW_TITLE}"><img src="images/slideshow.gif" width="16" height="16" border="0" align="absmiddle" alt="{SLIDESHOW_TITLE}" /></a>
                </td>
                <td align="center" valign="middle" class="navmenu" witdh="100%">
                        {PIC_POS}
                </td>
                <td align="center" valign="middle" class="navmenu" width="48">
                        <a href="{ECARD_TGT}" title="{ECARD_TITLE}"><img src="images/ecard.gif" width="16" height="16" border="0" align="absmiddle" alt="{ECARD_TITLE}"></a>
                </td>
                <td align="center" valign="middle" class="navmenu" width="48">
                        <a href="{PREV_TGT}" class="navmenu_pic" title="{PREV_TITLE}"><img src="images/prev.gif" width="16" height="16" border="0" align="absmiddle" alt="{PREV_TITLE}" /></a>
                </td>
                <td align="center" valign="middle" class="navmenu" width="48">
                        <a href="{NEXT_TGT}" class="navmenu_pic" title="{NEXT_TITLE}"><img src="images/next.gif" width="16" height="16" border="0" align="absmiddle" alt="{NEXT_TITLE}" /></a>
                </td>
        </tr>


I've read the various threads discussing this but I'm unfamiliar with the software as I've only ever uploaded and arranged photos and am unable to rectify the issue.

Any help gratefully recieved

Nibbler

Switch your gallery to the classic theme and then update your custom theme following the theme upgrade info in the docs.

ltvvw


Nibbler

On the configuration page. Did you read the documentation?

ltvvw

Sorry I'm being really dense here, I can't find a config page

ltvvw

I've read the documentation, but it doesn't make much sense, as I said I've only uploaded and arranged the photos, never got involved in upgrading the software, it was all set up when i took over

ltvvw

Sorry, was bieng stupid, just reread the docs and found the issue, its now displaying as it should. Sorry for wasting your time

phill104

Glad you got it fixes and managed to get your head around the docs. There is a lot of information in there that we all sometimes miss but 90% (guestimate) of the questions asked here can be answered in the docs so please understand that when a dev says "read the docs" or "use the search function" it is simply because they have little time to re-write what is already there.

It would also be great if you tell us how you fixed it so others who may have similar problems as yourself can search the forum for an answer.
It is a mistake to think you can solve any major problems just with potatoes.

ltvvw

I went to the .config.php part of the gallery, this then linked to the new admin.php section, i thought in the past there was a directly link from the copperadmin area where you batch add photos. In there you can select which template you use for the themes, selected the classic as suggested then adapted it to suit our website ;)

Thanks for the help

Joachim Müller

In cpg1.3.x, the config file used to be named config.php. For cpg1.4.x, the file name changed to admin.php because some webhosts disable files that are named config.php for reasons that we're unaware off. That's why you need to edit your custom theme. The functionality of admin.php has remained the same as the old config.php: you can set the default theme there (among many other things). To make sure that those who are reluctant to read the docs we added a file config.php to cpg1.4.x that just performs a redirect to admin.php, that's all. Not sure what your report is suppossed to do: is it a question or are you trying to say the same I just posted?