User Locations 500 Error on “Edit Profile”
-
I’m really not sure what is going on with this plugin, it’s $50 but seems to have some serious problems.
In short, when registering on the site, the user is required to fill out their “Location”. This uses the User Location field which is provided after adding the User Locations plugin.However, if a user then wants to edit their profile, the location seems to get defaulted to the middle of nowhere (or the location defined in the default settings for the addon)… meaning that the location the user entered is discarded. Very annoying, but especially painful, as saving the form (without updating the location) results in a 500 error:
?um_action=edit 500 (Internal Server Error)
The following error is recorded in the log:In the web server logs, it's: [Sun Nov 12 21:08:13.753170 2023] [proxy_fcgi:error] [pid 3357041:tid 139841752774208] [client 2a02:2f0e:913:a300:6106:a252:33a1:e8bd:0] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function um\\core\\Fields::field_error(), 1 passed in /home/userfolder/domains/example.com/public_html/wp-content/plugins/um-user-locations/includes/core/class-fields.php on line 598 and at least 2 expected in /home/userfolder/domains/example.com/public_html/wp-content/plugins/ultimate-member/includes/core/class-fields.php:535\nStack trace:\n#0 /home/userfolder/domains/example.com/public_html/wp-content/plugins/um-user-locations/includes/core/class-fields.php(598): um\\core\\Fields->field_error()\n#1 /home/userfolder/domains/example.com/public_html/wp-includes/class-wp-hook.php(324): um_ext\\um_user_locations\\core\\Fields->location_field_html()\n#2 /home/userfolder/domains/example.com/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters()\n#3 /home/userfolder/domains/example.com/public_html/wp-content/plugins/ultimate-member/includes/core/class-fields.php(2366): apply_filters()\n#4 /home/userfolder/domains/...', referer: https://example.com/user/~26f35e3699caa0db6a/?um_action=edit
It’s VERY annoying, and basically renders the plugin unusable. Is there something going on here that is being done wrong by me?.. or is this just a poorly coded addon?
The only way to avoid this error, is for the user to update the “Location” field every single time they edit their profile. Really not okay.
- The topic ‘User Locations 500 Error on “Edit Profile”’ is closed to new replies.