WordPress.org

Ready to get started?Download WordPress

Forums

Wp-Stats Problem (11 posts)

  1. Nick Momrik
    Member
    Posted 10 years ago #

    What version of WP are you using?

  2. plurk
    Member
    Posted 10 years ago #

    My guess would be pre 1.0 The comment approval stuff was added then. The script on the other hand appears to have been written for wordpress 1.0+. You can fix it by upgrading or by removing references to comment_approved in the SQL query and post_name to post_title. And I'm guessing ditching the Post Categories Stats section ... I'd have to see the code to figure out if you could downgrade it to 0.7.

  3. Lauren
    Member
    Posted 10 years ago #

    It used to work for me when it was version 1 platinum. Suddenly has this error message. I'm currently using 1.01 miles
    Fatal error: [] operator not supported for strings in /home/protag/public_html/fated/wp-blog-header.php on line 328

  4. Lester Chan
    Member
    Posted 10 years ago #

    hi guys, I am using it for my site now it works. I do not encounter any error.
    @spirit892: I don't think you are using the latest version of WordPress, because post_name column is not found in the database.
    @Lauren: I think that is WordPress Error because when it includes the header of WordPress there is an error. Did you get the latest one?

  5. spirit892
    Member
    Posted 10 years ago #

    Yeah. I used an installer provided from my host to install wordpress. Do you think I should upgrade to the newest version? I heard a lot of people had problems with it though. Thank you all for your help.

  6. Lauren
    Member
    Posted 10 years ago #

    Gamerz: I am using the 1.0.1 miles and still gets an error when I place the header.
    I just removed it for now just so the stats can be shown.
    http://fated.the-protagonist.net

  7. Lester Chan
    Member
    Posted 10 years ago #

    hmm hi can you open wp-blog-header and copy line 328 out and paste it here?

  8. Lauren
    Member
    Posted 10 years ago #

    this is line 328
    <?php
    if($page >= 1 && ((($page*$perpage)+1) < $totalcomments))
    echo 'Next page <b>»</b>';

  9. Lester Chan
    Member
    Posted 10 years ago #

    ops lauren is /home/protag/public_html/fated/wp-blog-header.php on line 328 =)

  10. Lauren
    Member
    Posted 10 years ago #

    oops
    here it is
    // error_log("$request");

  11. Lester Chan
    Member
    Posted 10 years ago #

    hmm, but the line is commented out, it will not execute it.
    does it still gives u error?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.