Title: A serious help || &quot;zerif.js&quot; file  throwing a JavaScript error
Last modified: August 24, 2016

---

# A serious help || "zerif.js" file throwing a JavaScript error

 *  Resolved [giftors](https://wordpress.org/support/users/giftors/)
 * (@giftors)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/a-serious-help-zerifjs-file-throwing-a-javascript-error/)
 * Hi Friend,
 * I need a serious help here
    Please stop your theme’s “zerif.js” file from throwing
   a JavaScript error on this Webpage: [http://immanuelministries.co.in/test/read-the-word-of-god/](http://immanuelministries.co.in/test/read-the-word-of-god/)
 * I Thank You in advance.

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

 *  [Hardeep Asrani](https://wordpress.org/support/users/hardeepasrani/)
 * (@hardeepasrani)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/a-serious-help-zerifjs-file-throwing-a-javascript-error/#post-6006177)
 * Hi,
 * Yes, we are already aware of this issue and we have already fixed it in the latest
   version of the theme, which is still under review at WordPress.org Theme Trac.
   🙂
 * Regards,
    Hardeep
 *  [kahnoleary](https://wordpress.org/support/users/kahnoleary/)
 * (@kahnoleary)
 * [11 years ago](https://wordpress.org/support/topic/a-serious-help-zerifjs-file-throwing-a-javascript-error/#post-6006328)
 * Hello,
 * Hardeep could you let us know what you did to fix it? I am working on a site 
   that didn’t use a child theme so I will have to edit the js file manually.
 *  [kahnoleary](https://wordpress.org/support/users/kahnoleary/)
 * (@kahnoleary)
 * [11 years ago](https://wordpress.org/support/topic/a-serious-help-zerifjs-file-throwing-a-javascript-error/#post-6006339)
 * Not sure if this helps but the error for me is with the show/hide reCaptcha section
   of the JS.
 *     ```
       if ( thisOpen == false && jQuery('.contact-form textarea').val().length > 0 ) {
          thisOpen = true;
          jQuery('.g-recaptcha').css('display','block').delay(1000).css('opacity','1');
         }
       ```
   
 * console says Uncaught TypeError: Cannot read property ‘length’ of undefined but
   yet in the part above this it uses a similar statement.
 *  [WPShout](https://wordpress.org/support/users/codeinwp/)
 * (@codeinwp)
 * [11 years ago](https://wordpress.org/support/topic/a-serious-help-zerifjs-file-throwing-a-javascript-error/#post-6006347)
 * Hi,
 * This is the fix:
 *     ```
       if ( thisOpen == false && (typeof jQuery('.contact-form textarea').val() != 'undefined') && (jQuery('.contact-form textarea').val().length > 0) ) {
           thisOpen = true;
           jQuery('.g-recaptcha').css('display','block').delay(1000).css('opacity','1');
         }
       ```
   
 * Thank you,
    Rodica

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

The topic ‘A serious help || "zerif.js" file throwing a JavaScript error’ is closed
to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/zerif-lite/1.8.5.49/screenshot.
   png)
 * Zerif Lite
 * [Support Threads](https://wordpress.org/support/theme/zerif-lite/)
 * [Active Topics](https://wordpress.org/support/theme/zerif-lite/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/zerif-lite/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/zerif-lite/reviews/)

 * 4 replies
 * 4 participants
 * Last reply from: [WPShout](https://wordpress.org/support/users/codeinwp/)
 * Last activity: [11 years ago](https://wordpress.org/support/topic/a-serious-help-zerifjs-file-throwing-a-javascript-error/#post-6006347)
 * Status: resolved