Country Code being Used Twice after Update
-
Plugin was working fine before update but after updating it now its not working, I have noticed that the country code in being used twice which might be cause of sms not being sent. Any help will be highly appreciated. Thanks
SMS Provider = Twillio
Gateway Answer:
Array
(
[headers] => Requests_Utility_CaseInsensitiveDictionary Object
(
[data:protected] => Array
(
[access-control-allow-credentials] => true
[access-control-allow-headers] => Accept, Authorization, Content-Type, If-Match, If-Modified-Since, If-None-Match, If-Unmodified-Since
[access-control-allow-methods] => GET, POST, DELETE, OPTIONS
[access-control-allow-origin] => *
[access-control-expose-headers] => ETag
[content-type] => application/xml
[date] => Wed, 20 Dec 2017 09:48:06 GMT
[twilio-request-duration] => 0.064
[twilio-request-id] => RQ6ddaa4c8f5c548b9a9555ee78b53ef80
[x-powered-by] => AT-5000
[x-shenanigans] => none
[content-length] => 282
))
[body] => <?xml version=’1.0′ encoding=’UTF-8′?>
<TwilioResponse><RestException>21211<Message>The ‘To’ number +929203459442566 is not a valid phone number.</Message><MoreInfo>https://www.twilio.com/docs/errors/21211</MoreInfo><Status>400</Status></RestException></TwilioResponse>
[response] => Array
(
[code] => 400
[message] => Bad Request
)[cookies] => Array
(
)[filename] =>
[http_response] => WP_HTTP_Requests_Response Object
(
[response:protected] => Requests_Response Object
(
[body] => <?xml version='1.0' encoding='UTF-8'?>
<TwilioResponse><RestException>21211<Message>The 'To' number +929203459442566 is not a valid phone number.</Message><MoreInfo>https://www.twilio.com/docs/errors/21211</MoreInfo><Status>400</Status></RestException></TwilioResponse>
[raw] => HTTP/1.1 400 BAD REQUEST
Access-Control-Allow-Credentials: true
Access-Control-Allow-Headers: Accept, Authorization, Content-Type, If-Match, If-Modified-Since, If-None-Match, If-Unmodified-Since
Access-Control-Allow-Methods: GET, POST, DELETE, OPTIONS
Access-Control-Allow-Origin: *
Access-Control-Expose-Headers: ETag
Content-Type: application/xml
Date: Wed, 20 Dec 2017 09:48:06 GMT
Twilio-Request-Duration: 0.064
Twilio-Request-Id: RQ6ddaa4c8f5c548b9a9555ee78b53ef80
X-Powered-By: AT-5000
X-Shenanigans: none
Content-Length: 282
Connection: Close<?xml version='1.0' encoding='UTF-8'?>
<TwilioResponse><RestException>21211<Message>The 'To' number +929203459442566 is not a valid phone number.</Message><MoreInfo>https://www.twilio.com/docs/errors/21211</MoreInfo><Status>400</Status></RestException></TwilioResponse>
[headers] => Requests_Response_Headers Object
(
[data:protected] => Array
(
[access-control-allow-credentials] => Array
(
[0] => true
)[access-control-allow-headers] => Array
(
[0] => Accept, Authorization, Content-Type, If-Match, If-Modified-Since, If-None-Match, If-Unmodified-Since
)[access-control-allow-methods] => Array
(
[0] => GET, POST, DELETE, OPTIONS
)[access-control-allow-origin] => Array
(
[0] => *
)[access-control-expose-headers] => Array
(
[0] => ETag
)[content-type] => Array
(
[0] => application/xml
)[date] => Array
(
[0] => Wed, 20 Dec 2017 09:48:06 GMT
)[twilio-request-duration] => Array
(
[0] => 0.064
)[twilio-request-id] => Array
(
[0] => RQ6ddaa4c8f5c548b9a9555ee78b53ef80
)[x-powered-by] => Array
(
[0] => AT-5000
)[x-shenanigans] => Array
(
[0] => none
)[content-length] => Array
(
[0] => 282
))
)
[status_code] => 400
[protocol_version] => 1.1
[success] =>
[redirects] => 0
[url] => https://AC0745465c24e825f9e2d5eafe05b071e2:8bafc46db939778366909e1cb3aa53ea@api.twilio.com/2010-04-01/Accounts/AC0745465c24e825f9e2d5eafe05b071e2/Messages
[history] => Array
(
)[cookies] => Requests_Cookie_Jar Object
(
[cookies:protected] => Array
(
))
)
[filename:protected] =>
[data] =>
[headers] =>
[status] =>
))
The topic ‘Country Code being Used Twice after Update’ is closed to new replies.