Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Failed to find block 'file_line'  (Read 5252 times)

0 Members and 1 Guest are viewing this topic.

forward

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 4
Failed to find block 'file_line'
« 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>

Logged

Gizmo

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1015
    • BullsEye Photos
Re: Failed to find block 'file_line'
« Reply #1 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.
Code: [Select]
// 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;
Logged
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

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 4
Re: Failed to find block 'file_line'
« Reply #2 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.
Logged

Nibbler

  • Guest
Re: Failed to find block 'file_line'
« Reply #3 on: June 04, 2006, 10:38:19 pm »

Update your gallery.
Logged

forward

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 4
Re: Failed to find block 'file_line'
« Reply #4 on: June 04, 2006, 10:40:54 pm »

I did

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

« Last Edit: June 04, 2006, 10:50:02 pm by forward »
Logged

Nibbler

  • Guest
Re: Failed to find block 'file_line'
« Reply #5 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
Logged

Gizmo

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1015
    • BullsEye Photos
Re: Failed to find block 'file_line'
« Reply #6 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!
Logged
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

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 4
Re: Failed to find block 'file_line'
« Reply #7 on: June 05, 2006, 09:17:09 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?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Failed to find block 'file_line'
« Reply #8 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 to find out how to make your cpg1.3.x theme work with cpg1.4.x
Logged
Pages: [1]   Go Up
 

Page created in 0.022 seconds with 20 queries.