Title: bug/error
Last modified: March 9, 2022

---

# bug/error

 *  [lazardanlucian](https://wordpress.org/support/users/lazardanlucian/)
 * (@lazardanlucian)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/bug-error-2/)
 * error in javascript file :
 * /enable-jquery-migrate-helper/js/deprecation-notice.js:131
 * =================================================================
 *     ```
       	/**
       	 * Try to log the deprecation for the admin area.
       	 *
       	 * @param message
       	 */
       	function reportDeprecation( message ) {
       		// Do not write to the logfile if this is the backend and the notices are written to the screen.
       		if ( JQMH.backend && notice.length ) {
       			return;
       		}
   
       		if ( ! JQMH.capture_deprecations ) {
       			return;
       		}
   
       		let data = {
       			action: 'jquery-migrate-log-notice',
       			notice: message,
       			nonce: JQMH.report_nonce,
       			backend: JQMH.backend,
       			url: window.location.href,
       		};
   
       		$.post( {
       			url: JQMH.ajaxurl,
       			data
       		} );
       	}
       ```
   
 * ^ data key is missing any value and : colons

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

 *  Thread Starter [lazardanlucian](https://wordpress.org/support/users/lazardanlucian/)
 * (@lazardanlucian)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/bug-error-2/#post-15441746)
 * $.post( {
    url: JQMH.ajaxurl, data <<<<< here >>>>> } );
 *  Plugin Author [Marius L. J.](https://wordpress.org/support/users/clorith/)
 * (@clorith)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/bug-error-2/#post-15477391)
 * Hi,
 * There is no error here, the `data` variable is defined just above the `$.post`
   line.
 *  Thread Starter [lazardanlucian](https://wordpress.org/support/users/lazardanlucian/)
 * (@lazardanlucian)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/bug-error-2/#post-15477575)
 * Defined but not used.
    Sorry but I caught this due to error reporting so please
   look again.
 * It should be:
 *  $.post( {
    url: JQMH.ajaxurl, data: $data } );
 * To effectively pass the $data as data key.
 * Instead in the original code, $data is not passed, just data as a key
    -  This reply was modified 4 years, 2 months ago by [lazardanlucian](https://wordpress.org/support/users/lazardanlucian/).
 *  Thread Starter [lazardanlucian](https://wordpress.org/support/users/lazardanlucian/)
 * (@lazardanlucian)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/bug-error-2/#post-15477576)
 * You are not passing the $data variable…
    -  This reply was modified 4 years, 2 months ago by [lazardanlucian](https://wordpress.org/support/users/lazardanlucian/).
 *  Thread Starter [lazardanlucian](https://wordpress.org/support/users/lazardanlucian/)
 * (@lazardanlucian)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/bug-error-2/#post-15477579)
 * Oh wait. This is JavaScript. Sorry I’m a bit tipsy.
 * You are right.
    I will follow back with the effective error to see if you figure
   out why it gets logged as an error.
 *  Thread Starter [lazardanlucian](https://wordpress.org/support/users/lazardanlucian/)
 * (@lazardanlucian)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/bug-error-2/#post-15477581)
 * Because the error was reported after installing Sentry as our error reporting
   tool.
    And it complained about data being empty

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

The topic ‘bug/error’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/enable-jquery-migrate-helper.svg)
 * [Enable jQuery Migrate Helper](https://wordpress.org/plugins/enable-jquery-migrate-helper/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/enable-jquery-migrate-helper/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/enable-jquery-migrate-helper/)
 * [Active Topics](https://wordpress.org/support/plugin/enable-jquery-migrate-helper/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/enable-jquery-migrate-helper/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/enable-jquery-migrate-helper/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [lazardanlucian](https://wordpress.org/support/users/lazardanlucian/)
 * Last activity: [4 years, 2 months ago](https://wordpress.org/support/topic/bug-error-2/#post-15477581)
 * Status: not resolved