zaus / forms-3rdparty-integration

Wordpress Plugin - Forms 3rdparty Integration - a plugin to help integrate 3rdparty services with common WP Forms plugins like Contact Form 7 and Gravity Forms
http://wordpress.org/plugins/forms-3rdparty-integration/
47 stars 14 forks source link

Always return Failure mail even if submission worked #86

Open AugustBurnsRed opened 7 years ago

AugustBurnsRed commented 7 years ago

Hi, im trying to use this plugin with Gravity Form and Pardot.

Pardot receive correctly all the submitted fields but i receive each time an error email and i still don't know why.

Thanks!

`There was an error when trying to integrate with the 3rd party service {Pardot test} (https://go.pardot.com/l/234132/2017-05-12/6dxdd).

FORM Title: test-leonard Intended Recipient: --na-- Source: http://honco.ca/test-leonard/

SUBMISSION Array ( [timeout] => 10 [body] => Array ( [email] => test@test.com )

)

RAW RESPONSE Array ( [headers] => Requests_Utility_CaseInsensitiveDictionary Object ( [data:protected] => Array ( [cache-control] => private, no-cache, no-store, must-revalidate, max-age=0 [pragma] => no-cache [content-type] => text/html [content-length] => 1121 [date] => Wed, 05 Jul 2017 16:04:35 GMT [accept-ranges] => bytes [server] => LiteSpeed )

    )

[body] => <!DOCTYPE html>
400 Bad Request

400

Bad Request

It is not a valid request!


Proudly powered by LiteSpeed Web Server

Please be advised that LiteSpeed Technologies Inc. is not a web hosting company and, as such, has no control over content found on this site.

[response] => Array
    (
        [code] => 400
        [message] => Bad Request
    )

[cookies] => Array
    (
        [0] => WP_Http_Cookie Object
            (
                [name] => pardot
                [value] => els3k7ok66rsgb57n5gustcec7
                [expires] =>
                [path] => /
                [domain] => go.pardot.com
            )

        [1] => WP_Http_Cookie Object
            (
                [name] => visitor_id234132
                [value] => 37674683
                [expires] => 1814629753
                [path] => /
                [domain] => pardot.com
            )

        [2] => WP_Http_Cookie Object
            (
                [name] => visitor_id234132-hash
                [value] => 771140eabdd653ba371c9c7967be605d2482122b54e23a9dd5fb175b9a4cda37a65b772fb2c0566847bfb31bf27487ea5920cb19
                [expires] => 1814629753
                [path] => /
                [domain] => pardot.com
            )

    )

[filename] =>
[http_response] => WP_HTTP_Requests_Response Object
    (
        [response:protected] => Requests_Response Object
            (
                [body] => <!DOCTYPE html>
400 Bad Request

400

Bad Request

It is not a valid request!


Proudly powered by LiteSpeed Web Server

Please be advised that LiteSpeed Technologies Inc. is not a web hosting company and, as such, has no control over content found on this site.

                [raw] => HTTP/1.1 400 Bad Request

Cache-Control: private, no-cache, no-store, must-revalidate, max-age=0 Pragma: no-cache Content-Type: text/html Content-Length: 1121 Date: Wed, 05 Jul 2017 16:04:35 GMT Accept-Ranges: bytes Server: LiteSpeed Connection: close

<!DOCTYPE html>

400 Bad Request

400

Bad Request

It is not a valid request!


Proudly powered by LiteSpeed Web Server

Please be advised that LiteSpeed Technologies Inc. is not a web hosting company and, as such, has no control over content found on this site.

                [headers] => Requests_Response_Headers Object
                    (
                        [data:protected] => Array
                            (
                                [cache-control] => Array
                                    (
                                        [0] => private, no-cache, no-store, must-revalidate, max-age=0
                                    )

                                [pragma] => Array
                                    (
                                        [0] => no-cache
                                    )

                                [content-type] => Array
                                    (
                                        [0] => text/html
                                    )

                                [content-length] => Array
                                    (
                                        [0] => 1121
                                    )

                                [date] => Array
                                    (
                                        [0] => Wed, 05 Jul 2017 16:04:35 GMT
                                    )

                                [accept-ranges] => Array
                                    (
                                        [0] => bytes
                                    )

                                [server] => Array
                                    (
                                        [0] => LiteSpeed
                                    )

                            )

                    )

                [status_code] => 400
                [protocol_version] => 1.1
                [success] =>
                [redirects] => 1
                [url] => http://honco.ca/
                [history] => Array
                    (
                        [0] => Requests_Response Object
                            (
                                [body] => <html><head><meta http-equiv="refresh" content="0;url=http://honco.ca"/></head></html>
                                [raw] => HTTP/1.0 302 Found

Date: Wed, 05 Jul 2017 15:49:13 GMT Set-Cookie: pardot=els3k7ok66rsgb57n5gustcec7; path=/ Expires: Thu, 19 Nov 1981 08:52:00 GMT Cache-Control: no-store, no-cache, must-revalidate Pragma: no-cache Location: http://honco.ca P3p: CP="NOI DSP COR CURa ADMa DEVa TAIa OUR BUS IND UNI COM NAV INT", policyref="/w3c/p3p.xml" Set-Cookie: visitor_id234132=37674683; expires=Sat, 03-Jul-2027 15:49:13 GMT; Max-Age=315360000; path=/; domain=.pardot.com Set-Cookie: visitor_id234132-hash=771140eabdd653ba371c9c7967be605d2482122b54e23a9dd5fb175b9a4cda37a65b772fb2c0566847bfb31bf27487ea5920cb19; expires=Sat, 03-Jul-2027 15:49:13 GMT; Max-Age=315360000; path=/; domain=.pardot.com Vary: Accept-Encoding,User-Agent Content-Encoding: gzip Content-Length: 94 Content-Type: text/html; charset=UTF-8 X-Pardot-Route: 32427ff3465437d362f61c790f7d2406 Server: PardotServer X-Pardot-LB: e1f1bd8c9265487b3591d867f640408e

                                [headers] => Requests_Response_Headers Object
                                    (
                                        [data:protected] => Array
                                            (
                                                [date] => Array
                                                    (
                                                        [0] => Wed, 05 Jul 2017 15:49:13 GMT
                                                    )

                                                [set-cookie] => Array
                                                    (
                                                        [0] => pardot=els3k7ok66rsgb57n5gustcec7; path=/
                                                        [1] => visitor_id234132=37674683; expires=Sat, 03-Jul-2027 15:49:13 GMT; Max-Age=315360000; path=/; domain=.pardot.com
                                                        [2] => visitor_id234132-hash=771140eabdd653ba371c9c7967be605d2482122b54e23a9dd5fb175b9a4cda37a65b772fb2c0566847bfb31bf27487ea5920cb19; expires=Sat, 03-Jul-2027 15:49:13 GMT; Max-Age=315360000; path=/; domain=.pardot.com
                                                    )

                                                [expires] => Array
                                                    (
                                                        [0] => Thu, 19 Nov 1981 08:52:00 GMT
                                                    )

                                                [cache-control] => Array
                                                    (
                                                        [0] => no-store, no-cache, must-revalidate
                                                    )

                                                [pragma] => Array
                                                    (
                                                        [0] => no-cache
                                                    )

                                                [location] => Array
                                                    (
                                                        [0] => http://honco.ca
                                                    )

                                                [p3p] => Array
                                                    (
                                                        [0] => CP="NOI DSP COR CURa ADMa DEVa TAIa OUR BUS IND UNI COM NAV INT", policyref="/w3c/p3p.xml"
                                                    )

                                                [vary] => Array
                                                    (
                                                        [0] => Accept-Encoding,User-Agent
                                                    )

                                                [content-encoding] => Array
                                                    (
                                                        [0] => gzip
                                                    )

                                                [content-length] => Array
                                                    (
                                                        [0] => 94
                                                    )

                                                [content-type] => Array
                                                    (
                                                        [0] => text/html; charset=UTF-8
                                                    )

                                                [x-pardot-route] => Array
                                                    (
                                                        [0] => 32427ff3465437d362f61c790f7d2406
                                                    )

                                                [server] => Array
                                                    (
                                                        [0] => PardotServer
                                                    )

                                                [x-pardot-lb] => Array
                                                    (
                                                        [0] => e1f1bd8c9265487b3591d867f640408e
                                                    )

                                            )

                                    )

                                [status_code] => 302
                                [protocol_version] => 1
                                [success] =>
                                [redirects] => 0
                                [url] => https://go.pardot.com/l/234132/2017-05-12/6dxdd
                                [history] => Array
                                    (
                                    )

                                [cookies] => Requests_Cookie_Jar Object
                                    (
                                        [cookies:protected] => Array
                                            (
                                                [pardot] => Requests_Cookie Object
                                                    (
                                                        [name] => pardot
                                                        [value] => els3k7ok66rsgb57n5gustcec7
                                                        [attributes] => Requests_Utility_CaseInsensitiveDictionary Object
                                                            (
                                                                [data:protected] => Array
                                                                    (
                                                                        [path] => /
                                                                        [domain] => go.pardot.com
                                                                    )

                                                            )

                                                        [flags] => Array
                                                            (
                                                                [creation] => 1499270675
                                                                [last-access] => 1499270675
                                                                [persistent] =>
                                                                [host-only] => 1
                                                            )

                                                        [reference_time] => 1499270675
                                                    )

                                                [visitor_id234132] => Requests_Cookie Object
                                                    (
                                                        [name] => visitor_id234132
                                                        [value] => 37674683
                                                        [attributes] => Requests_Utility_CaseInsensitiveDictionary Object
                                                            (
                                                                [data:protected] => Array
                                                                    (
                                                                        [expires] => 1814629753
                                                                        [max-age] => 1814630675
                                                                        [path] => /
                                                                        [domain] => pardot.com
                                                                    )

                                                            )

                                                        [flags] => Array
                                                            (
                                                                [creation] => 1499270675
                                                                [last-access] => 1499270675
                                                                [persistent] =>
                                                                [host-only] =>
                                                            )

                                                        [reference_time] => 1499270675
                                                    )

                                                [visitor_id234132-hash] => Requests_Cookie Object
                                                    (
                                                        [name] => visitor_id234132-hash
                                                        [value] => 771140eabdd653ba371c9c7967be605d2482122b54e23a9dd5fb175b9a4cda37a65b772fb2c0566847bfb31bf27487ea5920cb19
                                                        [attributes] => Requests_Utility_CaseInsensitiveDictionary Object
                                                            (
                                                                [data:protected] => Array
                                                                    (
                                                                        [expires] => 1814629753
                                                                        [max-age] => 1814630675
                                                                        [path] => /
                                                                        [domain] => pardot.com
                                                                    )

                                                            )

                                                        [flags] => Array
                                                            (
                                                                [creation] => 1499270675
                                                                [last-access] => 1499270675
                                                                [persistent] =>
                                                                [host-only] =>
                                                            )

                                                        [reference_time] => 1499270675
                                                    )

                                            )

                                    )

                            )

                    )

                [cookies] => Requests_Cookie_Jar Object
                    (
                        [cookies:protected] => Array
                            (
                                [pardot] => Requests_Cookie Object
                                    (
                                        [name] => pardot
                                        [value] => els3k7ok66rsgb57n5gustcec7
                                        [attributes] => Requests_Utility_CaseInsensitiveDictionary Object
                                            (
                                                [data:protected] => Array
                                                    (
                                                        [path] => /
                                                        [domain] => go.pardot.com
                                                    )

                                            )

                                        [flags] => Array
                                            (
                                                [creation] => 1499270675
                                                [last-access] => 1499270675
                                                [persistent] =>
                                                [host-only] => 1
                                            )

                                        [reference_time] => 1499270675
                                    )

                                [visitor_id234132] => Requests_Cookie Object
                                    (
                                        [name] => visitor_id234132
                                        [value] => 37674683
                                        [attributes] => Requests_Utility_CaseInsensitiveDictionary Object
                                            (
                                                [data:protected] => Array
                                                    (
                                                        [expires] => 1814629753
                                                        [max-age] => 1814630675
                                                        [path] => /
                                                        [domain] => pardot.com
                                                    )

                                            )

                                        [flags] => Array
                                            (
                                                [creation] => 1499270675
                                                [last-access] => 1499270675
                                                [persistent] =>
                                                [host-only] =>
                                            )

                                        [reference_time] => 1499270675
                                    )

                                [visitor_id234132-hash] => Requests_Cookie Object
                                    (
                                        [name] => visitor_id234132-hash
                                        [value] => 771140eabdd653ba371c9c7967be605d2482122b54e23a9dd5fb175b9a4cda37a65b772fb2c0566847bfb31bf27487ea5920cb19
                                        [attributes] => Requests_Utility_CaseInsensitiveDictionary Object
                                            (
                                                [data:protected] => Array
                                                    (
                                                        [expires] => 1814629753
                                                        [max-age] => 1814630675
                                                        [path] => /
                                                        [domain] => pardot.com
                                                    )

                                            )

                                        [flags] => Array
                                            (
                                                [creation] => 1499270675
                                                [last-access] => 1499270675
                                                [persistent] =>
                                                [host-only] =>
                                            )

                                        [reference_time] => 1499270675
                                    )

                            )

                    )

            )

        [filename:protected] =>
        [data] =>
        [headers] =>
        [status] =>
    )

[safe_message] => physical request failure

)`