Skip to content

Instantly share code, notes, and snippets.

@buddyq
Created January 21, 2018 04:09
Show Gist options
  • Save buddyq/fbf79b1460aa51cd2de4ccde7ac16ce8 to your computer and use it in GitHub Desktop.
Save buddyq/fbf79b1460aa51cd2de4ccde7ac16ce8 to your computer and use it in GitHub Desktop.
This happens when creating a site via WP Multisite using a specific theme only. This error does not happen with other templates. How can I decipher exactly where this bad mysql statement might be?
[21-Jan-2018 03:56:13 UTC] 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 2 for query SELECT * FROM aa_4_posts
WHERE ID IN ( ) made by require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/agent-assets/create_a_site.php'), validate_another_blog_signup, wpmu_create_blog, do_action('wpmu_new_blog'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, blog_templates->set_blog_defaults, NBT_Template_copier->execute, call_user_func, NBT_Template_copier->copy_menus, NBT_Template_copier->copy_menu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment