Hi,
I tried registering as a new user on my site and got the following error:
Fatal error: Call to a member function get() on a non-object in /usr/www/users/xxxxx/xxxxxxxx/components/com_community/controllers/register.php on line 700
NB: I HAVE ADDED MY FTP CREDENTIALS AS REQUESTED
Hi, Dennis.
I just registered on your site without any issues:
prntscr.com/49p3i9
Also successfully activated account and logged in to your system.
What exact steps need I take to replicate this issue?
Please check my newly created account and try to register again with the same settings/values in fields.
Hi Michal,
I still can't create an account, please use the following values and see if you can register from the front end - I still get the same error :-(
Name 'Wawa'
Username 'Wawa D'
E mail 'This email address is being protected from spambots. You need JavaScript enabled to view it.'
Password 'Hello2000'
Gender 'Male'
Birthdate '23 Dec 1974'
About Me 'Me'
City 'Tshwane'
Country 'South Africa'
Screenshot attached.
Hi, Dennis.
I was able to replicate your issue with data you suggested.
Please, edit your first post and add FTP credentials to corresponding fields.
I assign developer to this thread.
Hi Dennis,
I added extra validation. Because I got this warning message:
Please enter a valid username. No spaces, at least 2 characters and must not contain the following characters: < > \ " ' % ; ( ) &
/components/com_community/controllers/register.php line 1037
From
if (!empty($username)) {
if (!CValidateHelper::username($username)) {
$isInvalid = true;
$msg = JText::_('COM_COMMUNITY_IMPROPER_USERNAME');
}
}
To
if (!empty($username)) {
if (!CValidateHelper::username($username)) {
$isInvalid = true;
$msg = JText::_('COM_COMMUNITY_IMPROPER_USERNAME');
}
if (preg_match('[\s]', $username) || preg_match('#[<>"\'%;()&\\\\]|\\.\\./#', $username) || strlen(utf8_decode($username)) < 2 || trim($username) != $username) {
$isInvalid = true;
$msg = 'Please enter a valid username. No spaces, at least 2 characters and must <strong>not</strong> contain the following characters: < > \" \' % ; ( ) &';
}
}