Support » Networking WordPress » Subsite comments error

  • I have setup WordPress Multisite a couple of times on Windows Server (2012) and have all of the rewrite rules in web.config so that they seem to be working correctly. However, for the first time I have been asked to allow comments on the subsites and although they work correctly on the main site they will not work on the subsites. When I click the submit button on a comment I get a 404 error.

    I can fix the 404 error by editing the line in comments.php from:
    <form action=”<?php echo get_option(‘siteurl’); ?>/wp-comments-post.php” method=”post” id=”commentform”>

    <form action=”<?php echo network_site_url(); ?>/wp-comments-post.php” method=”post” id=”commentform”>

    But then when I click submit I get, “Sorry, comments are closed for this item.” on a resulting page.

    It would appear that this is caused by some kind of rewrite failure but I can not figure out where/why. Any help would be greatly appreciated.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi bwolf0137,
    I have a few questions. What version of WordPress are you using? What theme are you using? Have you tried using site_url() instead of get_option(‘siteurl’) ?


    I’m using an in-house developed, but very stripped down, theme and do not think it has anything connected with this. I am running WordPress on Windows servers and realized that two different multi-site sites have the same issue of Commenting not working on the subsites. I did find a work around, at least for now, using the plugin wpDiscuz. Not exactly sure why but with this activated it does work. This plugin works with WordPress’s built-in commenting but it still makes it work. I did not try what you suggested above but will. Thank you, Bryan

    Just tested and did not solve the problem.

    Back to drawing board…

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Subsite comments error’ is closed to new replies.