coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: forward on June 04, 2006, 06:54:28 PM

Title: Failed to find block 'file_line'
Post by: forward on June 04, 2006, 06:54:28 PM
Template error
Hi,
After few months of working the Gallery shows this and nobody can get in. What is wrong? (address www.udmparty.ru/images)

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

        <tr>
                <td class="tableb" align="center">
                        <font size="3"><b>{MESSAGE}</b></font>


                        <br /><br />
                </td>
        </tr>

Title: Re: Failed to find block 'file_line'
Post by: Gizmo on June 04, 2006, 07:28:50 PM
Check to see if this code is in your theme.php file and if not, put it in there. This was copied from the sample theme.php. If you edited this piece of code, you need to make sure that the lines "<!-- BEGIN file_line -->" and "<!-- END file_line -->" are there.

// HTML template used by the cpg_die function
$template_cpg_die = <<<EOT

        <tr>
                <td class="tableb" align="center">
                        <font size="3"><b>{MESSAGE}</b></font>
<!-- BEGIN file_line -->
                        <br />
                        <br />
                        {FILE_TXT}{FILE} - {LINE_TXT}{LINE}
<!-- END file_line -->
<!-- BEGIN output_buffer -->
                        <br />
                        <br />
                        <div align="left">
                                {OUTPUT_BUFFER}
                        </div>
<!-- END output_buffer -->
                        <br /><br />
                </td>
        </tr>


EOT;
Title: Re: Failed to find block 'file_line'
Post by: forward on June 04, 2006, 10:29:27 PM
Nope, it doesn't work.
I've put this code into theme.php file in themes/classic/. Right?

I didn't change no codes.
Title: Re: Failed to find block 'file_line'
Post by: Nibbler on June 04, 2006, 10:38:19 PM
Update your gallery.
Title: Re: Failed to find block 'file_line'
Post by: forward on June 04, 2006, 10:40:54 PM
I did

I launched www.udmparty.ru/images/update.php. Doesn't work yet.

Title: Re: Failed to find block 'file_line'
Post by: Nibbler on June 04, 2006, 11:38:44 PM
Verify include/config.inc.php contains correct db data and try http://coppermine-gallery.net/tutorial/debug_mode.php
Title: Re: Failed to find block 'file_line'
Post by: Gizmo on June 05, 2006, 12:52:34 AM
I've been browsing the other photo gallery program sites and they don't have nearly the Dev respond as CPG. You guys are TOP NOTCH!

Cheers!
Title: Re: Failed to find block 'file_line'
Post by: forward on June 05, 2006, 09:17:09 PM
Quote from: Nibbler on June 04, 2006, 11:38:44 PM
Verify include/config.inc.php contains correct db data and try http://coppermine-gallery.net/tutorial/debug_mode.php

Sorry, I can't do it. It all goes wrong with the instructions. If it says the menu should pop up - it doesn't. Is there any other way of fixing the Gallery?
Title: Re: Failed to find block 'file_line'
Post by: Joachim Müller on June 06, 2006, 07:24:44 AM
Just running update.php won't solve issues related to theming. Use a theme that was built for your coppermine version. You appear to be running cpg1.4.3 - do as suggested above and upgrade to the most recent stable, and refer to the theme upgrade guide (http://coppermine-gallery.net/demo/cpg14x/docs/theme/) to find out how to make your cpg1.3.x theme work with cpg1.4.x