Web Hosting Geeks | Web Hosting Experts
Need help? Call us 1(866)TOP-HOST

14655 reviews 1734 hosting providers

Questions & Answers

Joomla 3 User registration

Jun 24, 2013 by jomnew
Hi there

Every time I try to register a new user on my site I get the below Fatal error message
Call to a member function where() on a non-object in /homepages/ /htdocs/Joomla3/components/com_users/models/registration.php

But when I check, the user is registered , and it looks normal and an email is sent to the user for activation purposes.
My question is, why am I getting this fatal error, if everything is working out? What could be causing it?
Thanks

1 Answer

0 votes
Jun 24, 2013 by FixHost
in your registration.php file
Replace this code
$query->select($db->Name(array('name', 'email', 'sendEmail')))
            from($db->Name('#__users')
            where($db->Name('sendEmail') . ' = ' . 1));
 With the following code
$query->select($db->Name(array('name', 'email', 'sendEmail')))
            from($db->Name('#__users'))
            where($db->Name('sendEmail') . ' = ' . 1);