Server error log full of 'LONG QUERY' errors
-
I checked server logs for my WordPress website that uses Content Aware Sidebars. The log is full of errors that are caused by the plugin:
[Mon Nov 17 06:25:43 2014] [error] [client XX.XX.XX.XX] LONG QUERY (1058 characters long generated in /location/to/wordpress/folder/wp-content/plugins/content-aware-sidebars/content-aware-sidebars.php:789): \n\t\t\tSELECT\n\t\t\t\tposts.ID, posts.post_parent\n\t\t\tFROM wpdbfix_posts posts\n\t\t\tLEFT JOIN wpdbfix_postmeta post_types ON post_types.post_id = posts.ID AND post_types.meta_key = '_cas_post_types' LEFT JOIN wpdbfix_postmeta authors ON authors.post_id = posts.ID AND authors.meta_key = '_cas_authors' LEFT JOIN wpdbfix_term_relationships term ON term.object_id = posts.ID LEFT JOIN wpdbfix_term_taxonomy taxonomy ON taxonomy.term_taxonomy_id = term.term_taxonomy_id LEFT JOIN wpdbfix_terms terms ON terms.term_id = taxonomy.term_id LEFT JOIN wpdbfix_postmeta taxonomies ON taxonomies.post_id = posts.ID AND taxonomies.meta_key = '_cas_taxonomies'\n\t\t\tWHERE\n\t\t\t(post_types.meta_value IS NULL OR post_types.meta_value IN ('post','4182')) AND (authors.meta_value IS NULL OR authors.meta_value IN ('authors','10')) AND (terms.slug IS NULL OR (taxonomy.taxonomy = 'category' AND terms.term_id IN('144','134','6'))) AND (taxonomies.meta_value IS NULL OR taxonomies.meta_value IN('category','_cas_sub_category')) AND posts.post_type = 'sidebar_group' AND posts.post_status = 'publish'\n\t\t
I don’t know if it can do any harm. But since it is an error that’s generated every 5 minutes, I want to solve it.
I thought sharing it would be a good first step.
What’s the next step?
- The topic ‘Server error log full of 'LONG QUERY' errors’ is closed to new replies.