Error on new user creation
Archived from the Web Auction Discussion forum.
SCAScot — Tue Aug 30, 2011 5:49 pm
When a new user registers, the following message appears:
Fatal error: Call to undefined method dataface_actions_register::redirect() in /data/17/1/6/51/1658377/user/1788360/htdocs/Auction/dataface/actions/register.php on line 178
However, the registration still appears to go through, as the user receives a confirmation message and is able to confirm their account. How can this be fixed?
shannah — Wed Aug 31, 2011 7:28 pm
Arghh.. looks like a bug in the latest release. You can fix it by changing
- Code: Select all
$this->redirect(...
to
- Code: Select all
$app->redirect(...
on line 178 of dataface/actions/register.php
Here is the full diff from SVN:
- Code: Select all
192:actions shannah$ svn diff -r 2675:2676 . Index: register.php =================================================================== --- register.php (revision 2675) +++ register.php (revision 2676) @@ -175,7 +175,7 @@ } // Now we actually forward to the success page along with a success message if ( strpos($url, '?') === false ) $url .= '?'; - $this->redirect($url.'&--msg='.urlencode($msg)); + $app->redirect($url.'&--msg='.urlencode($msg)); } }
-Steve
SCAScot — Mon Sep 12, 2011 2:58 pm
Thank you! That worked perfectly!