Forums

[resolved] Links and posts disappeared when in sidebars (3 posts)

  1. jeremycherfas
    Member
    Posted 6 years ago #

    I'm getting an error "WordPress database error: [Table 'jcherfas.wp_posts' doesn't exist]" in my sidebar. But the posts certainly show up in the main content.

    I checked with phpMyAdmin and indeed there are no tables by that name. They are called jcherfas_weblog_wp_links. Oh, and under Manage Links, they show up fine.

    I cannot think why the prefix should have changed. I added slimstat last night, but that did not involve touching the WordPress files except for the header in my theme.

    Any suggestions?

  2. Mark (podz)
    Support Maven
    Posted 6 years ago #

    Remove plugins until the error goes away.
    Start with the most recently added.

  3. jeremycherfas
    Member
    Posted 6 years ago #

    I removed all four of the plugins I have, one at a time, and that did not make any difference. I still have the "doesn't exist" error.

    I then removed the change I made to header.php to use slimstat. This consisted of adding this line:

    <?php @include_once( $_SERVER["DOCUMENT_ROOT"]."/slimstat/inc.stats.php" ); ?>

    immediately after the <body> tag and before the first <div> tag.

    I checked my WP config.php, and that seems to have the correct value for DB_NAME

    None of that made any difference.

    Then I deleted the entire slimstat folder. And lo, the error vanished. I put it back, and the errors returned.

    So I guess what I've shown is that slimstat is the problem, and I will have to take it up with the author. which is a real drag, because it was working so well!

    Thanks for listening.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags