News:

CPG Release 1.6.28
added submissions from {406man}
cleaned up a few PHP (8.4) deprecations
fixed PHP deprecation in calendar
removed security vulnerability
(please upgrade when possible)

Main Menu

Failed to find block 'file_line'

Started by gtroll, September 24, 2003, 06:25:12 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Flanker

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???

jdm1ke

im getting this same message  :cry:

kegobeer

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

This may be the same issue mentioned in this post http://coppermine-gallery.com/forum/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

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???

kegobeer

You're using a theme designed for phpnuke 6.5.  Look at your error message:
QuoteTemplate 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.
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

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?

Gandalf

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

gici

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


Any ideas?

Thank in forward

MissKalunji

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??


gtroll

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

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

phpnuke 6.5
coppermine 1.1d

jay2

please link me to this "correct" version.

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

Gandalf

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.

gtroll

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

rallyeulli

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

rallyeulli

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';

rallyeulli

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';