master
parent
e72973afdb
commit
9ed523d762
|
@ -34,14 +34,28 @@ I have tried rebuilding on my squeeze system and still comments don't appear. An
|
||||||
|
|
||||||
I was worried is was due to a time skew problem I was experiencing on my VPS in the last month, though the time is right now and still comments do not appear on blog posts like <http://natalian.org/archives/2010/03/25/BBC_News_complaints/>
|
I was worried is was due to a time skew problem I was experiencing on my VPS in the last month, though the time is right now and still comments do not appear on blog posts like <http://natalian.org/archives/2010/03/25/BBC_News_complaints/>
|
||||||
|
|
||||||
# Getting closer
|
# Debugging templates
|
||||||
|
|
||||||
hendry@webconverger templates$ for i in *.tmpl; do ./test-template.perl $i || echo $i has an error; done
|
`sudo apt-get install libhtml-template-compiled-perl`
|
||||||
HTML::Template->new() : At least one <TMPL_IF> or <TMPL_UNLESS> not terminated at end of file! at /usr/share/perl5/HTML/Template.pm line 2351.
|
|
||||||
page.tmpl has an error
|
hendry@webconverger templates$ cat test-template.perl
|
||||||
hendry@webconverger templates$ cat test-template.perl
|
|
||||||
#!/usr/bin/perl
|
#!/usr/bin/perl
|
||||||
use HTML::Template;
|
use HTML::Template::Compiled;
|
||||||
my $htc = HTML::Template->new(filename => "$ARGV[0]");
|
local $HTML::Template::Compiled::DEBUG = 1;
|
||||||
|
my $htc = HTML::Template::Compiled->new(
|
||||||
|
filename => "$ARGV[0]",
|
||||||
|
);
|
||||||
|
eval {
|
||||||
|
print $htc->output;
|
||||||
|
};
|
||||||
|
if ($@) {
|
||||||
|
# reports as text
|
||||||
|
my $msg = $htc->debug_code;
|
||||||
|
# reports as a html table
|
||||||
|
my $msg_html = $htc->debug_code('html');
|
||||||
|
}
|
||||||
|
hendry@webconverger templates$ ./test-template.perl page.tmpl
|
||||||
|
Missing closing tag for 'IF' atend of page.tmpl line 159
|
||||||
|
|
||||||
|
|
||||||
I think the problem was before that it was `<TMPL_IF COMMENTS>` and now it is `<TMPL_IF NAME="COMMENTS">` ?
|
I think the problem was before that it was `<TMPL_IF COMMENTS>` and now it is `<TMPL_IF NAME="COMMENTS">` ?
|
||||||
|
|
Loading…
Reference in New Issue