• ResolvedPlugin Contributor altworks

    (@altworks)


    I’ve had the filter for table input working well for a while, but ran another test today and all the table data was rendered as Array in the email.

    I’m not sure what changed. I’ve update my theme today (I use a child though) and I installed the Contact Form 7 Redirection plugin, but it still happens with that disabled.

    In debug I found 9 lines (I have 9 fields) each of…

    [17-Jan-2019 06:51:23 UTC] PHP Notice:  Array to string conversion in **/wp-content/themes/**/functions.php on line 104
    [17-Jan-2019 06:51:23 UTC] PHP Notice:  Undefined offset: 1 in **/wp-content/plugins/cf7-grid-layout/public/class-cf7-grid-layout-public.php on line 697

    * line 104 in my functions.php being line 78 of cf7-grid-layout/admin/partials/helpers/cf7sg-post-form-submit.php

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Aurovrata Venet

    (@aurovrata)

    line 104 in my functions.php being line 78 of cf7-grid-layout/admin/partials/helpers/cf7sg-post-form-submit.php

    the helper is meant to be just that, a helper code and not a solution. The helper code is assuming single value fields, but your fields are array values.

    If your fields are arrays in themselves (e.g. checboxes, multiselect dropdowns), then you need to further format them to get the individual values printed in your mail body.

    Plugin Contributor altworks

    (@altworks)

    Thanks for the quick reply.

    Yeah I understand, I was just trying to provide as much detail around my problem as I could.
    I’ve had it working well for 7 days before this happened. I’ve made no changes to the filter or the form.

    Plugin Contributor altworks

    (@altworks)

    Looks like the latest updates from the Astra theme are to blame. Still no idea why though.

    Plugin Author Aurovrata Venet

    (@aurovrata)

    that’s odd, I would be surprised that the theme affects submitted data. Are yuo not able to debug your submitted data by printing it to a log file and adjusting your html mail tag structure to display the data properly?

    Plugin Contributor altworks

    (@altworks)

    This has been resolved by with the latest Astra theme updates. You can close this.

    Plugin Author Aurovrata Venet

    (@aurovrata)

    great!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘‘Array’ in mail tags for table row fields’ is closed to new replies.