WordPress.org

Ready to get started?Download WordPress

Forums

Strange Error Message (4 posts)

  1. bizlawnews
    Member
    Posted 1 year ago #

    When saving material, I am getting the error message below. I've tried optimizing and repairing databases, but the problem persists. Please help!
    The site is at http://bizlawnews.com. We use Organics News Theme

    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 'GROUP BY YEAR(post_date_gmt),MONTH(post_date_gmt)' at line 1]
    SELECT DISTINCT YEAR(post_date_gmt) AS year, MONTH(post_date_gmt) AS month, MAX(post_date_gmt) as last_mod, count(ID) as posts FROM wp_posts WHERE post_date < '2013-01-26 00:48:35' AND post_status = 'publish' AND post_type = 'post' ORDER BY post_date_gmt DESC GROUP BY YEAR(post_date_gmt),MONTH(post_date_gmt)

  2. Marventus
    Member
    Posted 1 year ago #

    Hi there.
    I don't were the error is being thrown on your site, but it seems to be related to an error in a (custom?) SQL query.
    Did the error appear from one day to the next? If so, try to remember what changes you made prior to that.
    That's pretty much all I got for now.

  3. androidal
    Member
    Posted 1 year ago #

    can you tell me something about this errors. Does it comes when you loading your website and you see just this error or website loading quite normal but this error comes on the top your website?

  4. bizlawnews
    Member
    Posted 1 year ago #

    The error pops up after I hit publish or update, and then I have to back out to get back into wp-admin. Thanks for helping.

Topic Closed

This topic has been closed to new replies.

About this Topic