Title: Javascript error
Last modified: August 22, 2016

---

# Javascript error

 *  Resolved [shrederella](https://wordpress.org/support/users/shrederella/)
 * (@shrederella)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/javascript-error-72/)
 * Hi I contacted my theme developer to discuss problems I am having with the visuals
   on my recipe pages. I have a problem with the featured image loading and showing
   up on my recipe page [http://shrederella.com/avocado-banana-chocolate-pudding/](http://shrederella.com/avocado-banana-chocolate-pudding/)
 * The developer said there is some code from one of my plugins causing the problem.
   He’s not sure which plugin is doing this, but he believes its the visual recipe
   index. [Here](http://shrederella.com/wp-content/uploads/2015/02/easyrecipe-loading-problems.png)
   is a link to the conversation I had with my theme’s developer. Can you see if
   your plugin is causing the problem? Thank you.
 * [https://wordpress.org/plugins/visual-recipe-index/](https://wordpress.org/plugins/visual-recipe-index/)

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

 *  Plugin Author [Kremental](https://wordpress.org/support/users/seestheday/)
 * (@seestheday)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/javascript-error-72/#post-5760868)
 * Hi,
    I checked your page, and I’m not sure why setting a javascript variable 
   to null to would cause any issues loading an image.
 * Have you tried your theme developers suggestion of disabling the plugin to see
   if it fixes the error?
 *  [Jayce53](https://wordpress.org/support/users/jayce53/)
 * (@jayce53)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/javascript-error-72/#post-5760933)
 * The problem is that you are calling ri_init_js() as a _wp\_print\_footer\_scripts_
   action to set the value of the javascript variable _paginateVal_ to the global
   PHP variable _$paginateVal_. However it seems that on pages that don’t include
   your shortcode, _$paginateVal_ does not get set and hence the javascript assignment
   generates a javscript error
 *  Thread Starter [shrederella](https://wordpress.org/support/users/shrederella/)
 * (@shrederella)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/javascript-error-72/#post-5760934)
 * I am finally able to get my images loading, but I am still unable to open up 
   the wordpress visual editor to add content to posts. Please see Joyce53 comment
   above.
 *  Thread Starter [shrederella](https://wordpress.org/support/users/shrederella/)
 * (@shrederella)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/javascript-error-72/#post-5760937)
 * The javascript error is caused by the Visual Recipe Index plugin. Specifically,
   the code that’s in error is
 * <script type=”text/javascript”>paginateVal = ;</script>
 * and that is being output at lines 159 – 161 of RecipeIndexView.php of that plugin.
 *  Plugin Author [Kremental](https://wordpress.org/support/users/seestheday/)
 * (@seestheday)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/javascript-error-72/#post-5761069)
 * I’m not sure why this hasn’t caused any issues for anyone else but I’ll make 
   a patch for this anyways. I’ll see if I can get this published this week.
 *  Plugin Author [Kremental](https://wordpress.org/support/users/seestheday/)
 * (@seestheday)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/javascript-error-72/#post-5761107)
 * I’ve fixed the javascript error with the latest release, can you please download
   and check it?
 *  Plugin Author [Kremental](https://wordpress.org/support/users/seestheday/)
 * (@seestheday)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/javascript-error-72/#post-5761139)
 * Closing due to non-response.
 * Please let me know if this is still an issue for anyone with the latest version
   of the plugin and I’ll re-open the issue.

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

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

 * ![](https://s.w.org/plugins/geopattern-icon/visual-recipe-index.svg)
 * [Visual Recipe Index](https://wordpress.org/plugins/visual-recipe-index/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/visual-recipe-index/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/visual-recipe-index/)
 * [Active Topics](https://wordpress.org/support/plugin/visual-recipe-index/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/visual-recipe-index/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/visual-recipe-index/reviews/)

## Tags

 * [javascript error](https://wordpress.org/support/topic-tag/javascript-error/)
 * [syntax error](https://wordpress.org/support/topic-tag/syntax-error/)

 * 7 replies
 * 3 participants
 * Last reply from: [Kremental](https://wordpress.org/support/users/seestheday/)
 * Last activity: [11 years, 1 month ago](https://wordpress.org/support/topic/javascript-error-72/#post-5761139)
 * Status: resolved