Joomla 3 activate new user fatal error

117 views
asked Jun 26, 2013 in Website Builder by Donald (2,780 points)
Hello ,
I am using Joomla 3.1.1 for building my website. When activating new users, if I choose the via mail option everything goes fine. However if  I noticed that the user registration have a problem.
If for users activation I choose the option via mail no problem everything goes as planned, but if it imposes an administrator and email is sent to the new user with a link that displays this error Fatal error: Call to a member function where () on a non-object in / home / mydomain / public_html / components / com_users / models / registration.php and  the email activation request is not sent to the administrator.
how do I fix this?

Thanks in advance

1 Answer

0 like 0 dislike
answered Jun 26, 2013 by FixHost (12,380 points)
Open your registration.php file and look for  "__users"
and make sure it looks like this
   from($db->yourquoteName('#__users'))
          where($db->yourquoteName('sendEmail') . ' = ' . 1);
...