Title: Java Script Error
Last modified: August 18, 2020

---

# Java Script Error

 *  [steude](https://wordpress.org/support/users/steude/)
 * (@steude)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/java-script-error-9/)
 * Hi. we found a Javascript error caused by this file of the Fruitful theme:
    [https://die-stadtgestalter.de/wp-content/themes/fruitful/js/init.min.js](https://die-stadtgestalter.de/wp-content/themes/fruitful/js/init.min.js)
 * That error prevents the Masonry layout of the plugin Conten views from working.
 * How to fix this error?
 * The support of Fruitful Code unfortunately does not answer the question.
    -  This topic was modified 5 years, 8 months ago by [steude](https://wordpress.org/support/users/steude/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fjava-script-error-9%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Thread Starter [steude](https://wordpress.org/support/users/steude/)
 * (@steude)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/java-script-error-9/#post-13287536)
 * We have solved the problem ourselves because Fruitful Code was not able to.
 * In the js-script (init.min.js) the live() method is used. This method was removed
   in JQuery version 1.9. live() method has to be replaced by on() method.
 * Bad support by Fruitful Code.
 *  [pozirk](https://wordpress.org/support/users/pozirk/)
 * (@pozirk)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/java-script-error-9/#post-13287950)
 * Thanks for the fix, steude!
    Also the same problem in the following files:
 *     ```
       themes/fruitful/js/init.js - to fix Button menu
       themes/fruitful/inc/js/main.js - to fix Theme Options
       themes/fruitful/inc/js/uploads_.js - to fix Theme Options
       ```
   
    -  This reply was modified 5 years, 8 months ago by [pozirk](https://wordpress.org/support/users/pozirk/).
 *  [pozirk](https://wordpress.org/support/users/pozirk/)
 * (@pozirk)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/java-script-error-9/#post-13582203)
 * Another file to fix admin posting page:
    `themes/fruitful/inc/metabox/js/layout/
   layout.js`
 *  [wpjap](https://wordpress.org/support/users/wpjap/)
 * (@wpjap)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/java-script-error-9/#post-13583292)
 * Here’s where I found the `jQuery(...).live` code:
 *     ```
       themes\fruitful\inc\js\main.js
       themes\fruitful\inc\js\uploads_.js
       themes\fruitful\inc\metaboxes\js\gallery\gallery-init.js
       themes\fruitful\inc\metaboxes\js\layout\layout.js
       themes\fruitful\js\init.js
       themes\fruitful\js\init.min.js
       ```
   
 *  [stevedw](https://wordpress.org/support/users/stevedw/)
 * (@stevedw)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/java-script-error-9/#post-13856468)
 * [@wpjap](https://wordpress.org/support/users/wpjap/). Thanks for posting the 
   fix.
 * In themes\fruitful\js\init.js I couldn’t find any `jQuery(...).live` code.
 * On Line 82 it has this code `$('.resp_full_width_menu button.navbar-toggle').
   live('click', function()`
 * On Line 82 and other lines such as 93, should live be replaced by on or should
   it only be replaced if the line has jQuery in it?
    -  This reply was modified 5 years, 4 months ago by [stevedw](https://wordpress.org/support/users/stevedw/).
    -  This reply was modified 5 years, 4 months ago by [stevedw](https://wordpress.org/support/users/stevedw/).
    -  This reply was modified 5 years, 4 months ago by [stevedw](https://wordpress.org/support/users/stevedw/).
    -  This reply was modified 5 years, 4 months ago by [stevedw](https://wordpress.org/support/users/stevedw/).
    -  This reply was modified 5 years, 4 months ago by [stevedw](https://wordpress.org/support/users/stevedw/).
    -  This reply was modified 5 years, 4 months ago by [stevedw](https://wordpress.org/support/users/stevedw/).
 *  [wpjap](https://wordpress.org/support/users/wpjap/)
 * (@wpjap)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/java-script-error-9/#post-13856916)
 * I have not the slightest idea!
    I am just site admin and this theme is obviously
   abandoned. The sooner you switch to another one, the better. IMHO.

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

The topic ‘Java Script Error’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/fruitful/3.8.2/screenshot.png)
 * Fruitful
 * [Support Threads](https://wordpress.org/support/theme/fruitful/)
 * [Active Topics](https://wordpress.org/support/theme/fruitful/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/fruitful/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/fruitful/reviews/)

## Tags

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

 * 6 replies
 * 4 participants
 * Last reply from: [wpjap](https://wordpress.org/support/users/wpjap/)
 * Last activity: [5 years, 4 months ago](https://wordpress.org/support/topic/java-script-error-9/#post-13856916)
 * Status: not resolved