WordPress 6.8 database error
-
version 3.59.10
Upgrading to WordPress 6.8 produces this 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 ‘FROM wp_posts WHERE 1=1 AND ((wp_posts.post_type = ‘post’ AND (wp_pos…’ at line 2
== Problem Query:
SELECT SQL_CALC_FOUND_ROWS all
FROM wp_posts
WHERE 1=1
AND ((wp_posts.post_type = 'post'
AND (wp_posts.post_status = 'publish'
OR wp_posts.post_status = 'acf-disabled'
OR wp_posts.post_status = 'future'
OR wp_posts.post_status = 'draft'
OR wp_posts.post_status = 'pending'
OR wp_posts.post_status = 'private')))
ORDER BY wp_posts.post_date DESC
LIMIT 0, 10That ‘all’ in the query seems off.
== Stack trace:
WP_Query->get_posts()
wp-includes/class-wp-query.php:3429WP_Query->query()
wp-includes/class-wp-query.php:3949WP_Query->__construct()
wp-includes/class-wp-query.php:4081Imagely\N\D\WPPostDriver->run_query()
wp-content/plugins/nextgen-gallery/src/DataMapper/WPPostDriver.php:418Imagely\N\D\DriverBase->find_all()
wp-content/plugins/nextgen-gallery/src/DataMapper/DriverBase.php:174M_Marketing->{closure}()
wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/marketing/module.marketing.php:171do_action('init')
wp-includes/plugin.php:517
Thanks.
The topic ‘WordPress 6.8 database error’ is closed to new replies.