• Resolved JBMKL

    (@jbmkl)


    Hello,

    At the end of the car booking, the paypal button doesn’t functions and I have this message : “Something went wrong. Please try again or choose another payment source.”

    I can see in logs this error :

    2022-03-29T21:49:54+00:00 CRITICAL Uncaught Error: Call to a member function get_name() on bool in /var/www/vhosts/francois-pierre-auto.fr/services/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-api-client/src/Factory/ItemFactory.php:142
    Stack trace:
    #0 /var/www/vhosts/francois-pierre-auto.fr/services/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-api-client/src/Factory/ItemFactory.php(102): WooCommerce\PayPalCommerce\ApiClient\Factory\ItemFactory->from_wc_order_line_item()
    #1 [internal function]: WooCommerce\PayPalCommerce\ApiClient\Factory\ItemFactory->WooCommerce\PayPalCommerce\ApiClient\Factory\{closure}()
    #2 /var/www/vhosts/francois-pierre-auto.fr/services/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-api-client/src/Factory/ItemFactory.php(104): array_map()
    #3 /var/www/vhosts/francois-pierre-auto.fr/services/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-api-client/src/Factory/AmountFactory.php(121): WooCommerce\PayPalCommerce\ApiClient\Factory\ItemFactory->from_wc_order()
    #4 /var/www/v dans /var/www/vhosts/francois-pierre-auto.fr/services/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-api-client/src/Factory/ItemFactory.php à la ligne 142

    Everuthing seem ok for the rest…

    Can you help me ?

    Best regards.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Syde Niklas

    (@niklasinpsyde)

    Hi @jbmkl,

    Since you mention car bookings, we have seen a similar error previously as the result of a conflict with booking or chauffeur plugins from QuanticaLabs. Are you using any of those plugins?

    If you don’t have such plugins installed, you may want to perform a full conflict test to rule out eventual issues with the theme or a different plugin. We recommend temporarily activating the default theme Storefront and disabling all other plugins except for?WooCommerce and?PayPal Payments to see if the behavior persists.

    Here’s a guide that explains the steps in more detail:
    How to test for conflicts
    Please let us know how that works out for you. Thanks!

    Kind regards,
    Niklas

    Thread Starter JBMKL

    (@jbmkl)

    Hello,
    Yes I use a plugin from Quanticalabs.
    With the error, can you understand where does the problem come from ?
    Thank you

    Thread Starter JBMKL

    (@jbmkl)

    Hello,

    In my tests, I can see other errors.

    When I click on the Paypal paying button, a POST request generates a 500 error on https://mydomainname.com/?wc-ajax=ppc-create-order

    And also this error in the browser console on “create_order_error”

    The Woocommerce logs point that line : CRITICAL Uncaught Error: Call to a member function get_name() on bool in /var/www/vhosts/mydomainname.com/services/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-api-client/src/Factory/ItemFactory.php:142

    This line calls this value : $product->get_name

    The manager of the plugin tells me :
    I cannot understand why the function:
    $product=$item->get_product();
    returns boolean value instead of object (product). Can you ask support of the plugin about this? I’m ready to help, but I don’t know this plugin.

    Plugin Support Syde Joost

    (@joostvandevijver)

    Hello,

    thank you for these details, I have added them to the bug that we create for this issue for our developers to work with. However, since this is a 3rd party plugin bug, the priority is lower and might still take some time before it gets picked up.

    I have linked this thread to the bug, so it will be updated once a fix is available. Until then we will not update this thread, so I will mark it as resolved.

    Kind regards,
    Joost

    Hello,
    I have some error, like this
    how can I solved this

    POST
    	
    scheme
    	https
    host
    	armvtc.fr
    filename
    	/wp-admin/admin-ajax.php
    Adresse
    	217.160.0.171:443
    état
    500
    Internal Server Error
    VersionHTTP/2
    Transfert683 o (taille 180 o)
    Politique de référentstrict-origin-when-cross-origin

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Something went wrong. Please try again or choose another payment source’ is closed to new replies.