Wordpress Database Error: Please Help!

Discussion in 'WordPress' started by Bohol, Feb 10, 2008.

  1. #1
    I cannot post my first post on my blog. The error message after I click publish is this:

    WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1]
    SELECT * FROM wp_posts WHERE (post_type = 'page' AND post_status = 'publish') ORDER BY
     
    Bohol, Feb 10, 2008 IP
  2. eonline.info

    eonline.info Banned

    Messages:
    143
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Have you set permissions ? for files and database ?
     
    eonline.info, Feb 10, 2008 IP
  3. MTbiker

    MTbiker Well-Known Member

    Messages:
    2,536
    Likes Received:
    123
    Best Answers:
    0
    Trophy Points:
    170
    #3
    Assuming you haven't posted anything yet, you could reinstall Wordpress. If there is a problem with your install that might be the quickest way to fix it.
     
    MTbiker, Feb 10, 2008 IP
  4. gpearce

    gpearce Active Member

    Messages:
    1,432
    Likes Received:
    49
    Best Answers:
    0
    Trophy Points:
    90
    #4
    Are you using a bleeding version? That error pops up all the time in them :p
    Otherwise, reupload the post-new.php file to the admin directory, see if that helps :p
     
    gpearce, Feb 10, 2008 IP
  5. Bohol

    Bohol Peon

    Messages:
    2,680
    Likes Received:
    75
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Thanks for your suggestions, friends. I will come back to this thread if things won't work.
     
    Bohol, Feb 10, 2008 IP