Title: el[0] is undefined
Last modified: August 22, 2016

---

# el[0] is undefined

 *  [gunawp](https://wordpress.org/support/users/gunawp/)
 * (@gunawp)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/el0-is-undefined/)
 * Hi I am using this plugin in a client’s wordpress site. I am having problem with
   this plugin.
 * News is not showing in the widget area.
 * I got the below error in my browser console.
 * TypeError: el[0] is undefined
 * return el[0].offsetHeight + css(el, ‘marginTop’) + css(el, ‘marginBottom’);
 * [https://wordpress.org/plugins/sp-news-and-widget/](https://wordpress.org/plugins/sp-news-and-widget/)

Viewing 1 replies (of 1 total)

 *  [ShayHurley](https://wordpress.org/support/users/shayhurley/)
 * (@shayhurley)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/el0-is-undefined/#post-5930389)
 * I am having the same issue. I get the widget title displayed in the sidebar but
   the js error gunawp mentioned is preventing the rest of the widget from being
   displayed.
 * Uncaught TypeError: Cannot read property ‘offsetHeight’ of undefined – jcarousellite.
   js:361

Viewing 1 replies (of 1 total)

The topic ‘el[0] is undefined’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/sp-news-and-widget_91aebb.svg)
 * [WP News and Scrolling Widgets](https://wordpress.org/plugins/sp-news-and-widget/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/sp-news-and-widget/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/sp-news-and-widget/)
 * [Active Topics](https://wordpress.org/support/plugin/sp-news-and-widget/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/sp-news-and-widget/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/sp-news-and-widget/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [ShayHurley](https://wordpress.org/support/users/shayhurley/)
 * Last activity: [11 years, 1 month ago](https://wordpress.org/support/topic/el0-is-undefined/#post-5930389)
 * Status: not resolved