WordPress Database Table Error
-
Hello!
My WordPress search is not working properly and it seems TablePress is the culprit. I did cross-check by deactivating TablePress and search started working fine.
When I turned on WP_DEBUG, it threw this error.
WordPress database error: [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 ‘]?)(18)([\]”\’ /])’))) AND (wpdemo_posts.post_password = ”) AND wpdemo_post’ at line 1]
SELECT SQL_CALC_FOUND_ROWS wpdemo_posts.ID FROM wpdemo_posts WHERE 1=1 AND (((wpdemo_posts.post_title LIKE ‘%keyword%’) OR (wpdemo_posts.post_excerpt LIKE ‘%keyword%’) OR (wpdemo_posts.post_content LIKE ‘%keyword%’) OR (wpdemo_posts.post_content REGEXP ‘\\[table id=([“\’]?)(18)([\]”\’ /])’))) AND (wpdemo_posts.post_password = ”) AND wpdemo_posts.post_type IN (‘post’) AND (wpdemo_posts.post_status = ‘publish’) ORDER BY wpdemo_posts.post_title LIKE ‘%keyword%’ DESC, wpdemo_posts.post_date DESC LIMIT 0, 5
- The topic ‘WordPress Database Table Error’ is closed to new replies.