I am using the CRED user form to update custom user fields and my users are experiencing an intermittent error while submitting the form.
Most users are able to submit the form but some users receive an error message with no explanation of where the error is -
'The user was not saved because of the following problem:'
I am unable to replicate the issue on my end. What is the best way to approach this and troubleshoot the issue?
2. Get in touch with the user who reported this and request some details about the steps he/she followed to update the user profile. Also, confirm if this is happening in any particular device, operating system, or web browser only.
3. Login using that same user's account details and try to follow the same steps and see if any error or warning is shown in the server's error logs or in the browser's console.
I hope this helps and please let me know how it goes.
1. This is the error log -
[16-Jul-2021 08:33:41 UTC] PHP Warning: in_array() expects parameter 2 to be array, null given in /home/customer/www/showprowess.com/public_html/wp-content/plugins/xyz-wp-insert-code-snippet/shortcode-handler.php(252) : eval()'d code on line 8
[16-Jul-2021 08:37:11 UTC] PHP Warning: A non-numeric value encountered in /home/customer/www/showprowess.com/public_html/wp-content/plugins/xyz-wp-insert-code-snippet/shortcode-handler.php(252) : eval()'d code on line 24
[16-Jul-2021 08:48:28 UTC] PHP Warning: strpos() expects parameter 1 to be string, array given in /home/customer/www/showprowess.com/public_html/wp-content/plugins/wp-optimize/minify/class-wp-optimize-minify-fonts.php on line 203
It does not seem to relate to toolset.
2. It has happened twice where one user was using Safari on Apple and another way using Chrome on a laptop.
3. I tried step 3 and the issue does not occur when I logging in with their account on trying the same thing.
There are two other plugins produced PHP errors:
- xyz-wp-insert-code-snippet
- wp-optimize
Please try to deactivate them, and test again, if the problem is fixed, then you will need to check it with plugin authors of them.