• Resolved chrisdias96

    (@chrisdias96)


    Hi there,

    My calculator after an update now suffers from an infinite loop bug after an update. Nothing was changed and was working fine before. Not sure how to scope out the issue. Don’t see anything apparently wrong from my end.

    Thanks for help.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author codepeople

    (@codepeople)

    Hello @chrisdias96

    The issue was not caused by a plugin update.

    You have an edless loop in your form.

    I’ll try to describe first how the plugin works.

    When the dynamic evaluation of the equations is enabled, each time the user edits a field’s 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 varies its value.

    So, if a field is used in its equation, it generates an endless loop. Each time the equation is evaluated, it modifies the field’s value launching the equation in an endless loop.

    The same 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.

    You can check if there is an endless loop in your form disabling the dynamic evaluation of the equations. Please, try unticking the “Dynamically evaluate the equations associated with the calculated fields” checkbox in the “Form Settings” tab (https://resources.developers4web.com/cff/images/documentation/form-settings-tab.png)

    Your form includes 32 calculated fields, but it evaluates 536 equations. So, there is an endless loop in your form structure.

    For example, in your form, the equation of the fieldname38 field uses the fieldname85, and the equation in the fieldname85 uses the fiedname38 field.

    Best regards.

Viewing 1 replies (of 1 total)
  • The topic ‘Page stuck infinite loop after update’ is closed to new replies.