Browser console return this error:
ppxo_unhandled_error
Object { stack: "Request to post http:// mysitedomain.it/wc-api/WC_Gateway_PayPal_Express_AngellEYE/?pp_action=get_express_checkout_details&utm_nooverride=1&request_from=JSv4&token=EC-0TX45516100814515&PayerID=J2GG95PLX8JBW failed with 500 error. Correlation id: unknown\nD/</<@https://www.paypalobjects.com/api/checkout.min.js:1:810389\n", errtype: "[object Error]", timestamp: 1549883831707, windowID: "8a20f5fffa", pageID: "c857c00bad", prev_corr_ids: "", referer: "mysitedomain.it", host: "mysitedomain.it", path: "/prodotto/corso-di-cocktail/", env: "production", … }
logger.js:63:12
Error: Request to post http:// mysitedomain.it/wc-api/WC_Gateway_PayPal_Express_AngellEYE/?pp_action=get_express_checkout_details&utm_nooverride=1&request_from=JSv4&token=EC-0TX45516100814515&PayerID=J2GG95PLX8JBW failed with 500 error. Correlation id: unknown
DEBUG LOG:
2019-02-11T11:24:47+00:00 CRITICAL Uncaught ArgumentCountError: Too few arguments to function learn_press_create_order(), 0 passed in /home/addskill/public_html/wp-content/themes/edufication/functions.php on line 546 and exactly 1 expected in /home/addskill/public_html/wp-content/plugins/learnpress/inc/order/lp-order-functions.php:47
Stack trace:
#0 /home/addskill/public_html/wp-content/themes/edufication/functions.php(546): learn_press_create_order()
#1 /home/addskill/public_html/wp-includes/class-wp-hook.php(286): custom_process_order_complete(9845)
#2 /home/addskill/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array)
#3 /home/addskill/public_html/wp-includes/plugin.php(453): WP_Hook->do_action(Array)
#4 /home/addskill/public_html/wp-content/plugins/woocommerce/includes/class-wc-order.php(121): do_action('woocommerce_pay...', 9845)
#5 /home/addskill/public_html/wp-content/plugins/paypal-for-woocommerce/angelleye-includes/express-checkout/class-wc-gateway-paypal-express-request-angelleye.php(412): WC_Order->pay in /home/addskill/public_html/wp-content/plugins/learnpress/inc/order/lp-order-functions.php alla riga 47
Hi @steplab ,
After looking at the errors, that seems to be either a plugin or theme conflict. Can you try to process a woo order with no plugins enabled and default wp theme and see if you still hit the same error? Also , whats you PayPal account country and currency?
Hi the strange that it was working all correctly on a domain for development purposes.
Now migrated to the new official domain theme function was working fine with my custom function on theme and woocommerce and learnpress plugin.
Is correct that the plugin point to
/wc-api/WC_Gateway_PayPal_Express_AngellEYE/?pp_action=get_express_checkout_details&utm_nooverride=1&request_from=JSv4&token=EC-0TX45516100814515&PayerID=J2GG95PLX8JBW failed with 500 error
I can’t see the /wc-api/ directory inside my root domain or inside your plugin.
I’m using Sandbox added the api of the facilitator account created inside developer paypal account.
Country Italy, currency Euro
If I use the button inside the cart page all working correctly, but if I use the button inside product page I have errors described.
Yeah that URL is correct,
Are you using any redirection rules in HTACCESS? if so, Can you remove them and use default WP htaccess, save permalink and then test again.
Also, its strange that its happening only on product details page, which makes be believe something else on the product detail page may be causing a conflict / trouble.
Did you ran the basic debugging which i asked you in my last reply? DID that worked for you?
Please double check and let me know.
Thanks!
Similar debbugging you told worked partially because tried to fix/remove messages posted as “DEBUG LOG” that now seems to be fixed. I was using an e-mail that didn’t exists added on E-mail input after phone number inside Sandbox PayPal window, maybe that caused first error or was the php notice generated by theme or plugins that now seems fixed. Because inside uploads/wc-logs/ there is no new fatal-errors logs.
I have no particular redirect inside htaccess only default settings.
Now tring to purchase with Visa button after yellow Paypal button inside product page, with guest user, and work fine. Work correctly same procedure but with logged customer user, work correctly if I purchase using same button Visa but inside cart.
But Don’t know why sometimes the order process correctly and become “Complete”, and others become Processing so not complete. Same problem inside Cart and inside Product page.
The difference I can see of order precessing not correctly is Downloadable setting. This may can caused by some simple products that have [v]Virtual checked but not []Downloadable checked?
By now seems to be other plugins compatibility issue.
Found why Order status was not completed sometimes:
From Woocommerce documentation:
– If items in the order are all downloadable + virtual, the order is complete.
– If items are physical and downloadable/virtual, the order is “processing” until you change it.
And 404 Error didn’t returned by now.
Thanks for the help.
I’m glad to hear things are working well for you now! As such, I am going to close this ticket now, but please feel free to respond here again or create a new ticket if you have any more questions or concerns.
Also, we would love to know what you think of our product and customer support. If you have a moment to [ leave a review ] it would be greatly appreciated.