Page 1 of 1

Error on new user creation

PostPosted: Tue Aug 30, 2011 5:49 pm
by SCAScot
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?

Re: Error on new user creation

PostPosted: Wed Aug 31, 2011 7:28 pm
by shannah
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

Re: Error on new user creation

PostPosted: Mon Sep 12, 2011 2:58 pm
by SCAScot
Thank you! That worked perfectly!