Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Thu Apr 25, 2024 4:44 pm
Hosted Voice Broadcast


All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: A2B 1.4 Signup issue?
PostPosted: Mon Jun 22, 2009 5:55 am 
Offline

Joined: Thu Oct 26, 2006 3:47 am
Posts: 17
It could very well be my setup, but I'm seeing yet another rather elementary issue with the sign-up page with a2b 1.4 (now at release 2130). When signing up as a user either by itself or under an agent, the signup_confirmation.php page throws an error

Code:
"Error : No such user found in database"


It's hard to believe that no one else is seeing or has reported this error. FWIW, I have spent some time and have determined where the issue is, so will be reporting with a fix soon.


Top
 Profile  
 
 Post subject: Re: A2B 1.4 Signup issue?
PostPosted: Mon Jun 22, 2009 11:29 am 
Offline

Joined: Sun Mar 12, 2006 2:49 pm
Posts: 954
Location: Barcelona
you are right, I can reproduce the bug.

Do you have a fix already ?

Yours,
/Areski


Top
 Profile  
 
 Post subject: Re: A2B 1.4 Signup issue?
PostPosted: Thu Jun 25, 2009 2:17 am 
Offline

Joined: Thu Oct 26, 2006 3:47 am
Posts: 17
[was traveling so didn't get a chance to follow-up sooner]

Yes, I do. Here is the patch against the latest build:

Code:
#cat ~/dev/vp-a2b-1.4/signup.patch
--- Class.FormHandler.inc.php   2009-06-19 14:44:44.000000000 -0400
+++ /home/voipadmin/dev/vp-a2b-1.4/Class.FormHandler.inc.php    2009-06-24 22:14:41.000000000 -0400
@@ -1489,11 +1489,11 @@
                        if ($i>0) $param_add_value .= ", ";
                        $split_hidden_fields_value = split(",",trim($this->FG_QUERY_ADITION_HIDDEN_VALUE));
                        for ($cur_hidden=0;$cur_hidden<count($split_hidden_fields_value);$cur_hidden++){
-                               $param_add_value.="'".$split_hidden_fields_value[$cur_hidden]."'";
+                               $param_add_value.="'".trim($split_hidden_fields_value[$cur_hidden])."'" ;
                                if($cur_hidden<count($split_hidden_fields_value)-1)$param_add_value.=",";
                        }
                }
-
+
                if ($this->FG_DEBUG == 1)  echo "<br><hr> $param_add_fields";
                if ($this->FG_DEBUG == 1)  echo "<br><hr> $param_add_value";


Top
 Profile  
 
 Post subject: Re: A2B 1.4 Signup issue?
PostPosted: Thu Jun 25, 2009 10:59 am 
Offline

Joined: Sun Mar 12, 2006 2:49 pm
Posts: 954
Location: Barcelona
thanks, fixed in rev 2139


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 
Hosted Voice Broadcast


All times are UTC


Who is online

Users browsing this forum: No registered users and 32 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group