aboutsummaryrefslogtreecommitdiff
path: root/doc/bugs/Comments_dissapeared.mdwn
blob: 787f18c98799c9835c3fc88b38061c3aad2db4eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
Although I have comments enabled and I have been using them successfully for ages now, I've come to notice that they have stopped working in the last week or two.

I am running version 3.20100312 with the following configuration:

<http://static.natalian.org/2010-03-27/natalian.txt>

In my (HTML5 modified page.tmpl) it doesn't seem to enter the "TMPL_IF COMMENTS" block anymore. I tried the stock page.tmpl and they didn't seem to work either, so the variable name hasn't changed has it?

Any other ideas? With thanks,

	comments_pagespec => 'archives/* and !*/Discussion',

> Your setup file only allows comments to pages under archives. That 
> seems unlikely to be right, so I guess it is causing your problem.
> --[[Joey]] 

That's the only place where I want comments. <http://natalian.org/archives/>
Has the pagespec changed? Is it `archives/*/*` or something like that?

It worked just fine with this configuration. I swear I have not modified it. :) -- [[Kai Hendry]]

> No changes that I can think of. 'archives/*' will match *all* pages under
> archives. Anyway, I can see in your site's rss feed that comments are
> enabled for posts, since they have comments tags there. And
> in fact I see comments on eg
> <http://natalian.org/archives/2010/03/25/BBC_News_complaints/>.
> 
> So I suspect you have simply not rebuilt your wiki after making some
> change that fixed the comments, and so only newer pages are getting them.
> --[[Joey]]

I have tried rebuilding on my squeeze system and still comments don't appear. Any clues how to debug this?
<http://natalian.org/comments/>

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

# Debugging templates

`sudo apt-get install libhtml-template-compiled-perl`

    hendry@webconverger templates$ cat test-template.perl
    #!/usr/bin/perl
    use HTML::Template::Compiled;
    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">` ?



# Solved

A merge with the templates in master with my [html5](http://git.webconverger.org/?p=ikiwiki;a=shortlog;h=refs/heads/html5) branch looks like it has solved the problem. Also see [[bugs/html5_support]].

[[bugs/done]]