Title: Uncaught RangeError: Maximum call stack size exceeded
Last modified: September 22, 2022

---

# Uncaught RangeError: Maximum call stack size exceeded

 *  Resolved [Rémon](https://wordpress.org/support/users/remonmegelink/)
 * (@remonmegelink)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/uncaught-rangeerror-maximum-call-stack-size-exceeded-8/)
 * Hi, on my website: [Bakkerij Rémon Calculator Bread Formulas](https://bakkerijremon.nl/recept-schalen-obv-formule/),
   I have a problem with a calculatorform I build, I’m not sure how to specify the
   problem.
 * My Chrome Console says: Uncaught RangeError: Maximum call stack size exceeded
 * I’m not quite sure how to fix this. Enabled troubleshooting with only CFF enabled,
   but this didn’t fix the error. Don’t really know how where to go from here, also
   not sure when the error first happened.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Funcaught-rangeerror-maximum-call-stack-size-exceeded-8%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [codepeople](https://wordpress.org/support/users/codepeople/)
 * (@codepeople)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/uncaught-rangeerror-maximum-call-stack-size-exceeded-8/#post-16035469)
 * Hello [@remonmegelink](https://wordpress.org/support/users/remonmegelink/),
 * Thank you very much for using our plugin.
 * If your browser displays the error message “Uncaught RangeError: Maximum call
   stack size exceeded”, it means that you have generated some endless loop.
 * I’ll try to describe first how the plugin works.
 * Each time the user enter a value, the plugin checks every calculated field in
   the form to identify the equations affected by this value and evaluate them. 
   However, the equations’ evaluation modifies the calculated fields’ values. So,
   the plugin must repeat the process until no field value varies.
 * So, if a field is used in its equation, it generates an endless loop. Each time
   the equation is evaluated, it modifies the field value launching the equation
   in an endless loop.
 * Something similar happens when field A is used in the equation of field B and
   field B in the equation of field A. The chain could be longer.
 * Or with dependencies. For the equations context, the value of a disabled dependent
   field is zero or its original value when the field is active.
 * In your form, the equation in the fieldname143 field uses the fieldname24, and
   the fields fieldname130, fieldname134, and fieldname144 were configured as dependent
   on the equation’s results.
 * However, the equation in the fieldname24 is:
 * fieldname123+fieldname131+fieldname134+fieldname137+fieldname205+fieldname208
   +fieldname172+fieldname175+fieldname178+fieldname185+fieldname188+fieldname191
   +fieldname194+fieldname198+fieldname211+fieldname214+fieldname217+fieldname245
   +fieldname278
 * It uses the fieldname134. So, you created an endless loop between both calculated
   fields.
 * This problem might be present between the fieldname24 field and other calculated
   fields in the form.
 * Best regards.
 *  Thread Starter [Rémon](https://wordpress.org/support/users/remonmegelink/)
 * (@remonmegelink)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/uncaught-rangeerror-maximum-call-stack-size-exceeded-8/#post-16035550)
 * Thanks! I disabled the dependencies for showing fields, so the fields are always
   there, the calculations are working again without looping!

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

The topic ‘Uncaught RangeError: Maximum call stack size exceeded’ 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/)

 * 3 replies
 * 2 participants
 * Last reply from: [Rémon](https://wordpress.org/support/users/remonmegelink/)
 * Last activity: [3 years, 8 months ago](https://wordpress.org/support/topic/uncaught-rangeerror-maximum-call-stack-size-exceeded-8/#post-16035550)
 * Status: resolved