Error on new user creation

A place to discuss and receive support for the Web Auction application.

Error on new user creation

Postby 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?
SCAScot
 
Posts: 4
Joined: Tue Aug 30, 2011 5:45 pm

Re: Error on new user creation

Postby 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
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Re: Error on new user creation

Postby SCAScot » Mon Sep 12, 2011 2:58 pm

Thank you! That worked perfectly!
SCAScot
 
Posts: 4
Joined: Tue Aug 30, 2011 5:45 pm


Return to Web Auction Discussion

Who is online

Users browsing this forum: Bing [Bot] and 2 guests

cron
Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved