Download & Extend

The phone number is invalid. Error Message

Project:SMS Framework
Version:5.x-1.x-dev
Component:SMS User
Category:bug report
Priority:normal
Assigned:Will White
Status:closed (fixed)

Issue Summary

I get

The phone number is invalid.

whenever I edit the user profile, whether or not I change anything. Besides I see nowhere to enter a phone number except under the mobile settings tab.

AttachmentSize
Screenshot.png67.81 KB

Comments

#1

Priority:critical» normal
Assigned to:Anonymous» Will White

I believe this occurs when the "Show mobile fields during registration" option is enabled at admin/smsframework/sms_user. Try disabling it and test again. I'll work on a fix. Thanks!

#2

any luck on this?

#3

Version:6.x-1.0-beta1» 5.x-1.x-dev

One possible fix is to change the following line (328) in the sms_user_user function of the sms_user.module file

from:

if (variable_get('sms_user_registration_form', 0) == 2 || strlen($edit['sms_user'][0]['number'])) {

to:

if (!empty($edit['sms_user']) && (variable_get('sms_user_registration_form', 0) == 2 || strlen($edit['sms_user'][0]['number']))) {

#4

I confirm that this works in 5.x version. This solved my issue as posted here (http://drupal.org/node/375174)

Great job!! Thank you very much for this!!

#5

Status:active» fixed

Committed. Thanks for the help!

http://drupal.org/cvs?commit=180876

#6

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.