woocommerce-pagseguro icon indicating copy to clipboard operation
woocommerce-pagseguro copied to clipboard

Opening and ending tag mismatch

Open niltonssjr opened this issue 7 years ago • 4 comments

Cláudio, Estou fazendo outros testes e me deparei com esse erro: DOMDocument::loadXML(): Opening and ending tag mismatch: hr line 8 and body in Entity, line: 10 in /var/www/html/lojao/wp-content/plugins/woocommerce-pagseguro/includes/class-wc-pagseguro-api.php on line 343 O erro aparece no momento de processar o pagamento. Abraço!

niltonssjr avatar Aug 03 '18 21:08 niltonssjr

Que tipo de pagamento?

claudiosanches avatar Aug 03 '18 21:08 claudiosanches

Lightbox. Cliquei no botão para acessar o lightbox e deu um erro, pediu pra eu reprocessar o pedido. Tentei processar novamente e apareceu essa mensagem na tela algumas vezes.

niltonssjr avatar Aug 03 '18 21:08 niltonssjr

Acabei de testar e foi de boa. Talvez algo errado com o PagSeguro, esse erro é quando não consegue ler o XML deles. Log esta ativado? Nele deve ter mais detalhes da resposta e assim podemos saber o que rolou.

claudiosanches avatar Aug 03 '18 21:08 claudiosanches

Não tinha visto sua mensagem. Estou colando o log todo.

08-03-2018 @ 17:49:29 - Requesting token for order 2750 with the following data: BRL CPF 38117649853 <areaCode>11</areaCode> 26842341 3

123 <postalCode>02969130</postalCode> SP BRA
63.03 1 154.00 1 <redirectURL></redirectURL> <notificationURL></notificationURL> <maxUses>1</maxUses> <maxAge>120</maxAge>

08-03-2018 @ 17:49:30 - PagSeguro Payment Token created with success! The Token is: 63DEA3738080ECBCC4C0BF9D2D18D018 08-03-2018 @ 18:21:30 - Requesting token for order 2752 with the following data: BRL CPF 38117649853 <areaCode>11</areaCode> 26842341 3

123 <postalCode>02969130</postalCode> SP BRA
18.86 1 35.90 1 <redirectURL></redirectURL> <notificationURL></notificationURL> <maxUses>1</maxUses> <maxAge>120</maxAge>

08-03-2018 @ 18:21:31 - Error generating the PagSeguro payment token: Array ( [headers] => Requests_Utility_CaseInsensitiveDictionary Object ( [data:protected] => Array ( [content-type] => text/plain; charset=utf-8 [x-content-type-options] => nosniff [date] => Fri, 03 Aug 2018 21:21:29 GMT [content-length] => 19 )

    )

[body] => 404 page not found

[response] => Array
    (
        [code] => 404
        [message] => Not Found
    )

[cookies] => Array
    (
    )

[filename] => 
[http_response] => WP_HTTP_Requests_Response Object
    (
        [response:protected] => Requests_Response Object
            (
                [body] => 404 page not found

                [raw] => HTTP/1.1 404 Not Found

Content-Type: text/plain; charset=utf-8 X-Content-Type-Options: nosniff Date: Fri, 03 Aug 2018 21:21:29 GMT Content-Length: 19 Connection: close

404 page not found

                [headers] => Requests_Response_Headers Object
                    (
                        [data:protected] => Array
                            (
                                [content-type] => Array
                                    (
                                        [0] => text/plain; charset=utf-8
                                    )

                                [x-content-type-options] => Array
                                    (
                                        [0] => nosniff
                                    )

                                [date] => Array
                                    (
                                        [0] => Fri, 03 Aug 2018 21:21:29 GMT
                                    )

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

                            )

                    )

                [status_code] => 404
                [protocol_version] => 1.1
                [success] => 
                [redirects] => 0
                [url] => https://ws.sandbox.pagseguro.uol.com.br/v2/[email protected]&token=2EA7ED100C944FDF982BBA71878598EF
                [history] => Array
                    (
                    )

                [cookies] => Requests_Cookie_Jar Object
                    (
                        [cookies:protected] => Array
                            (
                            )

                    )

            )

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

)

08-03-2018 @ 18:22:02 - Requesting token for order 2753 with the following data: BRL CPF 38117649853 <areaCode>11</areaCode> 26842341 3

123 <postalCode>02969130</postalCode> SP BRA
18.86 1 35.90 1 <redirectURL></redirectURL> <notificationURL></notificationURL> <maxUses>1</maxUses> <maxAge>120</maxAge>

08-03-2018 @ 18:22:04 - Error generating the PagSeguro payment token: Array ( [headers] => Requests_Utility_CaseInsensitiveDictionary Object ( [data:protected] => Array ( [server] => nginx/1.13.0 [date] => Fri, 03 Aug 2018 21:22:02 GMT [content-type] => text/html;charset=iso-8859-1 [content-length] => 326 [x-oneagent-js-injection] => true [set-cookie] => Array ( [0] => dtCookie=5$4F4C2B83979F41D7253EAACD65B508AF;Path=/;Domain=.uol.com.br [1] => JSESSIONID.0c99a754=node0qcm4wjbdlkj3dngvtn8e0qlf40796898.node0;Path=/;Secure;HttpOnly )

                [x-content-type-options] => nosniff
                [cache-control] => must-revalidate,no-cache,no-store
            )

    )

[body] => <html>
Error 404 Not Found

HTTP ERROR 404

Problem accessing /v2/checkout. Reason:

    Not Found

Powered by Jetty:// 9.4.z-SNAPSHOT
[response] => Array
    (
        [code] => 404
        [message] => Not Found
    )

[cookies] => Array
    (
        [0] => WP_Http_Cookie Object
            (
                [name] => dtCookie
                [value] => 5$4F4C2B83979F41D7253EAACD65B508AF
                [expires] => 
                [path] => /
                [domain] => uol.com.br
            )

        [1] => WP_Http_Cookie Object
            (
                [name] => JSESSIONID.0c99a754
                [value] => node0qcm4wjbdlkj3dngvtn8e0qlf40796898.node0
                [expires] => 
                [path] => /
                [domain] => ws.sandbox.pagseguro.uol.com.br
            )

    )

[filename] => 
[http_response] => WP_HTTP_Requests_Response Object
    (
        [response:protected] => Requests_Response Object
            (
                [body] => <html>
Error 404 Not Found

HTTP ERROR 404

Problem accessing /v2/checkout. Reason:

    Not Found

Powered by Jetty:// 9.4.z-SNAPSHOT
                [raw] => HTTP/1.1 404 Not Found

Server: nginx/1.13.0 Date: Fri, 03 Aug 2018 21:22:02 GMT Content-Type: text/html;charset=iso-8859-1 Content-Length: 326 Connection: close X-OneAgent-JS-Injection: true Set-Cookie: dtCookie=5$4F4C2B83979F41D7253EAACD65B508AF;Path=/;Domain=.uol.com.br X-Content-Type-Options: nosniff Set-Cookie: JSESSIONID.0c99a754=node0qcm4wjbdlkj3dngvtn8e0qlf40796898.node0;Path=/;Secure;HttpOnly Cache-Control: must-revalidate,no-cache,no-store

Error 404 Not Found

HTTP ERROR 404

Problem accessing /v2/checkout. Reason:

    Not Found

Powered by Jetty:// 9.4.z-SNAPSHOT
                [headers] => Requests_Response_Headers Object
                    (
                        [data:protected] => Array
                            (
                                [server] => Array
                                    (
                                        [0] => nginx/1.13.0
                                    )

                                [date] => Array
                                    (
                                        [0] => Fri, 03 Aug 2018 21:22:02 GMT
                                    )

                                [content-type] => Array
                                    (
                                        [0] => text/html;charset=iso-8859-1
                                    )

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

                                [x-oneagent-js-injection] => Array
                                    (
                                        [0] => true
                                    )

                                [set-cookie] => Array
                                    (
                                        [0] => dtCookie=5$4F4C2B83979F41D7253EAACD65B508AF;Path=/;Domain=.uol.com.br
                                        [1] => JSESSIONID.0c99a754=node0qcm4wjbdlkj3dngvtn8e0qlf40796898.node0;Path=/;Secure;HttpOnly
                                    )

                                [x-content-type-options] => Array
                                    (
                                        [0] => nosniff
                                    )

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

                            )

                    )

                [status_code] => 404
                [protocol_version] => 1.1
                [success] => 
                [redirects] => 0
                [url] => https://ws.sandbox.pagseguro.uol.com.br/v2/[email protected]&token=2EA7ED100C944FDF982BBA71878598EF
                [history] => Array
                    (
                    )

                [cookies] => Requests_Cookie_Jar Object
                    (
                        [cookies:protected] => Array
                            (
                                [dtCookie] => Requests_Cookie Object
                                    (
                                        [name] => dtCookie
                                        [value] => 5$4F4C2B83979F41D7253EAACD65B508AF
                                        [attributes] => Requests_Utility_CaseInsensitiveDictionary Object
                                            (
                                                [data:protected] => Array
                                                    (
                                                        [path] => /
                                                        [domain] => uol.com.br
                                                    )

                                            )

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

                                        [reference_time] => 1533331324
                                    )

                                [JSESSIONID.0c99a754] => Requests_Cookie Object
                                    (
                                        [name] => JSESSIONID.0c99a754
                                        [value] => node0qcm4wjbdlkj3dngvtn8e0qlf40796898.node0
                                        [attributes] => Requests_Utility_CaseInsensitiveDictionary Object
                                            (
                                                [data:protected] => Array
                                                    (
                                                        [path] => /
                                                        [secure] => 1
                                                        [httponly] => 1
                                                        [domain] => ws.sandbox.pagseguro.uol.com.br
                                                    )

                                            )

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

                                        [reference_time] => 1533331324
                                    )

                            )

                    )

            )

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

)

08-03-2018 @ 18:33:05 - Requesting token for order 2754 with the following data: BRL CPF 38117649853 <areaCode>11</areaCode> 26842341 3

123 <postalCode>02969130</postalCode> SP BRA
18.86 1 35.90 1 <redirectURL></redirectURL> <notificationURL></notificationURL> <maxUses>1</maxUses> <maxAge>120</maxAge>

08-03-2018 @ 18:33:06 - PagSeguro Payment Token created with success! The Token is: 4F970AF794946ECDD42D9FAD15E7D7CD

niltonssjr avatar Aug 03 '18 22:08 niltonssjr