WordPress.org

Ready to get started?Download WordPress

Forums

Comments pages taking wrong database... (3 posts)

  1. Robin
    Member
    Posted 9 years ago #

    My temproary blog is here (http://www.tarnished-crown.org/wordpress/) and I have one problem. The comments pages are trying to access the wrong database to get the comments from.
    <i>Database error: [Table 'tcorg_calender.wp_comments' doesn't exist]
    SELECT * FROM wp_comments WHERE comment_post_ID = '1' AND comment_approved = '1' ORDER BY comment_date</i>
    it's supposed to be retrieving it from tcorg_wordpress. I put that in the wp-config and everything. Does anyone know what's wrong? Please help me!

  2. NuclearMoose
    Member
    Posted 9 years ago #

    Is this an upgrade? It is using the right database, but it's looking for a table IN the database that appears to be missing.
    If you have upgraded, did you run the upgrade.php file in the wp-admin folder?

  3. Robin
    Member
    Posted 9 years ago #

    I think it's because I'm trying to include php scripts for things other than WP. For instance, I want to run a 'referral' script that shows where the hits on my site come from..
    and the coding for it is:
    <?php
    include '/home/tcorg/public_html/refer/refer.php';
    ?>
    and that's messing up the commenting section of WP. Is there any way to solve that problem and have other php includes?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.