Support » Plugin: WPAdverts - Classifieds Plugin » Database query error

  • Resolved Aldoseri


    Hi guys,

    When activating WPAdvert widget I get this error message

    [You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ‘))) AND wp_posts.post_type = ‘advert’ AND ((wp_posts.post_status = ‘publish’)) ‘ at line 1]

    [SELECT SQL_CALC_FOUND_ROWS wp_posts.ID FROM wp_posts WHERE 1=1 AND ((())) AND wp_posts.post_type = ‘advert’ AND ((wp_posts.post_status = ‘publish’)) ORDER BY wp_posts.menu_order DESC, wp_posts.post_date DESC LIMIT 0, 1]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Greg Winiarski


    Hi, hmm can you let me know which widget are you activating (Adverts Categories or Recent Adverts)?

    Also, do you have any plugins related to Widgets? If you do then you can try disabling them one by one and see if it helps.

    The error suggests there is some blank condition added to the query but i am not yet sure where does it come from.

    Thread Starter Aldoseri


    This is to update you on the issue.

    It turns out that the main culprit is [search everything] plugin

    after disabling the plugin everything went smoothly as expected with WPAdvert and other plugins.

    Thank you for your patience.

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