forum.coppermine-gallery.net

Support => Older/other versions => cpg1.1d PHPnuke Support (deprecated) => Topic started by: Entropy on September 24, 2003, 06:25:12 pm

Title: Failed to find block 'file_line'
Post by: Entropy on September 24, 2003, 06:25:12 pm
--------------------------------------------------------------------------------
 
Lemme Break out the Detail Here, as i am having the same issues as the new guy -

"this is being added for the "people who can make it work", i got some kind of backwoods directions to add this thing, and it is not installed right, so if anyone has a full list of directions, that might help me, otherwise, i think i am brain dead on this one.

Operating Information-

PHP-Nuke 6.5 on MySQL
CopperMine 1.1.0D - Ported

Problem -

[size=18]Template error
Failed to find block 'file_line'(#(<!-- BEGIN file_line -->)(.*?)(<!-- END file_line -->)#s) in :
[/size]



Code - from Various Files -

[size=19]INIT.INC.PHP - Includes [/size]

$CONFIG['TABLE_PICTURES'] = $CONFIG['TABLE_PREFIX']."pictures";
$CONFIG['TABLE_ALBUMS'] = $CONFIG['TABLE_PREFIX']."albums";
$CONFIG['TABLE_COMMENTS'] =$CONFIG'TABLE_PREFIX']."comments";
$CONFIG['TABLE_CATEGORIES'] =$CONFIG'TABLE_PREFIX']."categories";
$CONFIG['TABLE_CONFIG'] = $CONFIG['TABLE_PREFIX']."config";
$CONFIG['TABLE_USERGROUPS'=$CONFIG'TABLE_PREFIX']."usergroups";
$CONFIG['TABLE_VOTES'] = $CONFIG['TABLE_PREFIX']."votes";
$CONFIG['TABLE_USERS'] = "nuke_users";

[size=18]CONFIG.INC.PHP [/size]

// MySQL TABLE NAMES PREFIX
$CONFIG['TABLE_PREFIX'] = "nuke__";
?>


What I Have Already Tried: And Failed -
1: I renamed the imported SQL file via PHPmyadmin, and left the
prefix for it at cpg_ , then i tried changing it to nuke_ (my prefix)
using CPG as the prefix causes issues, and using nuke_ generates the template error

2: tried changing
=$CONFIG'TABLE_PREFIX']."usergroups";
to
='nuke_usergroups';
for the whole string. this did not generate any additional errors, but did not work.

3: Remove the whole DB and replaced it, and re-installed the Module

Now I really am at a loss for ideas in this , so if anyone can help, i would sure appreciate it. if i am missing any information you may need to get an answer, hit me up

Trigun@earthlink.net
Mercy
Title: More Coppermine Info
Post by: Entropy on September 24, 2003, 06:33:18 pm
I know this is adding fuel to the fire, but here is the break down in more detail - below is a search on google for my issue, there are about 109 other known people with the same problem, and no one has a fix as yet.
secondly, take a look at this install file, and its directions, maybe u can see something i missed.

--------------------------------Copper Mine Install Txt
Name= Installation-English.txt for CopperMine 1.1D Ported


ONLY FOR PHPNUKE 6.5 !
For problems and support, go into the forum:
http://www.chezgreg.net/cpgboard/index.php?c=3 (english)
http://www.phpnuke-france.org/forum18.html (francais)

A-NEW INSTALL:
1-Put the coppermine folder in you modules folder

2-If you can chmod, so chmod 777 modules/coppermine/albums and all subfolders

3-With phpmyadmin, import coppermine.sql in your database


B-UPDATE:
i didn't build an update script.
So do as a new install and replace all picutures in the module for search new pictures (batch add)

i will build in a new version an update script

B-UPDATE FROM VERSION 1.1A/B/C:
1-Replace all php files then delete language folder



----------------------------------------
ADDONS:

WRITE WATERMARK ON ADD PICTURES:
http://www.chezgreg.net/cpgboard/viewtopic.php?t=965

If you want add in Waiting Content coppermine:
http://www.chezgreg.net/cpgboard/viewtopic.php?t=1383

Google Search
Searched the web for Template error Failed to find block 'file_line'(#(<!-- BEGIN file_line -->)(.*?)(<!-- END file_line -->)#s) in.

Results 1 - 10 of about 109. Search took 0.29 seconds

google URL (http://www.google.com/search?sourceid=navclient&ie=UTF-8&oe=UTF-8&q=Template+error+Failed+to+find+block+%27file%5Fline%27%28%23%28%3C%21%2D%2D+BEGIN+file%5Fline+%2D%2D%3E%29%28%2E%2A%3F%29%28%3C%21%2D%2D+END+file%5Fline+%2D%2D%3E%29%23s%29+in)
Title: [fixed see sticky]template error
Post by: sigi on September 25, 2003, 09:06:20 pm
i usethe following code in config.inc.php to get the prefix thing right:

Code: [Select]

global $prefix;

// MySQL TABLE NAMES PREFIX
$CONFIG['TABLE_PREFIX'] =                 $prefix."_cpg_";

   
$CONFIG['MODUL_NAME'] = "coppermine";


so my cpg-tables go with the nuke prefix -

you have to change the sql-file manually, though ...
Title: [fixed see sticky]template error
Post by: BoneDaddy on September 26, 2003, 07:52:23 am
I have this same problem...and I may have some reasons behind why I am getting this error..I would just like some confirmation on this.

I am running two websites on my host...one main domain and one sub domain...

The main site has a coppermine gallery running like a champ on it...but it is in the root of the host....

The sub domain is in a folder in the root...and I am getting this error:

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

Is this because coppermine is not finding the files due to the change in paths??? because it is not sitting in the root...and if so, is there any way I can get around this?  I am not even sure where to begin adding the extra paths in the code...

Thank you for any light you can shed on this...I have been searching all over the net and found you by chance...I am happy to see this project has been resurrected...

Thanks again,

BoneDaddy
Title: uname error fix
Post by: gtroll on September 26, 2003, 08:45:14 am
Backup your theme.php file and try this:
replace lines in your theme (maybe modules/coppermine/themes/nuke/theme.php)
and around lines 521-548
find
Code: [Select]
<!-- BEGIN uname_input -->
                                <td>
                                        <input type="text" name="msg_author" size="10" maxlength="20" value={uname}>
                                </td>
<!-- END uname_input -->
replace
Code: [Select]

<!-- BEGIN username_input -->
                                <td >
                                        <input type="text" name="msg_author" size="10" maxlength="20" value={username}>
                                </td>
<!-- END username_input -->
Title: Where to get 1.1D?
Post by: irving on September 26, 2003, 11:46:56 am
I want to try Coppermine for my PHPNuke 6.9 site. So, I download the supposed to be latest version of Coppermine for PHPNuke from:
http://coppermine.sourceforge.net/download.php

The link says "Coppermine 1.1d", but the links goes to "selfphp_1_0_1.zip", which after unzip gives me "coppermine1.1B" folder.

So, where is the 1.1D version?
Title: [fixed see sticky]template error
Post by: BoneDaddy on September 26, 2003, 06:33:00 pm
Thank you for your reply, but that code is already there...I uploaded the modules and blocks for PHP 6.5, so all of that was changed...I did verify just to make sure.

If you have any other suggestions, I am all ears.

I am pretty sure Coppermine is trying to find files in the root of my host.  This gallery cannot sit in the root because it is being used for a site on a sub-domain, which is located in a folder on the root...

Again, Thanks...

BoneDaddy  8)
Title: [fixed see sticky]template error
Post by: Joachim Müller on September 26, 2003, 10:26:36 pm
hm, is probably my fault: I have uploaded to our new sourceforge home all the stuff I had on my hard drive - I thought it was 1.1d (never used it, as I run the standalone).
If someone has got the 1.1d, please let me/us know; I'll add it to the download section...

GauGau
Title: [fixed see sticky]template error
Post by: Joachim Müller on September 26, 2003, 11:37:48 pm
I've uploaded Coppermine for phpnuke 1.1d (http://prdownloads.sourceforge.net/coppermine/coppermine_for_phpnuke-1.1D.zip?download) and updated the download page (http://coppermine.sourceforge.net/download.php).

GauGau
Title: [fixed see sticky]template error
Post by: BoneDaddy on September 27, 2003, 12:02:57 am
Cool...thanks Gaugau...I will take mine down then...

Any chance you could help me out with my problem  :lol:

I am getting the dreaded:

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

on my site that is loaded on a subdomain...

I have Coppermine running great on my main site http://www.theilingfamily.com
but would like to have a sub site called http://bigelkfloaters.theilingfamily.com set up with a coppermine gallery as well.

Thanks for any help you may provide,

BoneDaddy
Title: [fixed see sticky]template error
Post by: BoneDaddy on September 27, 2003, 07:28:47 am
Entropy, I do not know if you got an answer to this problem, but here is what I have figured out...mainly through trial and error...

I changed some things in my init.inc.php file.  Here is what I changed.  

$CONFIG['TABLE_PICTURES'] = $CONFIG['TABLE_PREFIX']."pictures";
$CONFIG['TABLE_ALBUMS'] = $CONFIG['TABLE_PREFIX']."albums";
$CONFIG['TABLE_COMMENTS'] =$CONFIG'TABLE_PREFIX']."comments";
$CONFIG['TABLE_CATEGORIES'] =$CONFIG'TABLE_PREFIX']."categories";
$CONFIG['TABLE_CONFIG'] = $CONFIG['TABLE_PREFIX']."config";
$CONFIG['TABLE_USERGROUPS'=$CONFIG'TABLE_PREFIX']."usergroups";
$CONFIG['TABLE_VOTES'] = $CONFIG['TABLE_PREFIX']."votes";
$CONFIG['TABLE_USERS'] = "nuke_users";

All of this I basically too out the 'table prefix' and just typed in the prefix...
so this is how it now looks:

$CONFIG['TABLE_PICTURES'] =  "cpg_pictures";
$CONFIG['TABLE_ALBUMS'] =  "cpg_albums";
$CONFIG['TABLE_COMMENTS'] = "cpg_comments";
$CONFIG['TABLE_CATEGORIES'] = "cpg_categories";
$CONFIG['TABLE_CONFIG'] = "cpg_config";
$CONFIG['TABLE_USERGROUPS'] = "cpg_usergroups";
$CONFIG['TABLE_VOTES'] = "cpg_votes";
$CONFIG['TABLE_USERS'] = "cpg_users";

You will notice the last thing I changed was the nuke_users to cpg_users...I am still working on getting my PHP-Nuke users to show up as users, but if I did not have the prefix set to cpg_users, it would only give me the Template error...

Hope this will help you...and if you have any other insight to the problem please post it for me, and others....by the searching I have done there are many many many other people out there who have this exact error on their galleries yet very places are giving tips or hints on how to fix it...

Thanks,

BoneDaddy
Title: [fixed see sticky]template error
Post by: gtroll on September 27, 2003, 07:39:02 am
I know this is related to uname vs. username somewhere in the code but don't remember where i changed it...
Title: [fixed see sticky]template error
Post by: Joachim Müller on September 27, 2003, 10:49:20 am
I'm not a phpnuke expert, but Template errors usually are a result of over-edited templates - back up your current template and try the original one out of the package and see if this fixes your problem. If yes, you'll have to dig into your over-edited template... Be aware that some html comment lines are necessary and musn't be removed!
Usage of subdomains: I know that cookie handling is a pain in the * when using subdomains - I agree that the usage of subdomains is tempting (for structure and search engine friendliness it's great), but at the moment I'd rather not use it. Sorry I can't help you on this...

GauGau
Title: [fixed see sticky]template error
Post by: BoneDaddy on September 27, 2003, 06:23:41 pm
Thanks GTROLL, I will just search the code to make sure there are no references to uname in it...maybe that is the problem...

I will say that I am incredibly happy that my first gallery went up without a hitch, because I probably would not have jumped through these hoops had I not seen how powerful this gallery really is... :shock:

Again, if anyone can remember anything on this topic please post it....

BoneDaddy  8)
Title: [fixed see sticky]template error
Post by: sigi on September 29, 2003, 07:17:45 pm
there may also be some template error with user_id ... check that against the table nuke_users if you come up with an error there ...
Title: [fixed see sticky]template error
Post by: BoneDaddy on October 01, 2003, 05:28:47 am
Hi Gtroll,  I ended up being able to get the gallery to come up by changing the line in my init.int.php where it was pointing to nuke_users to cpg_users...

However, as you can imagine this causes the users for my php site to just not show up in the coppermine gallery altogether, because I am not referencing nuke_users at all now...

One thing I noticed is that the key, in nuke_users for username is uname...could this be what you were referring to above?  I tried changing this key to user_name but it made the gallery not work (even when it was pointed to cpg_users)

Again, any help is totally appreciated...Love this site, and am really happy to see it up and growing daily...it is an almost daily stop for me now!!! And I noticed its getting a lot of play on nukecops too...so you will probably be getting more visitors soon...  :D

Thanks again,

BoneDaddy  8)

ps- here are two links...one with Coppermine working and one without it working...I am currently using PHP-NUKE 6.8

http://www.theilingfamily.com (working)
http://www.bigelkfloaters.com (not working)
Title: [fixed see sticky]template error
Post by: gtroll on October 01, 2003, 08:02:14 am
Ok try this change user_name to uname in the template you are using and change cpg_users back to nuke_users table
Title: [fixed see sticky]template error
Post by: mitirapa on October 01, 2003, 12:41:02 pm
the last 1.1D version i did is here:
http://www.surf4all.org/coppermine1.1D.zip

(i don't know if the version on sourceforge is exactly the same because in the D version i did before 2 changes)
Title: [fixed see sticky]template error
Post by: Joachim Müller on October 01, 2003, 09:29:35 pm
just to make sure we have the same versions I downloaded your version once more and replaced the one in our download area with your version.

GauGau
Title: [fixed see sticky]template error
Post by: BoneDaddy on October 01, 2003, 11:59:12 pm
Hey Gtroll, I saw a post up above about about different versions...and realized that I may have had an older version of 1.1D...I know that sounds wierd, because you would think that a version is a version...but I downloaded Coppermine again from the link provided here on this board, and wiped the old files and dropped the tables from my database...uploaded the newly downloaded version and imported the tables....and Voila....Everything works...even the Users...

So my advice to people out there is this...if you have problems, and you may try to download Coppermine from this source here, and here alone.  Because I must have gotten somebodies modified version that was jacked up :-) (I can't remember where I actually downloaded originally)

Anyway, I am happy as a clam...I will keep checkin back for newer versions and whatnot...

Keep up the good work,

BoneDaddy  8)
Title: Error message. How do I fix it?
Post by: Flanker 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???
Title: [fixed see sticky]template error
Post by: jdm1ke on October 10, 2003, 12:34:23 am
im getting this same message  :cry:
Title: [fixed see sticky]template error
Post by: kegobeer 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.
Title: [fixed see sticky]template error
Post by: gtroll 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}
Title: [fixed see sticky]template error
Post by: Gandalf on October 13, 2003, 03:53:34 am
EDITORS NOTE
SEE HERE FOR FIX (http://forum.coppermine-gallery.net/index.php?topic=1142)


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???
Title: [fixed see sticky]template error
Post by: kegobeer 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.
Title: [fixed see sticky]template error
Post by: Gandalf 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?
Title: [fixed see sticky]template error
Post by: Gandalf 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
Title: Template problem again!
Post by: gici 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
Title: problems :(
Post by: MissKalunji 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??
Title: [fixed see sticky]template error
Post by: gtroll on October 16, 2003, 03:21:25 am
What versions and theme do you have?
Title: template error fixes
Post by: gtroll 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.
Title: [fixed see sticky]template error
Post by: jay2 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
Title: [fixed see sticky]template error
Post by: jay2 on October 16, 2003, 09:44:34 am
please link me to this "correct" version.
Title: same problem !
Post by: rallyeulli 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
Title: Re: same problem !
Post by: Gandalf 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.
Title: Stting theme w/o config access
Post by: gtroll 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...
Title: i change theme
Post by: rallyeulli 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
Title: sorry was the wron topic but i have the problem
Post by: rallyeulli 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';
Title: problem solved
Post by: rallyeulli 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';
Title: [fixed see sticky]template error
Post by: jay2 on October 18, 2003, 03:53:38 am
http://impulsesd.com/impulsesd/modules.php?name=coppermine

i get the

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

as well. i'm using

phpnuke 6.5
coppermine 1.1d

someone please help!
Title: [fixed see sticky]template error
Post by: gtroll on October 18, 2003, 04:06:01 am
Jay2 and rallyeulli what themes are you using that you're getting the file_line template error? Are these files from this sites download? Have you done any modifications? I will test the themes and find your errors ya just gotta let me know...
Title: [fixed see sticky]template error
Post by: jay2 on October 18, 2003, 09:18:47 am
i cant even access the gallery at all. Im using the copperzone theme for phpnuke. www.nukemods.com is where i got the theme.
Title: Broken theme fix
Post by: gtroll on October 18, 2003, 09:32:53 am
jay2: Scan up the thread (http://forum.coppermine-gallery.net/viewtopic.php?p=3058#3058) for the phpmyadmin command to change the theme If you'd like to send (http://forum.coppermine-gallery.net/privmsg.php?mode=post&u=66) the theme folder to me I'll see if I can fix it.
Title: [fixed see sticky]template error
Post by: jay2 on October 19, 2003, 03:49:48 am
okay.. i have reinstalled the coppermine gallery and i am still getting the same error. any other suggestions?
Title: [fixed see sticky]template error
Post by: SpiderGhost on October 21, 2003, 04:54:42 pm
hey i just installed the 1.1d version and im getting this error too .. i tried everything but nothing seems to work .. i checked for the username/ uname conflict and i am using the default theme but when i go to the module all i see is this template error:
Template error
Failed to find block 'file_line'(#(<!-- BEGIN file_line -->)(.*?)(<!-- END file_line -->)#s) in :


and i tried installing version 1.2 and it didnt work either.. so i went back to 1.1 .. can someone please explain how to fix this?  :cry:

Im running phpnuke 6.5 and version 1.1D of coppermine
Title: [fixed see sticky]template error
Post by: DJMaze on October 21, 2003, 10:04:42 pm
coppermine/themes/default/theme.php beginning at line 556 should say:
Code: [Select]
<!-- BEGIN file_line -->
                        <br />
                        <br />
                        {FILE_TXT}{FILE} - {LINE_TXT}{LINE}
<!-- END file_line -->


If not then you have wrong files
Title: [fixed see sticky]template error
Post by: gtroll on October 21, 2003, 10:16:12 pm
Often with this error it's not the blocks that are missing, but an error before that that causes the block info not to be read by the script, it shows there is an error in your theme.
I am in the process of setting up nuke6.5 with the default download from here to see if I can recreate your prob...
Title: [fixed see sticky]template error
Post by: jay2 on October 22, 2003, 07:01:29 am
any luck on this yet? i still get the errors.  :(
Title: [fixed see sticky]template error
Post by: DJMaze on October 22, 2003, 07:13:01 am
Could you activate coppermine on your site so i can see the error?
Title: 6.5 install no errors....
Post by: gtroll on October 22, 2003, 08:46:00 am
ok it took all day to get the 6.5 nuke running but I got it ( started with a dev version from nukecops deinstalled deleted and reinstalled standard version ) , then I uploaded coppermine1.1d for 6.5+ ran the sql though phpmyadmin, activated coppermine through the nuke menu, and... no problems I uploaded a picture as admin and can browse fine as anon... the URL is  a temporary domain {PM if you want to test your scenerio}
the only changes I  made to the default install was, switch to nuke theme, the nuke theme fix (uncomment as spoken about on this board) and denying all but voting to anon. Can you all tell me what y'all did that was different than this?
Title: file line error
Post by: gtroll on October 22, 2003, 01:31:39 pm
try this:
in init.inc.php on line 135
you have
Code:
$CONFIG['TABLE_USERS']        = "nuke_users";
 
change the nuke_ to the prefix you use for your phpnuke
Title: [fixed see sticky]template error
Post by: jay2 on October 23, 2003, 02:33:52 am
that fixed the problem! many thanks!  :D  :D  :D  :D
Title: [fixed see sticky]template error
Post by: Urza on October 23, 2003, 01:08:42 pm
I'm getting a similar error, I'm running PHP-Nuke 6.8, and have the CPG 1.1d freshly downloaded and installed from this site last night.

Code: [Select]
Warning: Undefined index: debug_mode in /home/sites/site2/web/nuke/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 :


If you want to take a look, the site is http://www.tricorp.net and the address of the Module is http://www.tricorp.net/nuke/html/modules.php?name=coppermine.

Any suggestions?
Title: [fixed see sticky]template error
Post by: SpiderGhost on October 23, 2003, 01:20:44 pm
Alright i will try those ..i just have one more question.. if my tables prefix is nuke_ should i change the config.inc. to say nuke_ instead of cpg_ ?
Title: [fixed see sticky]template error
Post by: SiteMaster on October 24, 2003, 07:40:06 pm
first sorry for my english :D

i have the same problems in phpnuke v6.9 but i got it to work
here is how i did

all my tabels i my db starts with nuke_
so before i imported the coppermine.sql i changed the cpg_ to nuke_cpg_
so i needed to change the $CONFIG['TABLE_PREFIX'] = "cpg_"; to "nuke_cpg_";

open modules\coppermine\include\config.inc.php
Code: [Select]
<?php
// Coppermine configuration file

// MySQL configuration
$CONFIG['dbserver'&#93; = "database server";       // Your database server
$CONFIG['dbuser'&#93; = "database username";  // Your mysql username
$CONFIG['dbpass'&#93; = "database password";         // Your mysql password
$CONFIG['dbname'&#93; = "database name";        // Your mysql database name


// MySQL TABLE NAMES PREFIX
$CONFIG['TABLE_PREFIX'&#93; = "nuke_cpg_";
?>
Title: [fixed see sticky]template error
Post by: DJMaze on October 25, 2003, 03:39:32 am
No spyderghost unless you edited coppermine.sql.
Title: Coppermine PHP-Nuke help
Post by: peoples on October 30, 2003, 09:28:47 pm
My coppermine is been having some problems, I tried to install and re-install about 2 times, look at the problem which appears here

http://community.dvdmations.com/modules.php?name=coppermine

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

I have no Idea what to do...
Title: [fixed see sticky]template error
Post by: DJMaze on October 30, 2003, 09:48:15 pm
You installed Coppermine for phpNuke 6.5 into phpNuke 6.5 or above ?
Uploaded all files from the zip to modules/coppermine ?
You configuration of coppermine uses Default theme or did you change that ?
Title: [FIXED] Template Error
Post by: peoples on October 31, 2003, 01:40:40 am
I know this Error been coming up to many people, and no one has found a solution, I love Coppermine, But I cant seem to get it to work, please someone help me out, I installed everything correctly, and in the right folders, and all the mysql files and everything... I have php-nuke 6.5 and coppermine 1.1D I cant seem to figure it out. The error is ....

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

the error looks like this on the site
http://community.dvdmations.com/modules.php?name=coppermine

Please My website is due on November 10'th Or else my Sponsours will stop sponssoring me... email me at : peoples@dvdmations.com :

Please Post Your Suggestions/Ideas
Title: Re: Failed to find block 'file_line'
Post by: fivecolours on February 09, 2008, 02:36:07 am
i don't know much about coppermine galleries, and after trying to get in touch with my host for a week now, they haven't been able to help me. when trying to access http://gallery.drakecentral.org/ (http://gallery.drakecentral.org/), i am getting this error:

Code: [Select]
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>


if someone could help me fix this, in baby talk, since i'm pretty clueless, it would be greatly appreciated. thank you so much.
Title: Re: Failed to find block 'file_line'
Post by: Nibbler on February 09, 2008, 02:53:22 am
This is the phpnuke section. You are not running phpnuke so don't post here. Locking.