• Getting this SQL error over and over again in my error logs:

    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 for query SELECT * FROM wp_zaki_like_dislike_comments WHERE comment_id = /* From [swimswam.com/wp-comments-post.php] in [/nas/wp/www/cluster-2022/swimswam/wp-content/plugins/zaki-like-dislike-comments/classes/class-zaki-like-dislike.php:42] */ made by wp_new_comment, wp_allow_comment, check_comment, apply_filters(‘comment_text’), call_user_func_array, ZakiLikeDislike_AddPluginHml, ZakiLikeDislike::getLikeDislikeHtml, ZakiLikeDislike::getLikeBtn, ZakiLikeDislike::getLikeCountHtml, ZakiLikeDislike::getLikeCount, referer: https://swimswam.com/nli-photos-4-gpac-swimmers-sign-national-letter-intent-past-week/

    https://www.ads-software.com/plugins/zaki-like-dislike-comments/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter thethunderbird99

    (@thethunderbird99)

    Bueller?

    Plugin Author Riccardo Conte

    (@rconte-1)

    Seems that you are putting the ZakiLikeDislike function outside the loop. The error occur because get_comment_ID() function return null. I’ll add a control in next release, until that, can you verify that $post is correctly defined where you put the code?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘SQL Error’ is closed to new replies.