Title: Undefined variable &#8211; script error!
Last modified: August 20, 2016

---

# Undefined variable – script error!

 *  Resolved [biswajeet](https://wordpress.org/support/users/biswajeet/)
 * (@biswajeet)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/undefined-variable-script-error/)
 * Hi, while working with version 1.4.8 and changing fx to slideFade, I got a script
   error – _durration not defined_. I think its a typo mistake, so check it out 
   whether its been fixed in the current released version…
 * Additionally, it will be better to define duration and slideEffect in global 
   obj container as config object rather than separate global variables.
 * thanks.
 * [http://wordpress.org/extend/plugins/jquery-collapse-o-matic/](http://wordpress.org/extend/plugins/jquery-collapse-o-matic/)

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

 *  Plugin Author [Baden](https://wordpress.org/support/users/baden03/)
 * (@baden03)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/undefined-variable-script-error/#post-3290481)
 * Yup, 1.4.8 had a typo. This was fixed in 1.4.9. Version 1.5 (released in the 
   enxt days) introduces an Options Page that allows some global defaults to be 
   set. `duration` and `slideEffect` are not part of the official plugin release
   in 1.4.9— they are there, but only for adventurous javascript savvy folks like
   yourself.
 * Thanks for the feedback.
 *  Plugin Author [Baden](https://wordpress.org/support/users/baden03/)
 * (@baden03)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/undefined-variable-script-error/#post-3290511)
 * Just wanted to let you know that version 1.5.1 includes an option page:
 * > Additionally, it will be better to define duration and slideEffect in global
   > obj container as config object rather than separate global variables.
 * Again, thanks for the feedback.

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

The topic ‘Undefined variable – script error!’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/jquery-collapse-o-matic_fffeff.svg)
 * [Collapse-O-Matic](https://wordpress.org/plugins/jquery-collapse-o-matic/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/jquery-collapse-o-matic/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/jquery-collapse-o-matic/)
 * [Active Topics](https://wordpress.org/support/plugin/jquery-collapse-o-matic/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/jquery-collapse-o-matic/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/jquery-collapse-o-matic/reviews/)

## Tags

 * [duration](https://wordpress.org/support/topic-tag/duration/)

 * 2 replies
 * 2 participants
 * Last reply from: [Baden](https://wordpress.org/support/users/baden03/)
 * Last activity: [13 years, 2 months ago](https://wordpress.org/support/topic/undefined-variable-script-error/#post-3290511)
 * Status: resolved