Home › Forums › Add-ons › Flexible Content Field › Latest version: critical endless loop crashes sites › Reply To: Latest version: critical endless loop crashes sites
Hi @Intervik
Thanks again for all your great help with fixing this bug. I just wanted to let you know I have tracked the bug to a conditional statement in the have_rows function.
Basically, the logic got confused due to multiple posts and multiple repeater levels!
Good news is the fix was very simple and you can find it on github!
If you wish to apply the fix manually, please edit the ‘core/api.php’ file on line 405 and change:
from
if( $prev && $prev['name'] == $field_name )
to
if( $prev && $prev['name'] == $field_name && $prev['post_id'] == $post_id )
Thanks again!
Cheers
E
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.