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 nazogelin, June 14, 2006, 12:37:51 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

nazogelin

hi guys we have a webside called http://www.delikanlim.net/fotoalbum and photo gallery everytime we are trying to acces gallery we are getting this message can someone help us with this or what ever we need to do  if someone get back to me a.s.a.p plssss
message that we are getting
Template error
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>


Paver

Heh.  Sorry to laugh, but what you're missing is code to display the "fatal error" page.  In other words, once you solve this problem, you'll see what the real error is.  For some reason, that's funny to me.

In any case, add this code to themes/yourtheme/theme.php or modify $template_cpg_die if present:
// HTML template used by the cpg_die function
$template_cpg_die = <<<EOT

        <tr>
                <td class="tableb" height="300" 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;


Once you do this, you should see the fatal error that Coppermine was trying to display when it discovered it couldn't because you were missing a key block in the $template_cpg_die variable.

Joachim Müller

#2
@nazogelin: are you sure that you're on the proper sub-board that deals with your coppermine version? Seems to me as if you're trying to use a cpg1.3.x theme on a cpg1.4.x gallery. Post a link to your coppermine-driven gallery.

[edit GauGau]
http://www.delikanlim.net/fotoalbum/sql/basic.sql shows that you're using cpg1.4.3, so you have started your thread on the wrong board. Moving accordingly. Upgrade to the most recent stable asap, it's mandatory. The other suggestions still apply: if you try to use a theme from cpg1.3.x with your coppermine version, you'll have to do as suggested in the theme upgrade docs
[/edit]

Sami

two possibilities:
1.wrongly edited theme.inc.php
2.using 1.3.x theme with your 1.4.3 cpg

- please upgrade your gallery to 1.4.8 ASAP (mandatory)
‍I don't answer to PM with support question
Please post your issue to related board

MelC

I have Coppermine 1.4.8. and I am a newbie to this gallery thing..still learning. Anyways, I was gone all yesterday and I come home to find my gallery is giving me error messages:
Template error
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>


How does one fix this issue? Im confussed and stressed. 
Thanks for your help,
~Melodye Joy
http://cartersangels.com


Sami

#5
Double post !!!
- I can't see any error since your gallery need a user & pass to login (post a test user)
- as I said in top post:
two possibilities:
1.wrongly edited theme.inc.php
2.using 1.3.x theme with your 1.4.8 cpg
‍I don't answer to PM with support question
Please post your issue to related board

MelC

Thanks, but how do i change the theme if I can not get in?
I made a seperate user, just to test and see what I could, and it says 'there was an error in the database query'

Im at a complete loss here..and very confussed being a newbie at all of this.  ::)



Sami

- if you can't log in manualy enable debug mode
http://coppermine-gallery.net/tutorial/debug_mode.php
- you can manualy change your theme by adding "theme=classic" at the end of your gallery url somthing like:
http://cartersangels.com/gallery/login.php?theme=classic
‍I don't answer to PM with support question
Please post your issue to related board

MelC

Thanks, but evben that suggestion isnt working for me :(
I spent weeks loading up thousnads of pics 2 a growing fansite and now Im at al loss.
If I move the pics into my computer and just start over, maybe that'll help.....
Thanks again for u help!
:)
~Mel

Sami

don't give up !
this is a little theme issue !!!
just tell me what happen when you change your theme manualy ? if this didn't work for then you have a crrupted theme.inc.php copy it from coppermine 1.4.8 installation package to your site
you can save your self by sending 1 or 2 file instead of starting over
‍I don't answer to PM with support question
Please post your issue to related board

MelC

I re-loaded everything for 1.4.8 except the albums folder, so i didnt loose pics.
I loaded it first, without the pink theme (which is in this site under downloads)...
I then re-loaded a the pink theme and still it is messed up. I honestly dont know what to do....
I am confussed, Im tired and Im scared I wil loose pics.  :-\
Id be greatful if someone would even go in and fix it for me, Im confussed and stressed   :'(

If you have tgime to help me through, please message me on AIM or MSN

doihavetocry4you (AIM)
drowningshapeofmyheartmorethnthat@hotmail.com (MSN)

If anyone can help me, Id be greatful!
One last attempt and Ill be goin to bed. lol
Thank you all for your sugestion

Joachim Müller

There's no individual support by messenger. If everything works fine with the default themes that come with coppermine, but fails with a custom, user contributed theme, then that particular theme is to blame. Make sure that it isn't broken and has been made for your particular coppermine version.

Sami

- before reloading pink theme do you have this issue?
- did you have any MOD or plugin installed?
‍I don't answer to PM with support question
Please post your issue to related board

MelC

And even beofre I reloaded the Pink theme, it was all showing up in the old theme...
even after I deleted it..and again when i re-loaded it, the same error message came up after I tried to login...

No mod or plugin installed that I know of.

Sami

#14
please download attachment and copy testuser.php to root of your gallery and then run it by pointing your browser to it , it will create a test user for us to check your site
the file will create a user with this info.:
user:testuser
password:test
please remove the file after user creation
‍I don't answer to PM with support question
Please post your issue to related board

MelC

I loaded the testuser and that didnt even work. Im very confussed  ???

Is there any other way to do this? I dont wanna start ALL over and loose pictures and such...

Thanks for your help!
~Melodye

Sami

what did you mean by it didn't work?
did you get a error or something?
- where did you put that file?
- did you execute it?
it should work!!!(at least it work for me !)
instead of that file , this time unzip support.zip and copy support.php to root of gallery and let me know i'll execute it for you
this file will create test user and will enable debug mode
‍I don't answer to PM with support question
Please post your issue to related board