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

Mail issue #2430

Open almathisen opened 6 years ago

almathisen commented 6 years ago

I have some issue after the last update with "preview last mail".

Error i get is PHP Warning: Invalid argument supplied for foreach() in /new/wp-content/plugins/caldera-forms/classes/email/previews.php on line 76 I have the latest worpress version and PHP 5.6.15

swapnilmanjrekar commented 5 years ago

I tried the following steps to check this bug. I installed WordPress locally using Lando on my desktop. I created a test site locally. I used contact template form from CF available form templates and created a form.

Then in the CF plugin on my WordPress site dashboard, in CF section I opened Contact form in edit mode and in the email section of form I checked the save preview checkbox and saved the form. I Loaded the form and entered information in all fields of Contact Us form and submitted it. When I clicked the preview email of my form setting, I didn't get any preview info.

So I checked the console of my browser for any javascript errors and it didn't show any javascript errors but when I checked the debug.log file of my test site root directory it showed me the PHP error as follow:

PHP Warning: Invalid argument supplied for foreach() in /app/wp-content/plugins/caldera-forms/classes/email/previews.php on line 76

So According to my findings, this is a bug as reported by the user and it needs to be solved.

WordPress Version: 4.9.8 PHP Version: 7.1.22 MySQL Version: 5.7.23 Caldera Forms Version: 1.7.4 WP_DEBUG: 1

Shelob9 commented 5 years ago

So According to my findings, this is a bug as reported by the user and it needs to be solved.

I agree.

New0 commented 5 years ago

@swapnilmanjrekar Thnak you for you test, I wasn't able to reproduce this issue, could you attach the form used to test please ?