woocommerce checkout ajax 500 error - ajax

I have updated the woocommerce plugin in my site to version 2.6.0 recently and now I am facing a 500 error during checkout and this error message changed as per the payment method.
I have couple of payment methods as Direct Bank Transfer and Cash On Delivery.
When I use Direct Bank Transfer I am getting an error message error Internal Server Errorand in browser console I am able to see the problem is with http://example.com/checkout-2/?wc-ajax=checkout Failed to load resource: the server responded with a status of 500 (Internal Server Error)
On the other hand when I user Cash On Delivery as payment method I am seeing an error String could not be parsed as XML.
Anyone facing similar issues with woocommerce? not sure if this is because of plugin update or any other function.

I figured it out myself finally. The problem is I messed up with the woocommerce email templates. When I undid all the changed in email templates the order slow started working normally.
During the debug process I noticed that though I get the Internal Server Error the order is getting posted successfully and is visible in woocommerce admin so I was getting the errors all this while due to changed email templates where I failed to pass the order data properly into emails.

Related

error:400 Bad Request Unfortunately we could not process your transaction. There was a problem with: No payment data received

I used payfast as my payment gateway in my website, if am testing payfast on their test engine it works fine when I post values to their engine, but when am using their engine that is not for testing it gives me that error saying "No payment data received"there is an error message I get
I had the same error as well, turns out I was just leaving out the www as Daniel_ZA pointed out.
<form action="https://www.payfast.co.za/eng/process" method="POST"></form>

Laravel Paypal payment execute working on localhost but not on remote server

I am using laravel as a backend and vue as front end while integrating paypal. The integration works locally and the payment process works. But when I tried to go live, it give folowing errors
Access to XMLHttpRequest at 'https://www.example.com/myApi/api/execute-payment/' from origin 'https://www.example.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
POST https://www.example.com/myApi/api/execute-payment/ net::ERR_FAILED
Uncaught Error: Request to post https://www.example.com/myApi/api/execute-payment/ failed: [object ProgressEvent]. Correlation id: null
at XMLHttpRequest.xhrError (http.js:123)**
I have already handled Cors on the backend. I have tried using Cors google extension on local server (hitting the live endpoints) but the execute payment method does not return to my url instead keep loading (executing and executing) which does not seem to stop.
I have not changed the paypal environemnt to 'production' on the client side though because of testing purpose.
Also the payment creation (createPayment) flow works fine on live server. It just gives this error after I login to paypal account and click pay (to start payment execution).
Kindly Help me. Thank you.

Getting Errors when I cancel a Sagepay Payment. Integration with woocommerce

I am using this plugin to integrate woocommerce with sagepay server inframe. It is able to place orders however if I press cancel on the order then I get the following error.
HTTP Status Code: 500
HTTP Status Message: The request was unsuccessful due to an unexpected condition encountered by the server.
Error Code : 5003
Error Description : Internal server error.
Is it possible to fix this. I am trying to figure out whether this is to with the plugin or perhaps the sagepay protocol
Some code from the plugin reads
$sd_arg['VPSProtocol'] = 3.00;

500 internal server error while trying to use the registration form

I am using the registration form that is already available in the user manager option in my website.
But once I click on the register button I get this message:
Server error The website encountered an error while retrieving
http://prachi.matrimony4me.in/index.php/sample-sites-2?task=registration.register.
It may be down for maintenance or configured incorrectly. Here are
some suggestions: Reload this webpage later. HTTP Error 500 (Internal
Server Error): An unexpected condition was encountered while the
server was attempting to fulfill the request.
Try turing off SEF in the main joomla configuration.
refresh the page and try agian?
are you using
JRoute:_('index.php') or JRoute:_('index.php?option=com_users')
in your form action?
the link just looks wrong.
Is that the default registration form ? there shouldnt be any task in the url.

Error message when using google contact api

When I try to fetch contacts from gmail, I received this error message:
The page you have requested cannot be displayed. Another site was requesting access to your Google Account, but sent a malformed request. Please contact the site that you were trying to use when you received this message to inform them of the error. A detailed error message follows:
The site "http://url.com" has not been registered.
May I know how to rectify it? Thanks!
Have you tried registering the domain with Google's API?
docs:
https://developers.google.com/accounts/docs/RegistrationForWebAppsAuto#new
resgister url:
https://accounts.google.com/ManageDomains
Also if you are making calls from http and not https you may be seeing problems there too.

Resources