CalderaWP / Caldera-Forms

Drag and drop, responsive WordPress form builder.
https://CalderaForms.com
GNU General Public License v2.0
187 stars 163 forks source link

Files not getting attached in File Fields v2.0 when using with Caldera Forms Pro #2942

Closed swapnilmanjrekar closed 5 years ago

swapnilmanjrekar commented 5 years ago

Do You Need Immediate Help?

Is This A Feature Request?

What Version Of Caldera Forms, WordPress and PHP Are You Using?

Does Your Issue Persist When You Disable All Other Plugins and Switch To The Default Theme?

What Is The Unexpected Behaviour?

What PHP Errors Have You Logged While Reproducing This Bug?

What JavaScript Errors Have You Seen While Reproducing This Bug?

Shelob9 commented 5 years ago

@swapnilmanjrekar Thank you for the report -

When I checked the console of my browser it gave me the following error: "caldera-forms-front.min.js?ver=1.8.0-beta.1:1 Uncaught TypeError: Cannot read property 'data' of undefined”

This would indicate that the returned HTTP response was malformed. Can you please test again with the network inspector open and show us what the results for uploading file and submitting form are?

the form is not getting submitted and also I didn't receive an email in my MailHog mailbox.

When testing with CF Pro, you should NOT expect for MailHog to have a record of the email. If you have CF Pro and the email shows up in MailHog, that would be a bug. The email will be sent via CF Pro, send it to your work email to test.

swapnilmanjrekar commented 5 years ago

@Shelob9 Removing MailHog from the lando.yml file of my local WordPress site solved this issue but my emails are not working. So I am opening an issue for it. https://github.com/CalderaWP/Caldera-Forms/issues/2943

Shelob9 commented 5 years ago

@swapnilmanjrekar what is the difference between this issue and #2942 ?

Removing MailHog from the lando.yml file of my local WordPress site solved this issue What issue did this solve?

I would recommend leaving mailhog in your lando.yml config BTW. You need that for testing emails without CF Pro and having it installed as no effect on CF Pro functionality.

swapnilmanjrekar commented 5 years ago

@Shelob9 Files were not getting attached in File Fields v2.0 when using with Caldera Forms Pro for this issue and after removing MailHog from the lando.yml file, the file was getting uploaded, the form was getting successfully submitted and the attached file was also uploaded to media library but I was not receiving info for my submitted form. So I opened a separate Issue for it as #2943