Title: Having Javascript Errors with Plugin- Causing site not to load
Last modified: September 1, 2016

---

# Having Javascript Errors with Plugin- Causing site not to load

 *  Resolved [AtYourServiceVA](https://wordpress.org/support/users/atyourserviceva/)
 * (@atyourserviceva)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/having-javascript-errors-with-plugin-causing-site-not-to-load/)
 * We are having some major issues with the stability of the plugin. We have narrowed
   down the problem to the plugin. It is giving us a Java error. The page that we
   are using it on wont load in Chrome or EI seems to load in Safari but we get 
   an error that pops up for a java error.
 * Here is the URL we are running the form on [http://www.beyondbrand.eu/roi-calculator/](http://www.beyondbrand.eu/roi-calculator/)
 * How can we fix this?
 * [https://wordpress.org/plugins/calculated-fields-form/](https://wordpress.org/plugins/calculated-fields-form/)

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

 *  Plugin Author [codepeople](https://wordpress.org/support/users/codepeople/)
 * (@codepeople)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/having-javascript-errors-with-plugin-causing-site-not-to-load/#post-7698895)
 * Hi,
 * The issue is simple, you have created an infinite loop in at least one equation,
   for example, the equation associated to the fieldname137 (Lost Days-{O3}) is:
 * `fieldname137*0.26`
 * You cannot use in the equation the same field that is being calculated, because
   the action generate an infinite loop.
 * An infinite loop can be generated indirectly, for example if the field A uses
   the field B in its equation, and the field B uses the field A, or any other combination
   that closes the loop.
 * Best regards.
 *  Thread Starter [AtYourServiceVA](https://wordpress.org/support/users/atyourserviceva/)
 * (@atyourserviceva)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/having-javascript-errors-with-plugin-causing-site-not-to-load/#post-7698963)
 * Thank you I will take a look at that. Also is there a way to allow the user to
   pick what currency they want to calculate in? This is an ROI calculator but would
   like the user to be able to choose between pounds and usd.
 *  Plugin Author [codepeople](https://wordpress.org/support/users/codepeople/)
 * (@codepeople)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/having-javascript-errors-with-plugin-causing-site-not-to-load/#post-7698991)
 * Hi,
 * In this case you should make the calculation with the currency selected by the
   users (of course, you should take into account the exchange rates in the project),
   but in the current version of the plugin if the form is associated to PayPal,
   the currency to send to PayPal will be always the entered into the form’s settings.
 * Best regards.

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

The topic ‘Having Javascript Errors with Plugin- Causing site not to load’ is closed
to new replies.

 * ![](https://ps.w.org/calculated-fields-form/assets/icon-256x256.jpg?rev=1734377)
 * [Calculated Fields Form](https://wordpress.org/plugins/calculated-fields-form/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/calculated-fields-form/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/calculated-fields-form/)
 * [Active Topics](https://wordpress.org/support/plugin/calculated-fields-form/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/calculated-fields-form/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/calculated-fields-form/reviews/)

## Tags

 * [Java script error](https://wordpress.org/support/topic-tag/java-script-error/)
 * [page not loading](https://wordpress.org/support/topic-tag/page-not-loading/)

 * 3 replies
 * 2 participants
 * Last reply from: [codepeople](https://wordpress.org/support/users/codepeople/)
 * Last activity: [9 years, 7 months ago](https://wordpress.org/support/topic/having-javascript-errors-with-plugin-causing-site-not-to-load/#post-7698991)
 * Status: resolved