Support

Account

Home Forums ACF PRO Update value function causes timeout Reply To: Update value function causes timeout

  • Infinite loops are extremely hard to debug, especially in WP with its hooks. Hooks interact with each other.

    The best advice I can give you is to disable all the actions and filters you have added in your theme and then enable them one at a time until you find the one that causes the infinite loop. The next step is to disable all the actions and filters except that one and see if the infinite loop still happens. If not then start enabling them again until you locate the two that are causing it. You continue this process until you know all of the filters and actions that need to active to cause the infinite loop and then you start following the flow of code to figure out where the hooks are looping back on themselves.

    This process can take hours, if not days, to locate the cause.