Forums

[resolved] Comments form is not included into the post/page (7 posts)

  1. Jaaaarne
    Member
    Posted 3 years ago #

    Please help me to find out what might be the problem, for I'm close to despair right now. :(

    I've installed WP about a month ago. Everything was okay at first, I uploaded a couple of themes and customized them a bit, but everything was working alright. :)

    Then yesterday I suddenly found out that the comments are behaving weird. The comments form is not included into the posts or pages (it's not just me not seeing it - it is not in the source code of the page in the first place). The only exception is the only page where I have the only comment so far. This page does show the comment and the comments form, just the way it is supposed to do. On the pages and posts with no comments there is no comments form, although commenting is enabled.

    I've checked and double-cheked for the relevant strings in the theme's code, they're all in place. I've tried all the themes a have (all five of them) to no avail, even with the themes I've never touched with customizations.

    What can be the reason for this weird behaviour?

    You can have a look here:
    http://jaaaarne.com/ideas/ (the page with the comment, that is showing)
    http://jaaaarne.com/chrono/2008.08.08/#respond (the blog entry, on which comments are enabled)

  2. moshu
    Member
    Posted 3 years ago #

    I've checked and double-cheked for the relevant strings in the theme's code, they're all in place.

    Copy here the one line that calls the comments form...

  3. Jaaaarne
    Member
    Posted 3 years ago #

    <?php comments_template(); // Get wp-comments.php template ?>

    In some other templates it looked like
    <?php comments_template(); ?>

    but guess that doesn't make a huge difference. :)

    Everything worked. Then suddenly it stopped working with all the templates. I though it could be about file permissions and went to check. All the files are 644, all the directories are 755. Do I need to change something there?

  4. moshu
    Member
    Posted 3 years ago #

    If it doesn't work with any theme (we have themes in WP, not templates!), then I would ask the host about any hardware/software upgrade recently. Especially, if it worked for a while and then stopped.

  5. Jaaaarne
    Member
    Posted 3 years ago #

    I shall ask, of course.

    The thing that puzzles me is why it is not working *partially*? It shows the form on the page that actually has a comment, after all. Strange. :(

  6. Jaaaarne
    Member
    Posted 3 years ago #

    Looks like the reason was my permalink structure.

    At least, when I changed to a different structure, the comments form appeared. When I tried to have things like dots or dashes in the part of slug (?) that was dealing with dates (say, have it look like 2008-08-08 or 2008.08.08) the comments form disappeared again.

    The question is: is it my host's peculiarity or would adding such note to the page with permalink settings be helpful in future? :)

  7. moshu
    Member
    Posted 3 years ago #

    Don't use anything other than the recommended permalink structure tags:
    Using_Permalinks#Structure_Tags

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.