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 [2] 3 4   Go Down

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

0 Members and 1 Guest are viewing this topic.

Flanker

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Error message. How do I fix it?
« Reply #20 on: October 06, 2003, 09:13:48 pm »

Ok... On my other website, www.airsoft-norge.com

Running PHP Nuke v6.9 and Coppermine 1.1D. Installed according to the book, as I did on my other website www.bergen-airsoft.com (where it works like a charm).

When trying to access the gallery, the following error appears:

Warning: Undefined index: debug_mode in /home/ipetter/public_html/modules/coppermine/include/functions.inc.php on line 123
Template error
Failed to find block 'file_line'(#(<!-- BEGIN file_line -->)(.*?)(<!-- END file_line -->)#s) in :


Anybody have a clue as to what this is, and how to fix it???
Logged

jdm1ke

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
[fixed see sticky]template error
« Reply #21 on: October 10, 2003, 12:34:23 am »

im getting this same message  :cry:
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
[fixed see sticky]template error
« Reply #22 on: October 10, 2003, 04:00:42 am »

Turn on debug mode and post the results.  That might shed some light on the problem.

Also, run a phpinfo script and see if there are any differences between your two sites, Flanker.
Logged
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

gtroll

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 618
    • CPG-Nuke
[fixed see sticky]template error
« Reply #23 on: October 10, 2003, 06:03:10 am »

This may be the same issue mentioned in this post http://forum.coppermine-gallery.net/index.php?topic=327&highlight=template
if not can you give us the full error message it should say what template and what function and what line #
{edited}
On second thought it's looks like the main problem may not be the template error it's the fact debug is undefined. You might try restoring the files functions.inc.php and init.inc.php from the install package (after backing up what you have){/edited}

Gandalf

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
[fixed see sticky]template error
« Reply #24 on: October 13, 2003, 03:53:34 am »

EDITORS NOTE
SEE HERE FOR FIX



Hi,
I use Coppermine for phpnuke 1D and PhpNuke 6.0
All the time i click on a picture or i get following error.

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

        <tr>
                <td class="tableh2_compact"><b>{ADD_YOUR_COMMENT}</b></td>
        </tr>
        <tr>
                <form method="post" name="post" action="modules.php?name=coppermine&file=db_input">
                <td colspan="3">
                        <table width="100%" cellpadding="0" cellspacing="0">
                                <input type="hidden" name="event" value="comment">
                                <input type="hidden" name="pid" value="{PIC_ID}">
<!-- BEGIN username_input -->
                                <td class="tableb_compact">
                                        <input type="text" class="textinput" name="msg_author" size="10" maxlength="20" value={username}>
                                </td>
<!-- END username_input -->
<!-- BEGIN input_box_smilies -->
                                <td width="100%" class="tableb_compact">
                                <input type="text" class="textinput" id="message" name="msg_body" onselect="storeCaret_post(this);" onclick="storeCaret_post(this);" onkeyup="storeCaret_post(this);" maxlength="{MAX_COM_LENGTH}" style="width: 100%;">                                        <!-- END input_box_smilies -->

                                </td>
                                <td class="tableb_compact">
                                <input type="submit" class="comment_button" name="submit" value="{OK}">
                                </td>
                        </table>
                </td>
                </form>
        </tr>
<!-- BEGIN smilies -->
        <tr>
                <td width="100%" class="tableb_compact">
                        {SMILIES}
                </td>
        </tr>
<!-- END smilies -->

I tryed several templates, but the result ist the same.
Any Idea???
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
[fixed see sticky]template error
« Reply #25 on: October 13, 2003, 04:18:50 am »

You're using a theme designed for phpnuke 6.5.  Look at your error message:
Quote
Template error
Failed to find block 'uname_input'(#(<!-- BEGIN uname_input -->)(.*?)(<!-- END uname_input -->)#s) in :

<!-- BEGIN username_input -->


Nuke 6.5 uses uname, and 6.0 uses username.  Switch to the default theme and see if your problem goes away.
Logged
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

Gandalf

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
[fixed see sticky]template error
« Reply #26 on: October 13, 2003, 06:35:57 pm »

Hi, thanks for your reply, but you are wrong.
The query for:

Template error
Failed to find block 'uname_input'

is wrong because i have the right template, so the failure should not be in the template but in the main script. I checked the theme.php and was unable to finde the 'uname' variable.

I checked again, i installes the coppermine version for phpnuke 5.5-6.0 and also the right templates.

Any other idea?
Logged

Gandalf

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
[fixed see sticky]template error
« Reply #27 on: October 13, 2003, 06:53:27 pm »

OK it works now.
I found the problem in the displayimage.php.
In your pack for PHPNUKE 5.5-6.0 ist the query for the "uname" varaible instead of the "username" variable.
Please fix your package.
Greets
Logged

gici

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Template problem again!
« Reply #28 on: October 15, 2003, 10:56:41 am »

I tried to install the Coppermine for the first time and got something like this
Quote
Template error
Failed to find block 'file_line'(#(<!-- BEGIN file_line -->)(.*?)(<!-- END file_line -->)#s) in :



Any ideas?

Thank in forward
Logged

MissKalunji

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
problems :(
« Reply #29 on: October 15, 2003, 05:03:37 pm »

i added to my php nuke : www.aviewofhaiti.com

but when i click on copermine it says



Notice: Undefined index: debug_mode in /home/aviewofh/public_html/modules/coppermine/include/functions.inc.php on line 123
Template error
Failed to find block 'file_line'(#(<!-- BEGIN file_line -->)(.*?)(<!-- END file_line -->)#s) in :


what can id o to fix it??
Logged

gtroll

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 618
    • CPG-Nuke
template error fixes
« Reply #31 on: October 16, 2003, 05:06:14 am »

Template errors so far have been caused by two things
1. uname / username conflicts
If your error message contains one of these variables
A.if you're using nuke 6.5 search for uname in your theme.php file replace with username
B.if you'rd using 5.x - 6.0  search for username in your theme.php file replace with uname
also check displayimage.php for the same conflict

2. theme modification
in this case try another theme (nuke or default) and see if the error still occurs if not find where the code is different in your current theme.

jay2

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
    • http://www.jay2.com
[fixed see sticky]template error
« Reply #32 on: October 16, 2003, 09:17:40 am »

here is the link to my error.. someone please help! im using

phpnuke 6.5
coppermine 1.1d
Logged

jay2

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
    • http://www.jay2.com
[fixed see sticky]template error
« Reply #33 on: October 16, 2003, 09:44:34 am »

please link me to this "correct" version.
Logged

rallyeulli

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
    • http://www.oldtimersport.de
same problem !
« Reply #34 on: October 16, 2003, 08:22:37 pm »

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

i am using 6.7 before and all goes well.
now i have update to 6.9 and that error comes out
nothing was change in the coppermine area.
after i found this site i check the theme.php it say username, seems to be right.
next chance is to change the theme!
but how do i change it if i can't got to the admin of choppermine?

if you want to look at my site www.oldtimersport.de
Logged

Gandalf

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: same problem !
« Reply #35 on: October 16, 2003, 09:13:48 pm »

Quote from: "rallyeulli"
Template error
Failed to find block 'file_line'(#(<!-- BEGIN file_line -->)(.*?)(<!-- END file_line -->)#s) in :

i am using 6.7 before and all goes well.
after i found this site i check the theme.php it say username, seems to be right.


No you are wrong, change the username variable to uname and it should work.
Logged

gtroll

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 618
    • CPG-Nuke
Stting theme w/o config access
« Reply #36 on: October 16, 2003, 09:28:14 pm »

Starting with 6.5 the variable is username. To change your theme with out config access go to phpmyadmin and use this query
Code: [Select]
UPDATE `cpg_config` SET `value` = 'default' WHERE `name` = 'theme' LIMIT 1 ;
or
Code: [Select]
UPDATE `cpg_config` SET `value` = 'nuke' WHERE `name` = 'theme' LIMIT 1 ;
If your prefix is not cpg_ adjust your query accordingly...

rallyeulli

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
    • http://www.oldtimersport.de
i change theme
« Reply #37 on: October 16, 2003, 09:52:08 pm »

but nothig happend  :(

i check the username was in the default theme thats right.
and then i change the table to default and nuke
but error still goes on
Logged

rallyeulli

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
    • http://www.oldtimersport.de
sorry was the wron topic but i have the problem
« Reply #38 on: October 16, 2003, 10:24:04 pm »

the update to 6.9 changes the modification in the table nuke_users.

run this sql statments and it will work.
its from the coppermine sql and makes the changes on the tables

ALTER TABLE `nuke_users` ADD `user_group_cp` INT( 11 ) DEFAULT '2' NOT NULL ,
ADD `user_active_cp` ENUM( 'YES', 'NO' ) DEFAULT 'YES' NOT NULL ;
ALTER TABLE `nuke_users` ADD `user_lastvisit_cp` DATETIME NOT NULL ,
ADD `user_regdate_cp` DATETIME NOT NULL ;
UPDATE nuke_users SET user_group_cp='3' WHERE user_id='1';
UPDATE nuke_users SET user_group_cp='1' WHERE user_id='2';
Logged

rallyeulli

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
    • http://www.oldtimersport.de
problem solved
« Reply #39 on: October 16, 2003, 10:25:10 pm »

no reason to new install
the update to 6.9 changes the modification in the table nuke_users.

run this sql statments and it will work.
its from the coppermine sql and makes the changes on the tables

ALTER TABLE `nuke_users` ADD `user_group_cp` INT( 11 ) DEFAULT '2' NOT NULL ,
ADD `user_active_cp` ENUM( 'YES', 'NO' ) DEFAULT 'YES' NOT NULL ;
ALTER TABLE `nuke_users` ADD `user_lastvisit_cp` DATETIME NOT NULL ,
ADD `user_regdate_cp` DATETIME NOT NULL ;
UPDATE nuke_users SET user_group_cp='3' WHERE user_id='1';
UPDATE nuke_users SET user_group_cp='1' WHERE user_id='2';
Logged
Pages: 1 [2] 3 4   Go Up
 

Page created in 0.031 seconds with 18 queries.