What strange. Could you send me the CSV file which is creating the problem to carazo AT codection DOT com?
Thread Starter
gmsb
(@gmsb)
Sorry I don’t think I explained the issue well in my original post.
The problem occurs when I login using one of the test accounts, and go to update the password on the profile. When I submit the profile update form I receive a warning that was caused by $_POST[‘Zip’]; It is trying to update_user_meta with an empty form field which is throwing the error.
Also on a side note, to conform to modern standards you really shouldn’t be using $_POST or $_GET variables from the client side directly, they should be filtered and validated using php’s filter_input functionality, or WordPress’ built in functions.
Thanks for your help, inline:
The problem occurs when I login using one of the test accounts, and go to update the password on the profile. When I submit the profile update form I receive a warning that was caused by $_POST[‘Zip’]; It is trying to update_user_meta with an empty form field which is throwing the error.
I have solved the bug.
Also on a side note, to conform to modern standards you really shouldn’t be using $_POST or $_GET variables from the client side directly, they should be filtered and validated using php’s filter_input functionality, or WordPress’ built in functions.
Thanks also for this note, I have changed the code to adapt to modern standards.
A new version is prepared and it has just been updated, so you will receive the plugin updated in your WordPress soon.
Thread Starter
gmsb
(@gmsb)
Thank you for the incredibly fast support! (It’s very rare!)
We work with WordPress daily in Codection and we try to give the best support to our clients.
Also, if you report us a bug of a plugin, we try to solve it soon.