VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: marvays on June 15, 2021, 07:31:39 AM

Title: Status for ajaxSendPost is 500
Post by: marvays on June 15, 2021, 07:31:39 AM
At one e-shop, I use invoicing from Artio VM Invoice. The site has 3 administrator accounts. Only on one of them, when I want to change the method of transport in invoicing, I get an error:
Send failed. Status for ajaxSendPost is 500

I don't know if it's a VM or Artio problem. Do you have any idea where to start looking? Or should I just delete and re-create this admin account? This is an account that is associated with the seller. Maybe there will be a problem.

Thank you for the ideas :)
Title: Re: Status for ajaxSendPost is 500
Post by: pinochico on June 15, 2021, 08:17:28 AM
Idea:

before send question to forum, find this error text in language constant or PHP file on FTP.
Then you wil to know which app generate error.

P.S.
After bought VM Invoice from Artio, then you have 6 free support tickets.
Title: Re: Status for ajaxSendPost is 500
Post by: marvays on June 15, 2021, 08:46:04 AM
This error text is not in the language constant.
At Artio, I have been solving this problem for two years. And it is still not resolved. They don't know if the problem is in the VM or in the Artio. I don't know either. That's why I tried to write here.
In VirtueMart version 3.4.2, everything is fine. In the following versions, the problem is always there.

An update was released after 6 months. I'll try to buy a new license and download it.

PS: Sometimes even 6 tickets are not enough :)
Title: Re: Status for ajaxSendPost is 500
Post by: pinochico on June 15, 2021, 16:28:05 PM
QuoteThis error text is not in the language constant.

yes, then i wrote, find in php files
Title: Re: Status for ajaxSendPost is 500
Post by: pinochico on June 15, 2021, 16:41:11 PM
Sometimes 6 ticket is enought, but you are right, if you don't want do it, but only write to forum - pls help me to sold my problem without my energy, then 6 tickets is not enought.

Text:

QuoteSend failed. Status for ajaxSendPost is

is in file - administrator/components/com_vminvoice3/assets/js/autility.js


// 13.1.2014 dajo (#8306): Fixed the "Refused to set unsafe header" warnings
//http_ask.setRequestHeader("Content-length", params.length);
//http_ask.setRequestHeader("Connection", "close");

if (typeof callback == 'function') {
http_ask.onreadystatechange = function() {
if (http_ask.readyState == 4) {
if (http_ask.status == 200) {
result = http_ask.responseText;
callback(result, name);
} else {
alert('Send failed. Status for ajaxSendPost is '+http_ask.status);
return false;
}
}
}
}


Definitely, pls send your question to Artio.
Yes, I have very bad expirience with company Artio and all they develop errors we had to pay as soupport ticket (300 EUR) before start support ticket and of course after fix bug in app Artio created new version app with fixed error by our money.

Now all errors from Artio we fixed self. Is quickly and cheapper.
You can try too.