Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Err help (compiled templates) :(

Quote Reply
Err help (compiled templates) :(
How do I get rid of:

A fatal error has occured:

GT::Template (7915): Unable to run compiled template file '/home/httpd/vhosts/wiredon.net/cgi-bin/lsql/admin/templates/default/compiled/cart_main.html.compiled'. Reason: $@: syntax error at /home/httpd/vhosts/wiredon.net/cgi-bin/lsql/admin/templates/default/compiled/cart_main.html.compiled line 448, near "else"
syntax error at /home/httpd/vhosts/wiredon.net/cgi-bin/lsql/admin/templates/default/compiled/cart_main.html.compiled line 589, near "return"
. $!: at /home/httpd/vhosts/wiredon.net/cgi-bin/lsql/admin/Links.pm line 291.

Please enable debugging in setup for more details.


Thanks Unsure
Quote Reply
Re: [RedRum] Err help (compiled templates) :( In reply to
Hi,

This is most likely a problem in your template. There are a few weird things you can do in the template, that will cause the compiled version not to run. Mostly it's mismatched if/else/endif tags. The parser catches most of them, but not all.

Cheers,

Alex
--
Gossamer Threads Inc.
Quote Reply
Re: [Alex] Err help (compiled templates) :( In reply to
Thanks. Found/fixed :)
Quote Reply
Re: [Paul] Err help (compiled templates) :( In reply to
Hi Paul/Alex,
I am facing a similar situation here but in the home.html.compiled template, the error reads as:

Building Home Page ...
A fatal error has occured:GT::Template (27990): Unable to run compiled template file '/var/www/cgi-bin/admin/templates/default/compiled/home.html.compiled'. Reason: $@: . $!: at /var/www/cgi-bin/admin/Links.pm line 385.
Please enable debugging in setup for more details.


I think there must have been some error in 1 template which i created but since then i have deleted those templates and still the error persists....

also now if i open any template and make some changes to it and try to save it, it deletes the content of the template and shows an empty template..... Unsure

donno whats causing that but i have deleted the compiled versions of those templates which were causing the problem but still the problem persists...

Kindly help
Kamal
Quote Reply
Re: [kamalrajm] Err help (compiled templates) :( In reply to
Hi,

Check home.html to be sure that your template syntax is correct. The only time I've ever seen those kind of errors, if when you don't close a tag correctly. i.e;

<%if links>
fdfdgfdg
<%endif%>

..instead of;

<%if links%>
fdfdgfdg
<%endif%>

Hope that helps :)

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Err help (compiled templates) :( In reply to
Thanks Andy, i checked that and it seems to be fine.
Here i found out that my main Linux partition's disk space is full and none of the links SQL features like sqldump, template saving and probably more (haven't tried all of them) have seized from working.

I believe that Links SQL is not functioning because of that. Correct me if iam wrong.

if iam not wrong then Is there a way to resize my partition without actually uninstalling and then installing with proper disk space to the partition ?
probably not the right forum for this but any suggestion is most appreciated....

regards
Kamal
Quote Reply
Re: [kamalrajm] Err help (compiled templates) :( In reply to
Many applications on your server will not function correctly without space on slash. You should clean up old files etc immediately. Resizing, unfortunately, isn't the easiest thing to do in linux and it really depends on the filesystem you used.

Adrian
Quote Reply
Re: [brewt] Err help (compiled templates) :( In reply to
Thanks for confirming Brewt, i guess i ll clean up some stuff and if that also does not work then will reinstall. btw iam using ext3 filesystem....

cheers
Kamal
Quote Reply
Re: [kamalrajm] Err help (compiled templates) :( In reply to
I managed to get some 15M of space available but still the build wont work and stops at Home.html ....


Building Home Page .....
A fatal error has occured:GT::Template (5317): Unable to run compiled template file '/var/www/cgi-bin/admin/templates/default/compiled/home.html.compiled'. Reason: $@: . $!: at /var/www/cgi-bin/admin/Links.pm line 385.
Please enable debugging in setup for more details.

Is this space sufficient for it to run or still more...
Quote Reply
Re: [kamalrajm] Err help (compiled templates) :( In reply to
Like I said, its going to be something to do with your template syntax. Check for inproper formatted tags (i.e missing %). If you still can't find it, then please post it here.. and I'll take a peek at it for you.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [kamalrajm] Err help (compiled templates) :( In reply to
Quote:
Is this space sufficient for it to run or still more...
Depends on your database size, if you build static pages.

Anyway you should try dynamic mode, so this space should be enough.
Now that you are sure, that you have enough space, you should delete files in compiled dirs, in both admin and default profiles.
That should do the trick.

Best regards,
Webmaster33


Paid Support
from Webmaster33. Expert in Perl programming & Gossamer Threads applications. (click here for prices)
Webmaster33's products (upd.2004.09.26) | Private message | Contact me | Was my post helpful? Donate my help...
Quote Reply
Re: [webmaster33] Err help (compiled templates) :( In reply to
Thanks for replying,
I have somewhere around 76000 records in the category table... and to be honest am not sure whether this space is sufficient for it probably u can suggest better ....

Andy,
I still think that the home.html is fine, here it is:

<%--
File : home.html
Description : This is the home page template. It is your main Links SQL page
and displays a list of the top level categories.
Tags : The following tags are available on this page:
category => a list of all subcategories available
category_loop => a loop of all subcategories available.
grand_total => a count of the total number of links available.
--%>
<html>

<head>
<title><%site_title%> by <%company_name%></title>
<meta name="description" content="put your description here">
<meta name="keywords" content="put your keywords here">
<%css%>
</head>
<%body_tag%>
<center>
<%include include_header.html%>
<%body_table%>
<tr><td colspan=3 align=center>
<%include include_menu.html%><br><%include include_search_bar.html%>
</td></tr>
<tr>
<td width="200" valign=top align=left>
<table width="200" border=0 cellpadding=0 cellspacing=0>
<tr><td>
<img src="<%build_images_url%>/default/ChainLink.jpg" border=0>
</td></tr><tr><td><%body_font%>
<p>Welcome to the Links online demo. Feel free to add your own link, modify another's or just play around! <P>Our clients have thought of some unique and interesting ways to use Links SQL 2.0. Some examples are: software downloads site, classifieds section, search directory, personals site, image licensing site, etc. The possibilities are endless! <a class="category_links" href="mailto:jack@gossamer-threads.com">Contact us</a> to find out how Links SQL can work for you.<br></font>
</td></tr></table>
</td>
<td width=6 bgcolor=black rowspan=2>&nbsp;</td>
<td valign=top align=left width="564">
<table border=0 width="100%" cellpadding=3 cellspacing=0>
<%header_row%><td>&nbsp;</td>
<td>
<%header_font%>CATEGORIES:<%/header_font%></td></tr>
<tr><td>&nbsp;</td><td>
<%category%>
</td></tr><tr><td> &nbsp;</td><td>
<%body_font%>There are <b><%grand_total%></b> links for you to choose from!</font>
</td></tr></table>
</td></tr>
<tr><td colspan=3>&nbsp;</td></tr>
<tr><td colspan=3 valign=top>
<img src="<%build_images_url%>/default/BlackShim.gif" border=0 height=1 width="<%body_width%>" align=top>
<%include include_menu.html%>
</td></tr>
</table>
<%include include_footer.html%>
</center>
</body>
</html>

The thing is i didnt make any changes to it either... also there are problems with saving templates and the sql dump through mysql Manager.


regards
Kamal
Quote Reply
Re: [kamalrajm] Err help (compiled templates) :( In reply to
Quote:
probably u can suggest better
I suggested. Try if it works in dynamic mode, after you deleted compiled files.

Best regards,
Webmaster33


Paid Support
from Webmaster33. Expert in Perl programming & Gossamer Threads applications. (click here for prices)
Webmaster33's products (upd.2004.09.26) | Private message | Contact me | Was my post helpful? Donate my help...
Quote Reply
Re: [kamalrajm] Err help (compiled templates) :( In reply to
Quote:
also there are problems with saving templates and the sql dump through mysql Manager.
If you have 15 Mb, there should be no problem, saving templates anymore.

But sql dump for 76000 records will likely fail, with 15 Mb empty space...

Check space after your every action you do from now!

Best regards,
Webmaster33


Paid Support
from Webmaster33. Expert in Perl programming & Gossamer Threads applications. (click here for prices)
Webmaster33's products (upd.2004.09.26) | Private message | Contact me | Was my post helpful? Donate my help...
Quote Reply
Re: [kamalrajm] Err help (compiled templates) :( In reply to
Mmm.. that looks ok. It could well be a syntax error in one of the included files. Could you *upload* (not paste ;)) a copy of /admin/templates/default/compiled/home.html.compiled here, so I can take a look?

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Err help (compiled templates) :( In reply to
thats strange the file does not have anything in it. Its a blank file is being created everytime i do build. Unsure
Quote Reply
Re: [kamalrajm] Err help (compiled templates) :( In reply to
In SSH, what do you get if you type

df -H

?

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Err help (compiled templates) :( In reply to
this is the output of the command.

[root@wxpmahajanv root]# df -H
Filesystem Size Used Avail Use% Mounted on
/dev/hda3 6.2GB 5.9GB 0 100% /
/dev/hda2 6.2GB 2.3GB 3.6GB 40% /boot
none 247MB 0 247MB 0% /dev/shm
Quote Reply
Re: [kamalrajm] Err help (compiled templates) :( In reply to
Erm, arn't you out of space? (100% used on hda3)

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [webmaster33] Err help (compiled templates) :( In reply to
webmaster33,
the 15M space got used when i tried to build all last and i again have 0 % left for / .

But now once i deleted the compiled templates from admin and default, it built the changed categories including home.html

Thanks webmaster33 but i guess i still need to create more space for the proper running of other features of links sql like dump isnt it ?

regards
Kamal
Quote Reply
Re: [kamalrajm] Err help (compiled templates) :( In reply to
Compute at around 1-3 kb per each record for sql dump (but this really depends on your record size).
I suppose around 80-160 Mb should be enough for sql dump (maybe less or more).

Thank yourself, as you did notice that there is no free space left.

Best regards,
Webmaster33


Paid Support
from Webmaster33. Expert in Perl programming & Gossamer Threads applications. (click here for prices)
Webmaster33's products (upd.2004.09.26) | Private message | Contact me | Was my post helpful? Donate my help...
Quote Reply
Re: [kamalrajm] Err help (compiled templates) :( In reply to
If you ran out of space, it's likely that the compiled file was half written. Try removing all the compiled files in the compiled directory.

Adrian