WordPress.org

Support

Support » How-To and Troubleshooting » Cannot Post Comments

Cannot Post Comments

  • Hi,

    I recently changed the domain of my blog and merged wordpress over to new hosting and a new domain.

    I imported the sql database to the new hosting and it’s all set up fine – however whenever anyone goes to post a comment it displays a blank page, and I haven’t been receiving the usual 50 spam comments a day!

    If anyone could take a look and advise I’d be so grateful.

    The URL is: http://koko.pelli.co.uk

    Please feel free to do a dummy post if you need

    Many thanks

    S

Viewing 13 replies - 1 through 13 (of 13 total)
  • The site doesn’t load for me. Looks like it’s missing the nameservers. link

    Hi drmike, could you explain what this means?

    Sorry

    Is that because you entered the sub-domain?

    If you enter http://www.pelli.co.uk it seems to return a DNS report?

    You don’t have a comment link

    Hi Sweet,

    Could you explain that more? I’m not sure I understand – the comment link has been rewritten “No Love” under each post.

    Anyone have any ideas on this prob?

    bump

    Still anyones guess 🙂

    Any ideas brainy people?

    Sorry, just wanna bump this again incase anyone can help 🙁

    That happened to mee too after a backup restore from my host. The host solved the problem, telling me that they turned some filters off – I really don’t know what that means – try to ask you new host!

    Strange, I will try them thanks although I don’t think that would be the problem, when I switched hosting, I switched my other blog the same way and I can post comments on there fine:

    http://www.pet-detectives.co.uk

    Figured it out .. it’s the way I have set up my comments in my code.. all a bit back to front, can’t figure it out: here is the existing code

    <?php get_header(); ?>

    <div id=”wrapper”>

    <div id=”black”>

    <div id=”left_logo”>
    <img src=”/images/archives.gif” alt=”View Kokopelli Archives” />
    <!– left logo close –></div>

    <?php include (“http://koko.pelli.co.uk/navigationblack.php”); ?>

    <div id=”blog”>

    <div class=”blog_divide”></div>
    <?php include (“http://koko.pelli.co.uk/recentphotosleft.php”); ?>
    <div class=”blog_divide”></div>

    <div class=”comments”>
    <p>This amazingly un/interesting post was filed lovingly under <?php the_category(‘, ‘) ?>. If you’re mad, you can follow any responses to this entry through the <?php comments_rss_link(‘RSS 2.0’); ?> feed.</p>

    <p><?php if ((‘open’ == $post-> comment_status) && (‘open’ == $post->ping_status)) {
    // Both Comments and Pings are open ?>
    You can leave some love, or ” rel=”trackback”>trackback from your own site.

    <?php } elseif (!(‘open’ == $post-> comment_status) && (‘open’ == $post->ping_status)) {
    // Only Pings are Open ?>
    Responses are currently closed, but you can ” rel=”trackback”>trackback from your own site.

    <?php } elseif ((‘open’ == $post-> comment_status) && !(‘open’ == $post->ping_status)) {
    // Comments are open, Pings are not ?>
    You can skip to the end and leave a response. Pinging is currently not allowed.

    <?php } elseif (!(‘open’ == $post-> comment_status) && !(‘open’ == $post->ping_status)) {
    // Neither Comments, nor Pings are open ?>
    Both comments and pings are currently closed.

    <?php } edit_post_link(‘Edit this entry.’,”,”); ?></p>

    <?php comments_template(); ?>
    <!– comments close –></div>

    <div class=”blog_divide”></div>

    <!– blog close –></div>

    <!– black close –></div>

    <div id=”white”>

    <div id=”right_logo”>
    <!– right logo close –></div>

    <?php include (“http://koko.pelli.co.uk/navigationwhite.php”); ?>

    <div id=”journal”>

    <div class=”journal_divide”></div>
    <?php include (“http://koko.pelli.co.uk/recentphotosright.php”); ?>
    <div class=”journal_divide”></div>

    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>

    <div class=”post” id=”post-<?php the_ID(); ?>”>
    <h1><?php the_title(); ?></h1>

    <div class=”entry”>
    <?php the_content(‘<p class=”serif”>Read the rest of this entry »</p>’); ?>

    <?php link_pages(‘<p>Pages: ‘, ‘</p>’, ‘number’); ?>

    <div class=”journal_divide”></div>

    </div>
    </div>

    <?php endwhile; else: ?>

    <p>Sorry, no posts matched your criteria.</p>

    <?php endif; ?>

    <!– journal close –></div>
    <!– white close –></div>
    <!– wrapper close –></div>

    <?php get_footer(); ?>

    It works perfectly if i move the:

    <p>This amazingly un/interesting post was filed lovingly under <?php the_category(‘, ‘) ?>. If you’re mad, you can follow any responses to this entry through the <?php comments_rss_link(‘RSS 2.0’); ?> feed.</p>

    <p><?php if ((‘open’ == $post-> comment_status) && (‘open’ == $post->ping_status)) {
    // Both Comments and Pings are open ?>
    You can leave some love, or ” rel=”trackback”>trackback from your own site.

    <?php } elseif (!(‘open’ == $post-> comment_status) && (‘open’ == $post->ping_status)) {
    // Only Pings are Open ?>
    Responses are currently closed, but you can ” rel=”trackback”>trackback from your own site.

    <?php } elseif ((‘open’ == $post-> comment_status) && !(‘open’ == $post->ping_status)) {
    // Comments are open, Pings are not ?>
    You can skip to the end and leave a response. Pinging is currently not allowed.

    <?php } elseif (!(‘open’ == $post-> comment_status) && !(‘open’ == $post->ping_status)) {
    // Neither Comments, nor Pings are open ?>
    Both comments and pings are currently closed.

    <?php } edit_post_link(‘Edit this entry.’,”,”); ?></p>

    <?php comments_template(); ?>

    above the:

    <?php endwhile; else: ?>

    <p>Sorry, no posts matched your criteria.</p>

    <?php endif; ?>

    If that makes any sense … Is there any way I can have the post page as it is with the comments / post comment in the left and the actual post in the white on the right?

    SOLVED:

    I kept the code as is above but moved the:

    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>

    line to the top – apologies

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Cannot Post Comments’ is closed to new replies.