BTW the current versions of User Meta Manager is 3.4.9 and User Meta Manager Pro 2.1.2.
I have the same problem.
Did someone find a solution?
I am using the version 3.4.9.
Thank you!
jcalizaya – I haven’t hear word back yet. We bought the PRO version and I filled out a comment about a week ago asking but haven’t heard anything. I’ll post back if I hear anything.
I think I found the problem, in file user-meta-manager.php, line 2194, there are these lines of code:
// If this is post'd from the Add User screen the value will always be an array.
$f_value = (isset($_REQUEST[$field_name])) ? sprintf("%s", $_REQUEST[$field_name]) : '';
$_val = (is_array($f_value)) ? $f_value[0] : $f_value;
$field_value = htmlspecialchars(trim($_val));
if(!$field_settings['allow_tags']) $field_value = wp_strip_all_tags($field_value);
As you can see there is a function that returns a formated string (stringtf), but just how the comment says, when you add a user the value will be an array.
However, we are making the format first, and after that we are just verifying that the value is or not a string.
I think we have to verify first that the value is or not an array and after that format the value.
(Sorry for my english).
That worked for me. 🙂
Thanks for your update jcalizaya! I’m wondering what you did to change your code then? I see the code you pasted above in the files I have but am not sure what to do to remedy it as you stated you did.
Thank you!!
I just put it in a different order:
// If this is post'd from the Add User screen the value will always be an array.
/* JACP We quit the function sprintf */
$f_value = (isset($_REQUEST[$field_name])) ? $_REQUEST[$field_name] : '';
/* Get the first value of the array, if it is an array*/
$_val = (is_array($f_value)) ? $f_value[0] : $f_value;
$_val = sprintf("%s", $_val); /* We call the function that formats the string here */
$field_value = htmlspecialchars(trim($_val));
if(!$field_settings['allow_tags']) $field_value = wp_strip_all_tags($field_value);
This will be the piece of code that replaces the other.
First, I get the value, after that I verify if it is an array and then call the function sprintf that formats the string.
Hope it works for you.
Thank you so much jcalizaya! That did the trick for me as well! I really appreciate your help in getting this fixed. Hopefully your adjustment will make it into the update!
Thank you so much ….. the solution you found I solved a huge problem!