template errors - used to work fine...? template errors - used to work fine...?
 

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

template errors - used to work fine...?

Started by Amnarii, May 11, 2008, 02:43:22 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Amnarii

Okay, I am using a modified blackbirch template, only visually modified, though. It used to work perfectly. Recently I started getting template errors whenever I tried to view a full sized image in any album, so I reinstalled the newest version of coppermine (I was waaaay out of date) and added this template back in, thinking maybe, just maybe, it was a coppermine thing, since none of the template files had changed since it used to work fine.

But I get the same error on the latest version of coppermine, meaning it has to be a template issue. Here's the error message:
Quote
Template error
Failed to find block 'ecard_button'(#(<!-- BEGIN ecard_button -->)(.*?)(<!-- END ecard_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>

Amnarii

hmmm, no way to edit my last post? Sorry, if there is one - but I couldn't find it so I am adding this reply.

Just wanted to add in the info that I started getting this same error without having upgraded versions of coppermine at all - so I don't believe the sticky (yes, I did read it) applies to me. I *did* upgrade after the error, but only to get the same error. So I don't believe this has anything to do with versions - and if it doesn't, I am puzzled on how it could, since the error just started happening one day when I still had the same version installed?

Amnarii

okay, fixed that error, and two more popped up afterwards, which I fixed both. My question remains, though - how did this error come to exist in the first place, when I did not upgrade the version of coppermine? One day it worked (actually, for 2 years it worked); the next it just didn't.

I now have it fixed, for those who may have similar problems, edit yout theme.php file, and simply add the missing lines where needed. For example, my first error above was fixed by adding the lines <!-- BEGIN ecard_button --> and <!-- END ecard_button --> right after the <tr> and before the <td align=... rows in the code listed. It took a little bit of effort to locate all the various spots to insert the code, but it worked.

But I am still left scratching my head as to why the error popped up in the first place! Oh well, I did end up upgrading a 2 year out of date installation to the latest version because of the error, and then I ended up fixing the error; so in the end it was a good thing. But I am still befuddled!