SQL query bug in Google XML Sitemaps v. 4.1.4
-
There’s an SQL query bug in version 4.1.4 of the Google XML Sitemaps plug-in. I’ve posted the PHP error message below. It looks like it should just be a case of putting quotes around the p.post_type value on line 190 of class-googlesitemapgeneratorstandardbuilder.php.
WordPress database error Unknown column 'post' in 'where clause' for query SELECT COUNT(*) FROM wp_posts p WHERE p.post_password = '' AND p.post_type = post AND p.post_status = 'publish' AND p.ID NOT IN (103) made by require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), do_action('template_redirect'), WP_Hook->do_action, WP_Hook->apply_filters, GoogleSitemapGeneratorLoader::do_template_redirect, GoogleSitemapGeneratorLoader::call_show_sitemap, GoogleSitemapGenerator->show_sitemap, do_action('sm_build_content'), WP_Hook->do_action, WP_Hook->apply_filters, GoogleSitemapGeneratorStandardBuilder->content, GoogleSitemapGeneratorStandardBuilder->build_posts
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘SQL query bug in Google XML Sitemaps v. 4.1.4’ is closed to new replies.