Failed to find block 'file_line' Failed to find block 'file_line'
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Failed to find block 'file_line'

Started by forward, June 04, 2006, 06:54:28 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

forward

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>


Gizmo

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;
Did you read the manual first???? Taking 2 minutes to backup your files can save you hours of wondering what you screwed up.
Billy Bullock - BullsEyePhotos Blog of Indecision

forward

Nope, it doesn't work.
I've put this code into theme.php file in themes/classic/. Right?

I didn't change no codes.

Nibbler


forward

#4
I did

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


Nibbler


Gizmo

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!
Did you read the manual first???? Taking 2 minutes to backup your files can save you hours of wondering what you screwed up.
Billy Bullock - BullsEyePhotos Blog of Indecision

forward

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?

Joachim Müller

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 to find out how to make your cpg1.3.x theme work with cpg1.4.x