Title: Javascript Error
Last modified: August 30, 2016

---

# Javascript Error

 *  Resolved [danish.ravian](https://wordpress.org/support/users/danishravian-1/)
 * (@danishravian-1)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/javascript-error-87/)
 * Hello,
 * I am getting this error on home page
 * Uncaught TypeError: $(…).archivesCW is not a function
 * Please let me know how can I solve this.
 * Thanks
 * [https://wordpress.org/plugins/archives-calendar-widget/](https://wordpress.org/plugins/archives-calendar-widget/)

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

 *  Plugin Author [alek](https://wordpress.org/support/users/alekart/)
 * (@alekart)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/javascript-error-87/#post-6615885)
 * Hi,
    jQuery is required and should be added to your theme automatically if it
   is set in the settings. If you use personalized jQuery include you should ensure
   that jQuery is included before jquery-archvesCW.min.js
 *  Thread Starter [danish.ravian](https://wordpress.org/support/users/danishravian-1/)
 * (@danishravian-1)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/javascript-error-87/#post-6615915)
 * Hello,
 * jQuery is already added. Please check here and tell me what is the issue and 
   how can I fix it.
 * Thanks
 * [http://dev.marijuanapolitics.com/politics/](http://dev.marijuanapolitics.com/politics/)
 *  Plugin Author [alek](https://wordpress.org/support/users/alekart/)
 * (@alekart)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/javascript-error-87/#post-6615923)
 *     ```
       Uncaught ReferenceError: jQuery is not defined$.ui @ jquery-ui.js:14(anonymous function) @ jquery-ui.js:16
       (index):204 GET http://dev.marijuanapolitics.com/wp-content/plugins/archives-calendar-widget/themes/arw-theme1.css?ver=1.0.3 404 (Not Found)
       (index):1480 GET http://dev.marijuanapolitics.com/wp-content/themes/mp/js/navigation.js?ver=20120206
       (index):1481 GET http://dev.marijuanapolitics.com/wp-content/themes/mp/js/skip-link-focus-fix.js?ver=20130115 404 (Not Found)
       ```
   
 * jQuery is not loaded in appropriate order, even jquery-ui gets error because 
   is included before jQuery.
    You shoud not include jQuery manually in your theme
   but register your scripts with jQuery as dependency. Or be sure to include it
   in the `<head>` as all first script and before `wp_head()` call. For the CSS 
   arw-theme1.css you might have to go to the plugin settings > customise and save
   theme again without making changes.
 *  Thread Starter [danish.ravian](https://wordpress.org/support/users/danishravian-1/)
 * (@danishravian-1)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/javascript-error-87/#post-6615930)
 * But these are all already added by theme. I did not add them
 * and I think class “calendar-archives” is not coming in the widget. That is why
   it is not showing up?
 *  Thread Starter [danish.ravian](https://wordpress.org/support/users/danishravian-1/)
 * (@danishravian-1)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/javascript-error-87/#post-6615931)
 * See calendar on this page: [http://dev.marijuanapolitics.com/early-bird-tickets-for-the-oregon-medical-marijuana-business-conference-end-friday/](http://dev.marijuanapolitics.com/early-bird-tickets-for-the-oregon-medical-marijuana-business-conference-end-friday/)
 * I have included it manually. But it is not showing number of posts.
 *  Plugin Author [alek](https://wordpress.org/support/users/alekart/)
 * (@alekart)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/javascript-error-87/#post-6615934)
 * There is a bug in 1.0.3 please update to 1.0.4
 *  Thread Starter [danish.ravian](https://wordpress.org/support/users/danishravian-1/)
 * (@danishravian-1)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/javascript-error-87/#post-6615970)
 * I have updated the plugin. But still same issue. Nothing changed
 *  Thread Starter [danish.ravian](https://wordpress.org/support/users/danishravian-1/)
 * (@danishravian-1)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/javascript-error-87/#post-6616023)
 * Hello,
 * Did you check the issue ?
 *  Thread Starter [danish.ravian](https://wordpress.org/support/users/danishravian-1/)
 * (@danishravian-1)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/javascript-error-87/#post-6616156)
 * Hello,
 * After the update to 1.0.4 plugin works well. But today I updated it to 1.0.5 
   and it is again broken. Can you please check what is the issue now?
 * [http://marijuanapolitics.com/the-anti-democracy-ohio-issue-2/](http://marijuanapolitics.com/the-anti-democracy-ohio-issue-2/)
 * Thanks

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

The topic ‘Javascript Error’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/archives-calendar-widget_81afd1.svg)
 * [Archives Calendar Widget](https://wordpress.org/plugins/archives-calendar-widget/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/archives-calendar-widget/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/archives-calendar-widget/)
 * [Active Topics](https://wordpress.org/support/plugin/archives-calendar-widget/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/archives-calendar-widget/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/archives-calendar-widget/reviews/)

 * 9 replies
 * 2 participants
 * Last reply from: [danish.ravian](https://wordpress.org/support/users/danishravian-1/)
 * Last activity: [10 years, 7 months ago](https://wordpress.org/support/topic/javascript-error-87/#post-6616156)
 * Status: resolved