Tips and Tricks HQ Support Portal › Forums › WP eMember › WP eMember Troubleshooting › eMember Form Builder profile creates meta_value error on empty text fields
- This topic has 2 replies, 2 voices, and was last updated 6 years ago by
admin.
-
AuthorPosts
-
March 29, 2020 at 8:31 pm #14792
adminwvgs
SpectatorUsing Form Builder, I created a Profile form for a Member’s profile. There are text fields in the profile. If an Admin edits the Member’s data using this Profile form, everything works. If the Member himself edits his/her profile and leaves any of the text fields blank, the meta table (meta_value) field get corrupted. Instead of an empty text field having a meta value of “name-of-text-field”;s:0:””; it instead gets “name-of-text-field”;N;
This is a serious error and I cannot allow members to edit their profiles until it is resolved. This showed up after I updated emember-form-builder and emember on March 25th.
The profile page on the front end now displays a warning:
Warning: A non-numeric value encountered in /home2/cec2newinfo/public_html/wp-content/plugins/emember-form-builder/visual-form-builder.php on line 2089
Here is a sample of the meta_value that is in error:
a:10:{s:34:”another-way-i-can-help-the-society”;N;s:34:”another-way-i-can-help-the-library”;N;s:8:”nickname”;N;s:15:”secondary-phone”;N;s:10:”birth-year”;N;s:10:”occupation”;s:20:”Retired – Accounting”;s:5:”badge”;s:8:”12220024″;s:7:”tidbits”;s:5:”Email”;s:4:”type”;s:10:”Individual”;s:7:”tracker”;s:4:”Bulk”;}
March 30, 2020 at 12:32 am #80405adminwvgs
SpectatorUpdate: I also see that any update (admin or member) to a profile puts all text fields in the meta_value even when no text was entered. This did not happen with the Form Builder before I updated. There is no reason to put an empty text field in the meta_value. It should have only form items that have been selected or filled out.
March 30, 2020 at 3:27 am #80406admin
KeymasterThis is not the standard behavior of the addon. I have just tested this myself on my site and it works fine. Something is messed up somewhere on this site.
Did you also update the WP eMember plugin algon with the form builder? Has any other fields been customized it the form recently?
-
AuthorPosts
- You must be logged in to reply to this topic.