Title: Error Notification doesn&#039;t version .js file
Last modified: August 21, 2016

---

# Error Notification doesn't version .js file

 *  [archon810](https://wordpress.org/support/users/archon810/)
 * (@archon810)
 * [13 years ago](https://wordpress.org/support/topic/error-notification-doesnt-version-js-file/)
 * Error notification doesn’t append the version of the plugin to the .js file include,
   which for us with CDNs or enforcing browser caching means an old copy will be
   served upon an upgrade for a potentially long time.
 * Take a look at [http://www.androidpolice.com/2013/06/21/new-game-gameloft-releases-gangstar-vegas-their-most-gta-like-gta-clone-yet-for-6-99/](http://www.androidpolice.com/2013/06/21/new-game-gameloft-releases-gangstar-vegas-their-most-gta-like-gta-clone-yet-for-6-99/),
   for example. All other plugins version their .js files by appending ?ver=N.NN,
   whereas yours doesn’t. From what I can tell, the problem is you’re not passing
   the version here: `wp_register_script('error_notification_script', plugins_url('/
   error_notification.js', __FILE__), null, null, true);`
 * [http://wordpress.org/extend/plugins/error-notification/](http://wordpress.org/extend/plugins/error-notification/)

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

 *  Plugin Author [Taras Dashkevych](https://wordpress.org/support/users/taskotr/)
 * (@taskotr)
 * [12 years, 12 months ago](https://wordpress.org/support/topic/error-notification-doesnt-version-js-file/#post-3863997)
 * I changed:
    wp_register_script(‘error_notification_script’, plugins_url(‘/error_notification.
   js’, __FILE__), **null**, null, true);
 * to:
 * wp_register_script(‘error_notification_script’, plugins_url(‘/error_notification.
   js’, __FILE__), **array(‘jquery’)**, null, true);
 * It should fix that problem;
 *  Thread Starter [archon810](https://wordpress.org/support/users/archon810/)
 * (@archon810)
 * [12 years, 12 months ago](https://wordpress.org/support/topic/error-notification-doesnt-version-js-file/#post-3864016)
 * I don’t see why that would fix the problem. All you changed was adding a prerequisite
   but didn’t touch the version parameter.
 * This is still not versioned:
    `<script type='text/javascript' src='http://cdn.
   androidpolice.com/wp-content/plugins/error-notification/error_notification.js'
   ></script>`

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

The topic ‘Error Notification doesn't version .js file’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/error-notification.svg)
 * [Error Notification](https://wordpress.org/plugins/error-notification/)
 * [Support Threads](https://wordpress.org/support/plugin/error-notification/)
 * [Active Topics](https://wordpress.org/support/plugin/error-notification/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/error-notification/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/error-notification/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [archon810](https://wordpress.org/support/users/archon810/)
 * Last activity: [12 years, 12 months ago](https://wordpress.org/support/topic/error-notification-doesnt-version-js-file/#post-3864016)
 * Status: not resolved