Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

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

0 Members and 1 Guest are viewing this topic.

nazogelin

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Failed to find block 'file_line
« on: June 14, 2006, 12:37:51 am »

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>

Logged

Paver

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1609
  • Paul V.
Re: Failed to find block 'file_line
« Reply #1 on: June 14, 2006, 09:57:15 pm »

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:
Code: [Select]
// 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.
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 #2 on: June 16, 2006, 09:17:11 am »

@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]
« Last Edit: June 16, 2006, 10:04:55 am by GauGau »
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Failed to find block 'file_line
« Reply #3 on: June 16, 2006, 09:29:48 am »

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)
Logged
‍I don't answer to PM with support question
Please post your issue to related board

MelC

  • Coppermine newbie
  • Offline Offline
  • Gender: Female
  • Posts: 7
  • Some words are best unsaid
    • Carters Angels.com
Re: Failed to find block 'file_line
« Reply #4 on: July 07, 2006, 07:44:19 pm »

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

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Failed to find block 'file_line
« Reply #5 on: July 07, 2006, 11:38:05 pm »

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
« Last Edit: July 08, 2006, 12:09:18 am by bmossavari »
Logged
‍I don't answer to PM with support question
Please post your issue to related board

MelC

  • Coppermine newbie
  • Offline Offline
  • Gender: Female
  • Posts: 7
  • Some words are best unsaid
    • Carters Angels.com
Re: Failed to find block 'file_line
« Reply #6 on: July 08, 2006, 12:00:22 am »

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

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Failed to find block 'file_line
« Reply #7 on: July 08, 2006, 12:20:59 am »

- 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
Logged
‍I don't answer to PM with support question
Please post your issue to related board

MelC

  • Coppermine newbie
  • Offline Offline
  • Gender: Female
  • Posts: 7
  • Some words are best unsaid
    • Carters Angels.com
Re: Failed to find block 'file_line
« Reply #8 on: July 08, 2006, 01:35:10 am »

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

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Failed to find block 'file_line
« Reply #9 on: July 08, 2006, 06:48:16 am »

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
Logged
‍I don't answer to PM with support question
Please post your issue to related board

MelC

  • Coppermine newbie
  • Offline Offline
  • Gender: Female
  • Posts: 7
  • Some words are best unsaid
    • Carters Angels.com
Re: Failed to find block 'file_line
« Reply #10 on: July 08, 2006, 09:06:36 am »

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

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Failed to find block 'file_line
« Reply #11 on: July 08, 2006, 09:30:05 am »

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.
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Failed to find block 'file_line
« Reply #12 on: July 08, 2006, 09:34:53 am »

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

MelC

  • Coppermine newbie
  • Offline Offline
  • Gender: Female
  • Posts: 7
  • Some words are best unsaid
    • Carters Angels.com
Re: Failed to find block 'file_line
« Reply #13 on: July 08, 2006, 09:49:54 am »

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

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Failed to find block 'file_line
« Reply #14 on: July 08, 2006, 10:07:56 am »

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
« Last Edit: July 08, 2006, 10:14:10 am by bmossavari »
Logged
‍I don't answer to PM with support question
Please post your issue to related board

MelC

  • Coppermine newbie
  • Offline Offline
  • Gender: Female
  • Posts: 7
  • Some words are best unsaid
    • Carters Angels.com
Re: Failed to find block 'file_line
« Reply #15 on: July 08, 2006, 06:10:23 pm »

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

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Failed to find block 'file_line
« Reply #16 on: July 08, 2006, 06:33:55 pm »

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
Logged
‍I don't answer to PM with support question
Please post your issue to related board
Pages: [1]   Go Up
 

Page created in 0.031 seconds with 20 queries.