WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Comments not working - can't understand why (read description) (2 posts)

  1. andreasviklundcom
    Member
    Posted 5 years ago #

    Background: There are two sites running on the same domain. One in the domain root (http://domain.com) and another one running in a folder (http://domain.com/english). The site in the domain root is built in Swedish, the site in the folder is in English. Each site has its own, independent WordPress installation and its own table prefix in a shared MySQL database. Comments are not used in blog posts, only in a "guestbook" page.

    Problem: Comments are working perfectly on the site in the domain root, the Swedish main site. However, using the same installation files and the very same theme, comments are NOT working in the English site in the subfolder.

    Question: It is not a theme issue, as comments are not working in the default theme either. It is not an incorrect setting. It is not a mis-typed comments.php or include as it works well on the other site. What could possibly cause the comment feature to die completely like this, when it is basically two identical sites? Can it be the fact that it is installed in a folder? If so, what can I do about it to get the comments to work?

  2. andreasviklundcom
    Member
    Posted 5 years ago #

    Problem solved! After excluding theme errors, content errors, domain errors and MySQL errors by replicating the setup on another domain, I accidentally happened to preview the "guestbook" page of the subdomain site with one of my old themes which has not yet got built-in support for the new WordPress 2.7.x comments system. For some reason that is still unknown to me, the comments worked perfectly when an old theme was used - I successfully posted a comment to verify that.

    When I switched to the new theme with support for 2.7-style comments only (custom theme, will not be used with older WP versions). both the comment form and the comment I had made were visible.

    Conclusion: A disappearing comment problem in WP 2.7 may be resolved by loading the legacy comment feature and posting a comment. Why? I don't know, I would be happy to find out. It was most likely something I did wrong - but again, it worked perfectly on the main website.

    Reward: Lunch! :)

Topic Closed

This topic has been closed to new replies.

About this Topic