Frontend Users - pass variable by reference error
Posted: Tue Jun 13, 2006 12:55 pm
Hello
I am using CMSMS v.13 and Frontend Users v1.0.5 on an Apache server, php v4.4.2.
At first the installation went fine then unexplicably I started getting a php error saying only variables could be passed by reference in FrontEndUsers.api.php in line 1212, 1228 and 1264. I have no idea what changed.
The error appeared both on the viewable page and in the admin area.
The problem appears fixed by changing:
$db =& $this->GetDb();
to
$db = $this->GetDb();
ie, removing the ampersand.
Please let me know if this is a bug and will be fixed in a newer release of FEU or I'm doing something wrong.
Many thanks
psy
I am using CMSMS v.13 and Frontend Users v1.0.5 on an Apache server, php v4.4.2.
At first the installation went fine then unexplicably I started getting a php error saying only variables could be passed by reference in FrontEndUsers.api.php in line 1212, 1228 and 1264. I have no idea what changed.
The error appeared both on the viewable page and in the admin area.
The problem appears fixed by changing:
$db =& $this->GetDb();
to
$db = $this->GetDb();
ie, removing the ampersand.
Please let me know if this is a bug and will be fixed in a newer release of FEU or I'm doing something wrong.
Many thanks
psy