Title: PHP/Database Error &#8211; Null for Query
Last modified: August 30, 2016

---

# PHP/Database Error – Null for Query

 *  Resolved [JP](https://wordpress.org/support/users/jpress/)
 * (@jpress)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/phpdatabase-error-null-for-query/)
 * Hello,
 * I have been seeing the following PHP error occurring about twice every hour since
   early this morning:
 * `[01-Jan-2016 07:06:53 UTC] WordPress database error Column 'value' cannot be
   null for query REPLACE INTO`wp_d92f01crqn_wsal_metadata`(`id`,`occurrence_id`,`
   name`,`value`) VALUES (0, 3378, 'RevisionLink', NULL) made by wp_nav_menu_update_menu_items,
   wp_update_nav_menu_item, wp_update_post, wp_insert_post, do_action('post_updated'),
   call_user_func_array, WSAL_Sensors_Content->CheckModificationChange, WSAL_AlertManager-
   >Trigger, WSAL_AlertManager->_CommitItem, WSAL_AlertManager->Log, WSAL_Loggers_Database-
   >Log, WSAL_Models_Occurrence->SetMeta, WSAL_Models_Occurrence->SetMetaValue, 
   WSAL_Models_Meta->SaveMeta, WSAL_Adapters_MySQL_ActiveRecord->Save`
 * I’m not exactly sure what it is referring to but would gladly welcome any insight
   or advice! Specifically- Does this indicate a problem on our website and if so,
   how can it be resolved?
 * Thank you,
    JP
 * [https://wordpress.org/plugins/wp-security-audit-log/](https://wordpress.org/plugins/wp-security-audit-log/)

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

 *  [WPWhiteSecurity](https://wordpress.org/support/users/wpwhitesecurity/)
 * (@wpwhitesecurity)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/phpdatabase-error-null-for-query/#post-6897844)
 * Hello jpress,
 * Thank you for showing interest in our plugin. This is a problem in the current
   version for which we have a fix in the upcoming version.
 * The upcoming version has not been released yet though should you wish to download
   the upcoming version of the plugin you can download it from here: [http://www.wpsecurityauditlog.com/downloads/wsal-plugin/wp-security-audit-log.zip](http://www.wpsecurityauditlog.com/downloads/wsal-plugin/wp-security-audit-log.zip).
 * Please note that it still has some bugs that needs to be ironed out though there
   are no show stoppers. Most of the issues remaining are related to the new features
   🙂
 *  Thread Starter [JP](https://wordpress.org/support/users/jpress/)
 * (@jpress)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/phpdatabase-error-null-for-query/#post-6897854)
 * Thank you very much for the info and for providing the new plugin file.
 * I went ahead and installed the zip file, but it shows up as version 2.0.1 (whereas
   my current/previous version is 2.2). The readme.txt file shows the following:
 * Tested up to: 4.2.3
    Stable tag: 2.0.1
 * Can you confirm that you’ve linked the correct file?
 *  [WPWhiteSecurity](https://wordpress.org/support/users/wpwhitesecurity/)
 * (@wpwhitesecurity)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/phpdatabase-error-null-for-query/#post-6897858)
 * Yes, it is the correct file. That is just an internal version hence the different
   file name. Once we release it public it will have the correct version and you
   will be able to update it.
 * Would be great if you can [rate the plugin](https://wordpress.org/support/view/plugin-reviews/wp-security-audit-log)
   and should you have any further queries, do not hesitate to get in touch.
 *  Thread Starter [JP](https://wordpress.org/support/users/jpress/)
 * (@jpress)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/phpdatabase-error-null-for-query/#post-6897870)
 * Great, thank you! I can confirm that the errors have stopped occurring.
 * Happy to add a rating/review, thanks for suggesting that.
 * JP
 *  [WPWhiteSecurity](https://wordpress.org/support/users/wpwhitesecurity/)
 * (@wpwhitesecurity)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/phpdatabase-error-null-for-query/#post-6897879)
 * Glad all is sorted. We should be officially releasing that version next week.
   Thank you for the positive review.
 * Do not hesitate to get in touch should you have any further queries.

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

The topic ‘PHP/Database Error – Null for Query’ is closed to new replies.

 * ![](https://ps.w.org/wp-security-audit-log/assets/icon-256x256.png?rev=2961534)
 * [WP Activity Log](https://wordpress.org/plugins/wp-security-audit-log/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-security-audit-log/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-security-audit-log/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-security-audit-log/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-security-audit-log/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-security-audit-log/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [WPWhiteSecurity](https://wordpress.org/support/users/wpwhitesecurity/)
 * Last activity: [10 years, 8 months ago](https://wordpress.org/support/topic/phpdatabase-error-null-for-query/#post-6897879)
 * Status: resolved