Knowledgebase
At times a Weblutions product may have a user related error generate when a login or registration is attempted. Specifically, the setting user type error. This page will explain the error and provide a solution that often corrects the error if ongoing.
TypeError: Cannot set properties of undefined (setting 'user')This error may occur when there's a backend error setting the users session data after they've attempted to complete a login. This error comes from the passport package and is a more rare error. However, can be less conventional to fix.
Ensure the application/product is not actively running
Open your servers command prompt/terminal
Delete the node_modules folder from the products install location with the below command (eg; /home/faxstore)
Always be careful when using the rm command as deleted data is not recoverable.
rm -r /home/faxstore/node_modulesDelete the package-lock.json from the install directory as well
rm /home/faxstore/package-lock.jsonInstall the node packages again
cd /home/faxstore && npm installStart the product and see if the issue is corrected

If the error is ongoing, also try deleting browser cookies for the website as this could be a contributing factor.