• Resolved domenicbeck

    (@domenicbeck)


    I have a problem: every time I try to open orders made with PayPal, it shows me a blank page and gives the following error message:

    WordPress-Version 6.5.4
    Aktives Theme: Greenshift (Version 2.2.6)
    Aktuelles Plugin: WooCommerce PayPal Payments (Version 2.7.1)
    PHP-Version 8.0.30



    Fehler-Details
    ==============
    Ein Fehler vom Typ E_ERROR wurde in der Zeile 484 der Datei /home/www/patitobox.de/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-api-client/src/Endpoint/OrderEndpoint.php verursacht. Fehlermeldung: Uncaught WooCommerce\PayPalCommerce\ApiClient\Exception\RuntimeException: Could not retrieve order. in /home/www/patitobox.de/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-api-client/src/Endpoint/OrderEndpoint.php:484
    Stack trace:
    #0 /home/www/patitobox.de/wp-content/plugins/woocommerce-paypal-payments/api/order-functions.php(48): WooCommerce\PayPalCommerce\ApiClient\Endpoint\OrderEndpoint->order('56P842955M77676...')
    #1 /home/www/patitobox.de/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-order-tracking/src/MetaBoxRenderer.php(96): WooCommerce\PayPalCommerce\Api\ppcp_get_paypal_order('56P842955M77676...')
    #2 /home/www/patitobox.de/wp-admin/includes/template.php(1456): WooCommerce\PayPalCommerce\OrderTracking\MetaBoxRenderer->render(Object(Automattic\WooCommerce\Admin\Overrides\Order), Array)
    #3 /home/www/patitobox.de/wp-content/plugins/woocommerce/src/Internal/Admin/Orders/Edit.php(492): do_meta_boxes(Object(WP_Screen), 'side', Object(Automattic\WooCommerce\Admin\Overrides\Order))
    #4 /home/www/patitobox.de/wp-content/plugins/woocommerce/src/Internal/Admin/Orders/Edit.php(405): Automattic\WooCommerce\Internal\Admin\Orders\Edit->render_meta_boxes()
    #5 /home/www/patitobox.de/wp-content/plugins/woocommerce/src/Internal/Admin/Orders/PageController.php(293): Automattic\WooCommerce\Internal\Admin\Orders\Edit->display()
    #6 /home/www/patitobox.de/wp-includes/class-wp-hook.php(324): Automattic\WooCommerce\Internal\Admin\Orders\PageController->output('')
    #7 /home/www/patitobox.de/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)
    #8 /home/www/patitobox.de/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #9 /home/www/patitobox.de/wp-admin/admin.php(259): do_action('woocommerce_pag...')
    #10 {main}
    thrown

    What can I do to fix this?

    • This topic was modified 9 months, 2 weeks ago by domenicbeck.

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Krystian

    (@inpsydekrystian)

    Hello @domenicbeck

    It would be good to check if this problem also occurs in the recent version. We patched some minor bugs. You can download this version from GitHub using the following link: PayPal Payments 2.8.0-rc4.

    Please install this update and see if it resolves the issue. If the problem continues, please let us know and share the current stack trace log.

    Kind Regards,
    Krystian

    Hello, to piggyback on this, after updating to 2.8.0 I’m still seeing the critical error.

    Uncaught WooCommerce\PayPalCommerce\ApiClient\Exception\RuntimeException: Could not retrieve order. in /code/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-api-client/src/Endpoint/OrderEndpoint.php:484 CONTEXT: {"error":{"type":1,"file":"\/code\/wp-content\/plugins\/woocommerce-paypal-payments\/modules\/ppcp-api-client\/src\/Endpoint\/OrderEndpoint.php","line":484},"backtrace":["","#0 \/code\/wp-content\/plugins\/woocommerce-paypal-payments\/api\/order-functions.php(48): WooCommerce\\PayPalCommerce\\ApiClient\\Endpoint\\OrderEndpoint->order('8JD55262Y460378...')","#1 \/code\/wp-content\/plugins\/woocommerce-paypal-payments\/modules\/ppcp-order-tracking\/src\/MetaBoxRenderer.php(96): WooCommerce\\PayPalCommerce\\Api\\ppcp_get_paypal_order('8JD55262Y460378...')","#2 \/code\/wp-admin\/includes\/template.php(1456): WooCommerce\\PayPalCommerce\\OrderTracking\\MetaBoxRenderer->render(Object(WP_Post), Array)","#3 \/code\/wp-admin\/edit-form-advanced.php(716): do_meta_boxes(Object(WP_Screen), 'side', Object(WP_Post))","#4 \/code\/wp-admin\/post.php(206): require('\/code\/wp-admin\/...')","#5 {main}","thrown"]}
    • This reply was modified 9 months, 2 weeks ago by mattinventive. Reason: Adding in error
    Plugin Support Krystian

    (@inpsydekrystian)

    Hello @mattinventive

    Please create a separate thread for this issue, as it seems different from the one initially reported.

    The issue you mentioned appears to be specific to version 2.8.0. We have reproduced it but currently, the only solution is to downgrade to the previous version. You can find version 2.7.1 here on our GitHub: https://github.com/woocommerce/woocommerce-paypal-payments/releases/tag/2.7.1

    Kind regards,
    Krystian

    Thread Starter domenicbeck

    (@domenicbeck)

    I tested version 2.8.0 and encountered an error. The error message is as follows and had also the white page on the order page:

    Fehler-Details
    ==============
    Ein Fehler vom Typ E_ERROR wurde in der Zeile 484 der Datei /home/www/patitobox.de/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-api-client/src/Endpoint/OrderEndpoint.php verursacht. Fehlermeldung: Uncaught WooCommerce\PayPalCommerce\ApiClient\Exception\RuntimeException: Could not retrieve order. in /home/www/patitobox.de/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-api-client/src/Endpoint/OrderEndpoint.php:484
    Stack trace:
    #0 /home/www/patitobox.de/wp-content/plugins/woocommerce-paypal-payments/api/order-functions.php(48): WooCommerce\PayPalCommerce\ApiClient\Endpoint\OrderEndpoint->order('56P842955M77676...')
    #1 /home/www/patitobox.de/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-order-tracking/src/MetaBoxRenderer.php(96): WooCommerce\PayPalCommerce\Api\ppcp_get_paypal_order('56P842955M77676...')
    #2 /home/www/patitobox.de/wp-admin/includes/template.php(1456): WooCommerce\PayPalCommerce\OrderTracking\MetaBoxRenderer->render(Object(Automattic\WooCommerce\Admin\Overrides\Order), Array)
    #3 /home/www/patitobox.de/wp-content/plugins/woocommerce/src/Internal/Admin/Orders/Edit.php(492): do_meta_boxes(Object(WP_Screen), 'side', Object(Automattic\WooCommerce\Admin\Overrides\Order))
    #4 /home/www/patitobox.de/wp-content/plugins/woocommerce/src/Internal/Admin/Orders/Edit.php(405): Automattic\WooCommerce\Internal\Admin\Orders\Edit->render_meta_boxes()
    #5 /home/www/patitobox.de/wp-content/plugins/woocommerce/src/Internal/Admin/Orders/PageController.php(293): Automattic\WooCommerce\Internal\Admin\Orders\Edit->display()
    #6 /home/www/patitobox.de/wp-includes/class-wp-hook.php(324): Automattic\WooCommerce\Internal\Admin\Orders\PageController->output('')
    #7 /home/www/patitobox.de/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)
    #8 /home/www/patitobox.de/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #9 /home/www/patitobox.de/wp-admin/admin.php(259): do_action('woocommerce_pag...')
    #10 {main}
    thrown

    Plugin Support Krystian

    (@inpsydekrystian)

    Hello @domenicbeck

    So far we have successfully reproduced the problem on our end as well. I can confirm that currently, the best immediate solution is to downgrade to a previous stable version 2.7.0 which you can download from this link:?https://github.com/woocommerce/woocommerce-paypal-payments/releases/tag/2.7.0

    I already created an issue for this problem to be analyzed further by our developers.

    If a fix becomes available for this issue, I will send it to you immediately.

    Kind Regards,
    Krystian

    Thread Starter domenicbeck

    (@domenicbeck)

    Thank’s it worked!

    • This reply was modified 9 months, 1 week ago by domenicbeck.
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Trouble Opening Orders with PayPal – Empty Page Error’ is closed to new replies.