I am using the Joomla User form plugin to create a user and log them in when someone completes a form. This works great unless they do not pass the validation in which case I get this error after the page reloads:
My user element is hidden and I can see that the value is 0 when being submitted so I don't know why this returns 1. I have done a quick fix by changing the following line to this:
But this feels like a workaround. I updated from GitHub yesterday, any ideas?...
In juser.php at around line 210, for some reason this returns 1:JUser: :_load: Unable to load user with ID: 1
Code:
$userid = (int) JArrayHelper::getValue($formModel->_data, $this->useridfield . '_raw');
My user element is hidden and I can see that the value is 0 when being submitted so I don't know why this returns 1. I have done a quick fix by changing the following line to this:
Code:
if ($userid > 1)
But this feels like a workaround. I updated from GitHub yesterday, any ideas?...