Support » Fixing WordPress » Comments not working.

Viewing 9 replies - 1 through 9 (of 9 total)
  • the link doesn’t work 🙁

    Where’s your index.php file?

    you do not seem to have an index.php. The comments don’t work because you do not have an index.php and the comments are displayed on index.php
    The wp.php file is a relic that has been around for a while. It basically gives you a look at what the unstyled content looks like. So it may not work like you want it to…
    If you want to rename your index.php change “blogfilename” in the options table in your “options” table (using phpmyadmin or similar) to what you want to call your index.php.

    I have a index.php file though. It’s in my FTP I don’t know why it’s not working..
    backticks<?php
    /* Don’t remove this line. */
    require(‘./wp-blog-header.php’);
    ?>
    <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
    <html xmlns=”http://www.w3.org/1999/xhtml”>
    <head profile=”http://gmpg.org/xfn/1″>
    <title><?php bloginfo(‘name’); ?><?php wp_title(); ?></title>
    <meta http-equiv=”Content-Type” content=”text/html; charset=<?php bloginfo(‘charset’); ?>” />
    <meta name=”generator” content=”WordPress <?php bloginfo(‘version’); ?>” /> <!– leave this for stats –>
    <style type=”text/css” media=”screen”>
    @import url( <?php echo get_settings(‘siteurl’); ?>/wp-layout.css );
    </style>
    <link rel=”stylesheet” type=”text/css” media=”print” href=”<?php echo get_settings(‘siteurl’); ?>/print.css” />
    <link rel=”alternate” type=”application/rss+xml” title=”RSS 2.0″ href=”<?php bloginfo(‘rss2_url’); ?>” />
    <link rel=”alternate” type=”text/xml” title=”RSS .92″ href=”<?php bloginfo(‘rss_url’); ?>” />
    <link rel=”alternate” type=”application/atom+xml” title=”Atom 0.3″ href=”<?php bloginfo(‘atom_url’); ?>” />
    <link rel=”pingback” href=”<?php bloginfo(‘pingback_url’); ?>” />
    <?php wp_get_archives(‘type=monthly&format=link’); ?>
    <?php //comments_popup_script(); // off by default ?>
    <?php wp_head(); ?>
    </head>
    <body>
    <div id=”rap”>
    <h1 id=”header”>“><?php bloginfo(‘name’); ?></h1>
    <div id=”content”>
    <?php if ($posts) : foreach ($posts as $post) : start_wp(); ?>
    <?php the_date(”,'<h2>’,'</h2>’); ?>
    <div class=”post”>
    <h3 class=”storytitle” id=”post-<?php the_ID(); ?>”>” rel=”bookmark” title=”Permanent Link: <?php the_title(); ?>”><?php the_title(); ?></h3>
    <div class=”meta”><?php _e(“Filed under:”); ?> <?php the_category() ?> — <?php the_author() ?> @ <?php the_time() ?> <?php edit_post_link(); ?></div>
    <div class=”storycontent”>
    <?php the_content(); ?>
    </div>
    <div class=”feedback”>
    <?php wp_link_pages(); ?>
    <?php comments_popup_link(__(‘Comments (0)’), __(‘Comments (1)’), __(‘Comments (%)’)); ?>
    </div>
    <!–
    <?php trackback_rdf(); ?>
    –>
    <?php include(ABSPATH . ‘wp-comments.php’); ?>
    </div>
    <?php endforeach; else: ?>
    <?php _e(‘Sorry, no posts matched your criteria.’); ?>
    <?php endif; ?>
    </div>
    <div id=”menu”>

      <?php get_links_list(); ?>
      <li id=”categories”><?php _e(‘Categories:’); ?>
      <?php wp_list_cats(); ?>

    <li id=”search”>
    <label for=”s”><?php _e(‘Search:’); ?></label>
    <form id=”searchform” method=”get” action=”<?php echo $PHP_SELF; ?>”>
    <div>
    <input type=”text” name=”s” id=”s” size=”15″ />
    <input type=”submit” name=”submit” value=”<?php _e(‘Search’); ?>” />
    </div>
    </form>

    <li id=”archives”><?php _e(‘Archives:’); ?>

      <?php wp_get_archives(‘type=monthly’); ?>

    <li id=”calendar”>
    <?php get_calendar(); ?>

    <li id=”other”><?php _e(‘Other:’); ?>

    <li id=”meta”><?php _e(‘Meta:’); ?>

    </div>
    </div>
    <p class=”credit”><!–<?php echo $wpdb->num_queries; ?> queries. <?php timer_stop(1); ?> seconds. –> <cite><?php echo sprintf(__(“Powered by WordPress“), __(“Powered by WordPress, state-of-the-art semantic personal publishing platform”)); ?></cite>
    </body>
    </html>
    backticks
    I haven’t changed anything in it.

    I have a index.php file though. It’s in my FTP I don’t know why it’s not working.. I haven’t changed anything in it, but I don’t know how to post a code on here to show it to you.

    Mark (podz)

    (@podz)

    Support Maven

    That index file is not the one being used at the link above.
    There is no menu in the linked one….

    ^ Sorry about that…that’s my code in my index.php file.

    Mark (podz)

    (@podz)

    Support Maven

    It isn’t……… we need the code for the page you have a problem with, and if that page is wp.php, post that.
    In the code above, you have thw wp version stuff, so I should see the wp version..
    <meta name="generator" content="WordPress " /> <!-- leave this for stats -->
    I don’t.

    Mark (podz)

    (@podz)

    Support Maven

    Right….http://mi-zabe.net/wp/index.php works.
    Your comments also work – there’s a guy from Texas already posted.
    Edit index.php

    <?php //comments_popup_script(); // off by default ?>

    Make that line line this:

    <?phpcomments_popup_script(); // off by default ?>

    Popups will then work.
    And go here:
    http://www.tamba2.org.uk/wordpress/spam

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Comments not working.’ is closed to new replies.