Advanced search  

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

Pages: [1]   Go Down

Author Topic: [Solved]: Template error after upgrading to 1.4.21  (Read 6771 times)

0 Members and 1 Guest are viewing this topic.

ltvvw

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
[Solved]: Template error after upgrading to 1.4.21
« on: April 19, 2009, 05:15:05 pm »

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
« Last Edit: April 19, 2009, 05:38:12 pm by Joachim Müller »
Logged

Nibbler

  • Guest
Re: Template error after upgrading to 1.4.21
« Reply #1 on: April 19, 2009, 05:17:20 pm »

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

ltvvw

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Template error after upgrading to 1.4.21
« Reply #2 on: April 19, 2009, 05:18:40 pm »

Where do I switch themes?
Logged

Nibbler

  • Guest
Re: Template error after upgrading to 1.4.21
« Reply #3 on: April 19, 2009, 05:19:16 pm »

On the configuration page. Did you read the documentation?
Logged

ltvvw

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Template error after upgrading to 1.4.21
« Reply #4 on: April 19, 2009, 05:23:31 pm »

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

ltvvw

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Template error after upgrading to 1.4.21
« Reply #5 on: April 19, 2009, 05:24:36 pm »

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
Logged

ltvvw

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Template error after upgrading to 1.4.21
« Reply #6 on: April 19, 2009, 05:31:07 pm »

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

phill104

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4885
    • Windsurf.me
Re: [Solved]: Template error after upgrading to 1.4.21
« Reply #7 on: April 19, 2009, 06:42:49 pm »

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.
Logged
It is a mistake to think you can solve any major problems just with potatoes.

ltvvw

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: [Solved]: Template error after upgrading to 1.4.21
« Reply #8 on: April 19, 2009, 07:00:58 pm »

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
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: [Solved]: Template error after upgrading to 1.4.21
« Reply #9 on: April 20, 2009, 07:42:04 am »

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?
Logged
Pages: [1]   Go Up
 

Page created in 0.023 seconds with 19 queries.