Title: Plugin Update broke Dynamic Render
Last modified: February 4, 2025

---

# Plugin Update broke Dynamic Render

 *  Resolved [stlcodescape](https://wordpress.org/support/users/stlcodescape/)
 * (@stlcodescape)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/plugin-update-broke-dynamic-render/)
 * After updating to the newest version from 0.9.0.9 to 0.9.1 my dynamic render 
   box broke. 
   This is my error -> [https://artdecocollection.com/wp-content/uploads/2025/02/Screenshot-2025-02-04-at-1.16.04-PM.png](https://artdecocollection.com/wp-content/uploads/2025/02/Screenshot-2025-02-04-at-1.16.04-PM.png)
   I tried some of the fixes i found on this forum but they didn’t work. Like this
   the acf_update_loop(‘active’, ‘i’, 0);This is my configuration [https://artdecocollection.com/wp-content/uploads/2025/02/Screenshot-2025-02-04-at-1.39.29-PM.png](https://artdecocollection.com/wp-content/uploads/2025/02/Screenshot-2025-02-04-at-1.39.29-PM.png)
   Like I said … it WAS working and now it’s not. What can I do?

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

 *  Plugin Author [Konrad Chmielewski](https://wordpress.org/support/users/hwk-fr/)
 * (@hwk-fr)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/plugin-update-broke-dynamic-render/#post-18285102)
 * Hello,
 * Thanks for the feedback!
 * This issue may happen if you edit the `$field` or `$layout` variables inside 
   your layouts templates.
 * Few variables are set as `global` within the Flexible Content so they are available
   in Layouts PHP Templates: `$layout`, `$field` and `$is_preview`.
 * Since these variables are global, it means that if you edit them, the changes
   will propagate to the rest of the code. Looking at your error report, this is
   probably what happen as the `$layout` array has been modified and becomes `default`
   in your case, here:
 *     ```wp-block-code
       _acfe_flexible_render_layout_template_after(Array, 'default', false)                                                        ^                                          $layout here should be an array
       ```
   
 * While it looks like is new a new issue, it was in fact already present in the
   previous 0.9.0.9 version. The `$layout` array is used by the following hooks 
   and their variations ([see documentation](https://www.acf-extended.com/features/fields/flexible-content/dynamic-render#before-layout-render)):
 *     ```wp-block-code
       action('acfe/flexible/render/before_template', $field, $layout, $is_preview);action('acfe/flexible/render/after_template',  $field, $layout, $is_preview);
       ```
   
 * In the previous version, if you didn’t use these hooks you probably didn’t notice
   the `$layout` became `default`, so it was imperceivable. But in the latest 0.9.1
   patch, these hooks are now used internally by ACF Extended itself to perform 
   additional operations, and it requires to have the correct `$layout` array. This
   is why it nows throws an error.
 * I would recommend to check your layouts PHP templates, and make sure you don’t
   change the `$field` or `$layout` variables.
 * If you need to, please use another variable name, like `$layout_name` for example,
   to make sure `$layout` is intact.
 * Note: Please don’t use any other quickfix you found such as `acf_update_loop()`,
   these won’t fix anything and potentially break stuff. Simply update your code
   with the information I provided above.
 * Hope it helps!
 * Have a nice day!
 * Regards.
 *  Thread Starter [stlcodescape](https://wordpress.org/support/users/stlcodescape/)
 * (@stlcodescape)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/plugin-update-broke-dynamic-render/#post-18299410)
 * [@hwk-fr](https://wordpress.org/support/users/hwk-fr/) Thanks a MILLION. You 
   saved me!
 *  Plugin Author [Konrad Chmielewski](https://wordpress.org/support/users/hwk-fr/)
 * (@hwk-fr)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/plugin-update-broke-dynamic-render/#post-18320311)
 * Hello,
 * I’m glad to hear it now works as expected!
 * Have a nice day!
 * Regards.

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

The topic ‘Plugin Update broke Dynamic Render’ is closed to new replies.

 * ![](https://ps.w.org/acf-extended/assets/icon-256x256.png?rev=2071550)
 * [Advanced Custom Fields: Extended](https://wordpress.org/plugins/acf-extended/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/acf-extended/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/acf-extended/)
 * [Active Topics](https://wordpress.org/support/plugin/acf-extended/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/acf-extended/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/acf-extended/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Konrad Chmielewski](https://wordpress.org/support/users/hwk-fr/)
 * Last activity: [1 year, 1 month ago](https://wordpress.org/support/topic/plugin-update-broke-dynamic-render/#post-18320311)
 * Status: resolved