• Site is working but the following error log showing in error_log file every time I visit my site:

    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 7 for query
    SELECT
    COUNT(comment_ID)
    FROM
    z3c5b9m_comments
    WHERE
    comment_type = “” AND comment_approved=”1″ AND comment_parent=”0″ AND
    comment_post_ID= made by require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/themes/graphene/404.php’), get_header, locate_template, load_template, require_once(‘/themes/graphene/header.php’), wp_head, do_action(‘wp_head’), call_user_func_array, wp_enqueue_scripts, do_action(‘wp_enqueue_scripts’), call_user_func_array, graphene_localize_scripts, graphene_get_comment_count
    [19-Jul-2013 07:51:46 UTC] 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 7 for query
    SELECT
    COUNT(comment_ID)
    FROM
    z3c5b9m_comments
    WHERE
    comment_type = “” AND comment_approved=”1″ AND comment_parent=”0″ AND
    comment_post_ID= made by require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/themes/graphene/404.php’), get_header, locate_template, load_template, require_once(‘/themes/graphene/header.php’), wp_head, do_action(‘wp_head’), call_user_func_array, wp_enqueue_scripts, do_action(‘wp_enqueue_scripts’), call_user_func_array, graphene_localize_scripts, graphene_get_comment_count

Viewing 2 replies - 1 through 2 (of 2 total)
  • Have you tried:

    – deactivating all plugins to see if this resolves the problem. If this works, re-activate the plugins one by one until you find the problematic plugin(s).

    – switching to the default theme to rule out any theme-specific problems.

    resetting the plugins folder by FTP or PhpMyAdmin. Sometimes, an apparently inactive plugin can still cause problems.

    – re-uploading all files & folders – except the wp-content folder – from a fresh download of WordPress. Make sure that you delete the old copies of files & folder before uploading the new ones.

    Thread Starter ALI IMRAN

    (@imran2w)

    May be the problem is with the theme’s comment functionality of 1.9.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘IMPORTANT!! WordPress database error after update to latest version 1.9’ is closed to new replies.