• Resolved nlukic

    (@nlukic)


    Hi Konrad, it’s not a stopper, everything works, just heads up.
    I’m using acfe form and have included acf repeater field, repeating file input field.

    The form is processed by hook, and email is sent properly, but after got a warnings:
    Undefined array key “attachments” in …/plugins/acf-extended/includes/modules/form/module-form-action-email.php on line 133
    foreach() argument must be of type array|object, null given in …/plugins/acf-extended/includes/modules/form/module-form-action-email.php on line 136

    Best

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

    (@hwk-fr)

    Hello,

    Thanks for the feedback!

    Hmm, this is strange. You cannot map a Repeater field in the “Email Action > Attachments”, so I guess you use the acfe/form/submit_email_args hook to inject your Repeater Files?

    It looks like you deleted the $args['attachments'] and $args['delete_files'], that’s why these warnings pop out. Can you please post the code you use?

    Thanks!

    Regards.

    Thread Starter nlukic

    (@nlukic)

    Omg, sorry Konrad for spamming you. Yes , i’m using submit_email_args hook and it’s fixed now with no warnings. Thank you for pointing me to the right direction. My bad.

    Thanks

    Plugin Author Konrad Chmielewski

    (@hwk-fr)

    Hello,

    No problem, it happens! I’m glad to hear it now works as expected.

    I added a safe guard logic in the next patch, in case these arguments are removed within filters, to avoid these warnings. Just in case.

    Have a nice day!

    Regards.

    Thread Starter nlukic

    (@nlukic)

    cool. Have a nice day too.

    Best

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