Title: Javascript errors
Last modified: December 9, 2022

---

# Javascript errors

 *  [epcjampaling](https://wordpress.org/support/users/epcjampaling/)
 * (@epcjampaling)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/javascript-errors-59/)
 * Hello, first to say how much I like the time.ly WP plugin. We do a lot of repeated
   events and setting them up is a breeze.
 * I’m having difficulty with the plugin generating JS errors and I’m not sure why.
 * I tried deactivating all other plugins and the errors did not cease and then 
   I tried deactivating time.ly and they did.
 * The problem stems from the file _ai1ec\_render.js_ receiving undefined values.
   Here is one example:
 *     ```
       ?ai1ec_render_js=calendar.js&is_backend=false&is_calendar_page=true&ver=3.0.0:108 Uncaught TypeError: Cannot read properties of undefined (reading 'affix')
           at ?ai1ec_render_js=calendar.js&is_backend=false&is_calendar_page=true&ver=3.0.0:108:2512
           at Object.execCb (?ai1ec_render_js=calendar.js&is_backend=false&is_calendar_page=true&ver=3.0.0:7:12084)
           at n.check (?ai1ec_render_js=calendar.js&is_backend=false&is_calendar_page=true&ver=3.0.0:7:6408)
           at n.enable (?ai1ec_render_js=calendar.js&is_backend=false&is_calendar_page=true&ver=3.0.0:7:8835)
           at Object.enable (?ai1ec_render_js=calendar.js&is_backend=false&is_calendar_page=true&ver=3.0.0:7:11126)
           at n.<anonymous> (?ai1ec_render_js=calendar.js&is_backend=false&is_calendar_page=true&ver=3.0.0:7:8692)
           at ?ai1ec_render_js=calendar.js&is_backend=false&is_calendar_page=true&ver=3.0.0:7:800
           at each (?ai1ec_render_js=calendar.js&is_backend=false&is_calendar_page=true&ver=3.0.0:7:328)
           at n.enable (?ai1ec_render_js=calendar.js&is_backend=false&is_calendar_page=true&ver=3.0.0:7:8297)
           at Object.enable (?ai1ec_render_js=calendar.js&is_backend=false&is_calendar_page=true&ver=3.0.0:7:11126)
       ```
   
 * I was wondering if you could help me troubleshoot this. You can see examples 
   on our site.
 * Many thanks
 * EPC at Jampa Ling
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fjavascript-errors-59%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [vinjoy707](https://wordpress.org/support/users/vinjoy707/)
 * (@vinjoy707)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/javascript-errors-59/#post-16297626)
 * After some additional troubleshooting, I have found that things improve by including
   in the footer all the JS created by the render_js function. I am continuing my
   testing but this makes me believe there is a conflict in the order in which JS
   is loaded so the priority may have to change for the ai1ec scripts to make it
   less fragile
 *  [vinjoy707](https://wordpress.org/support/users/vinjoy707/)
 * (@vinjoy707)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/javascript-errors-59/#post-16297768)
 * Further testing has shown that relegating the ai1ec_render_js script to the footer
   rather than the header when added with wp_enqueue_script seems to provide a consistent
   fix. Refer to the code in \all-in-one-event-calendar\app\controller\javascript.
   php at around line 763 and update false to true to force the script to the footer.
 *  Thread Starter [epcjampaling](https://wordpress.org/support/users/epcjampaling/)
 * (@epcjampaling)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/javascript-errors-59/#post-16298999)
 * Thanks so much [@vinjoy707](https://wordpress.org/support/users/vinjoy707/) –
   worked a treat!

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

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

 * ![](https://s.w.org/plugins/geopattern-icon/all-in-one-event-calendar.svg)
 * [Timely All-in-One Events Calendar](https://wordpress.org/plugins/all-in-one-event-calendar/)
 * [Support Threads](https://wordpress.org/support/plugin/all-in-one-event-calendar/)
 * [Active Topics](https://wordpress.org/support/plugin/all-in-one-event-calendar/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/all-in-one-event-calendar/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/all-in-one-event-calendar/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [epcjampaling](https://wordpress.org/support/users/epcjampaling/)
 * Last activity: [3 years, 5 months ago](https://wordpress.org/support/topic/javascript-errors-59/#post-16298999)
 * Status: not resolved