Actions

Difference between revisions of "Fatal-error-in-registration"

From Joomla! Documentation

m (Improved formatting.)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
When registration is done with administrator activation, one may get a  
+
When registration is done with administrator activation you may get this error:
 +
<pre>
 +
Fatal error: Call to a member function where() on a non-object in
 +
ROOT/components/com_users/models/registration.php on line 109
 +
</pre>
 +
Where <tt>ROOT</tt> is the path to your Joomla files.
  
Fatal error: Call to a member function where() on a non-object in ROOTcomponents/com_users/models/registration.php on line 109
+
To solve this, change line 108 of <tt>ROOT/components/com_users/models/registration.php</tt>
 
+
To solve this, change line 108 of ROOT/components/com_users/models/registration.php
+
  
 
from
 
from
 
+
<source lang="php$>
 
->from($db->quoteName('#__users')
 
->from($db->quoteName('#__users')
 
+
</source>
 
to
 
to
 
+
<source lang="php">
 
->from($db->quoteName('#__users'))
 
->from($db->quoteName('#__users'))
 +
</source>
 +
(There should be an additional ) at the end of the line.)
  
 
<noinclude>
 
<noinclude>
 
[[Category:Version 3.1.0 FAQ]][[Category:Version 3.1.1 FAQ]]
 
[[Category:Version 3.1.0 FAQ]][[Category:Version 3.1.1 FAQ]]
 
</noinclude>
 
</noinclude>

Latest revision as of 07:05, 15 May 2013

When registration is done with administrator activation you may get this error:

Fatal error: Call to a member function where() on a non-object in
 ROOT/components/com_users/models/registration.php on line 109 

Where ROOT is the path to your Joomla files.

To solve this, change line 108 of ROOT/components/com_users/models/registration.php

from

->from($db->quoteName('#__users')

to

->from($db->quoteName('#__users'))

(There should be an additional ) at the end of the line.)