• Resolved nlukic

    (@nlukic)


    after 0.9.0.1 update I got warning on form render page for each included acf form field: Warning: Undefined array key “instruction_placement” in ..plugins\acf-extended\includes\template-tags.php?on line?329. php 8.0.3

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Konrad Chmielewski

    (@hwk-fr)

    Hello,

    Thanks for the feedback!

    Good catch! I’m adding a fix for the next patch. In the meantime, you can add the following code in your functions.php file to fix the issue:

    // ACFE: fix deprecated 'instruction_placement' when using custom render
    add_filter('acfe/form/load_form', 'acfe_form_fix_instruction');
    function acfe_form_fix_instruction($form){
        
        $form['settings']['instruction_placement'] = $form['attributes']['fields']['instruction'];
        
        return $form;
        
    }

    I’ll let you know once the patch is up, so you can remove the code.

    Thanks again for the report, and sorry for the inconvenience.

    Regards.

    Plugin Author Konrad Chmielewski

    (@hwk-fr)

    Hello,

    Just a heads up to let you know the latest 0.9.0.2 patch fixed this issue. Please update your version, and then you can remove the hotfix code I provided.

    Thanks!

    Have a nice day!

    Regards.

    Thread Starter nlukic

    (@nlukic)

    Thank you Konrad for quick respond, no warning anymore.

    Best

    Plugin Author Konrad Chmielewski

    (@hwk-fr)

    Awesome!

    Thanks again for the report!

    Have a nice day!

    Regards.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Undefined array key “instruction_placement”’ is closed to new replies.