• Resolved pietervdb

    (@pietervdb)


    Hi,

    I have set up the Pirate Forms contact V2.4.3 form on a simple wordpress website.
    The testing from the back end works (receive confirmation email, and I get the email itself from the form when testing from back end).
    However, when I try to use the front end form, emails do not go through, and i get an error:

    “Warning: Invalid argument supplied for foreach() in /customers/8/4/0/treeworld.be/httpd.www/wp-content/plugins/pirate-forms/public/partials/pirateforms-form.php on line 51 ”

    I looked into the code of the pirateforms-form.php, at line 51 and tried to figure out. Did not find the issue.

    I then rolled back to Pirate forms V2.4.2 and all worked immediately

    Any ideas on how to solve this?

    – Browser: both Chrome and Microsoft Edge, up to date
    – OS: Windows 10
    – Server: One.com
    – Using PHP function, same issue with SMTP
    – WordPress version 4.9.6
    – Pirate forms V2.4.3 and V2.4.2

    Best,
    Pieter

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Laurentiu Stefan

    (@laurentiu1themeisle)

    Hey there! @pietervdb

    Thanks for contacting us regarding your problem!
    I have just tested the Pirate Forms and all seems right. However, I will open a ticket on GitHub to investigate your issue. I need just one more information from you. What version of PHP are you using?

    Let us know how it goes!
    Best regards,
    Laurentiu!

    Thread Starter pietervdb

    (@pietervdb)

    Hi Laurentiu,

    I am on PHP 5.6 apparently.
    Did you test it from the website? It is working now because I rolled it back to the older version of the form, and left it.

    Do i need to update PHP?

    Best,
    Pieter

    Hi,

    I think this issue could be related to reCAPTCHA.
    I have to re-enter my site and secret key and ensure the domain was registered in order to get the captcha to show up, and for emails to send.
    Also, if the wrong captcha was entered/the captcha wasn’t filled out, I got the same error message.

    Best,
    Jack

    Same issue here. reCAPTCHA not filled returns the same error. Previosly on php 5.4, now on php 7.2 -> The error remained.
    The solution for me was to roll back to V2.4.2 as pietervdb suggested.

    Hi,

    i have the same problem i get this error when sending from website:
    Warning: Invalid argument supplied for foreach() in /home/dfegsfrr/public_html/wp-content/plugins/pirate-forms/public/partials/pirateforms-form.php on line 51

    testing from admin is working, any solution?

    I’ve had the same problem, just rolled back to 2.4.2

    PHP Warning: Invalid argument supplied for foreach() in /home/blah.../plugins/pirate-forms/public/partials/pirateforms-form.php on line 51

    Using PHP 5.4

    This invalid argument supplied for foreach() in …/plugins/pirate-forms/public/partials/pirateforms-form.php on line 51 is still occuring in version 2.44 of the plugin with PHP 7.1

    Appears to occur each time a spammer tries to submit the form without completing the custom spam trap checkbox in the form

    Hi all,

    We are looking into this issue. Thank you all for providing the details and we were able to replicate the warning.

    We have reported it to the developers. We’ll fix it and provide in the next version.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Invalid Argument supplied- In Version 2.4.3’ is closed to new replies.