coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: hasemann on December 02, 2005, 09:15:17 PM

Title: Template error: "Failed to find block 'ecard_button ..."
Post by: hasemann on December 02, 2005, 09:15:17 PM
Hey! I just installed cpg1.4 succesfully and I replaced uploaded my old theme files because they are very customized. Everything works well except for when I try to click on a thumbnail in my gallery (viewing it in full size) I get this error:

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>

What can I do? I don't want to customize my whole template again :(
Title: Re: Template error: "Failed to find block 'ecard_button ..."
Post by: kegobeer on December 02, 2005, 10:54:36 PM
1.3.x themes do not work with 1.4.  You must upgrade your theme to 1.4.  Look in the docs for instructions.
Title: Re: Template error: "Failed to find block 'ecard_button ..."
Post by: Joachim Müller on December 03, 2005, 08:58:43 AM
http://coppermine-gallery.net/demo/cpg14x/docs/theme/index.html
Title: Re: Template error: "Failed to find block 'ecard_button ..."
Post by: Swede on December 15, 2005, 06:14:01 PM
I don't know if this is the exact same thing, but I keep getting this error when I click on a thumbnail in my gallery:

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>



And I think I alredy have 1.4. Can someone please help me!
Title: Re: Template error: "Failed to find block 'ecard_button ..."
Post by: Tranz on December 16, 2005, 04:30:06 AM
Yes, it's the same thing with the same solution posted above.
Title: Re: Template error: "Failed to find block 'ecard_button ..."
Post by: Swede on December 16, 2005, 03:06:47 PM
But I alredy have Coppermine 1.4.2
Do I need to get 1.4.1 anyway?

Another question (which doesn't really belong here, and it might sound stupid) but my Configuration button is gone!  ???  What can I do to get it back?
Title: Re: Template error: "Failed to find block 'ecard_button ..."
Post by: Tranz on December 16, 2005, 04:31:29 PM
You need to update your custom theme.
Title: Re: Template error: "Failed to find block 'ecard_button ..."
Post by: donnoman on December 17, 2005, 05:55:49 AM
Quote from: Swede on December 16, 2005, 03:06:47 PM
But I alredy have Coppermine 1.4.2
Do I need to get 1.4.1 anyway?

Another question (which doesn't really belong here, and it might sound stupid) but my Configuration button is gone!  ???  What can I do to get it back?

The config button being gone is usually attributed to an incomplete language file, switch to english and retest.  If you are willing to fix that language file, there are a couple of posts that deal with doing language interpretation and how to re-submit them to us.