Title: errors in apache_logs
Last modified: August 21, 2016

---

# errors in apache_logs

 *  [Mihail D](https://wordpress.org/support/users/memberremember/)
 * (@memberremember)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/errors-in-apache_logs/)
 * Hi
    Each days in apache logs preview next errors
 * [Wed Jul 23 06:54:10 2014] [error] [client 127.0.0.1] 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 ‘AND p
    ost_type!=’revision”
   at line 1 for query SELECT * FROM ttt_posts WHERE post_parent= AND post_type!
   =’revision’ made by do_action(‘wp_ajax_edcal_savepost’), call_user_func_array,
   EdCal->edcal_savepost, wp_transition_ post_status, do_action(‘transition_post_status’),
   call_user_func_array, relevanssi_update_child_posts, referer: [http://mysite.com/wp-admin/edit.php?page=cal](http://mysite.com/wp-admin/edit.php?page=cal)
 * function relevanssi_update_child_posts($new_status, $old_status, $post)
    … $q
   = “SELECT * FROM $wpdb->posts WHERE post_parent=**$post->ID** AND post_type!=’
   revision'”;
 * [https://wordpress.org/plugins/relevanssi/](https://wordpress.org/plugins/relevanssi/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [Mikko Saari](https://wordpress.org/support/users/msaari/)
 * (@msaari)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/errors-in-apache_logs/#post-5143284)
 * What is that EdCal? Is it a plugin?
 *  Thread Starter [Mihail D](https://wordpress.org/support/users/memberremember/)
 * (@memberremember)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/errors-in-apache_logs/#post-5143299)
 * >> EdCal
 * Plugin Name: WordPress Editorial Calendar
    Description: The Editorial Calendar
   makes it possible to see all your posts and drag and drop them to manage your
   blog. Version: 3.1.1 Plugin URI: [http://stresslimitdesign.com/editorial-calendar-plugin](http://stresslimitdesign.com/editorial-calendar-plugin)
 *  Plugin Author [Mikko Saari](https://wordpress.org/support/users/msaari/)
 * (@msaari)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/errors-in-apache_logs/#post-5143361)
 * When Editorial Calendar is saving posts, it sometimes saves them without post
   ID. That should not happen, and Relevanssi doesn’t like that.
 * As for the solution… I don’t know. When looking at the EdCal source code, it 
   would seem to me this shouldn’t happen, the particular hook shouldn’t be called
   without a post ID.
 * Perhaps you should ask the EdCal developers why this is happening, why EdCal 
   is calling wp_transition_post_status() with incomplete post objects?
 *  Thread Starter [Mihail D](https://wordpress.org/support/users/memberremember/)
 * (@memberremember)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/errors-in-apache_logs/#post-5143366)
 * as a suggestion – to add additional check before query
    something like if (!isset(
   $post) || !isset($post->ID)) return;
 * thanks
 *  Plugin Author [Mikko Saari](https://wordpress.org/support/users/msaari/)
 * (@msaari)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/errors-in-apache_logs/#post-5143391)
 * Yes, I’ll probably do something like that in the next version.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘errors in apache_logs’ is closed to new replies.

 * ![](https://ps.w.org/relevanssi/assets/icon-256x256.png?rev=2025044)
 * [Relevanssi - A Better Search](https://wordpress.org/plugins/relevanssi/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/relevanssi/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/relevanssi/)
 * [Active Topics](https://wordpress.org/support/plugin/relevanssi/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/relevanssi/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/relevanssi/reviews/)

## Tags

 * [sql-error](https://wordpress.org/support/topic-tag/sql-error/)

 * 5 replies
 * 2 participants
 * Last reply from: [Mikko Saari](https://wordpress.org/support/users/msaari/)
 * Last activity: [11 years, 9 months ago](https://wordpress.org/support/topic/errors-in-apache_logs/#post-5143391)
 * Status: not resolved