VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: marvays on January 14, 2020, 10:05:47 AM

Title: Cant add to cart - 3.6.10 10211
Post by: marvays on January 14, 2020, 10:05:47 AM
Today i was updated to 6.10

Now users cant add product to cart
POST https://www.lukysipy.cz/index.php?option=com_virtuemart&nosef=1&view=cart&task=addJS&format=json&lang=cs&Itemid=704 500 . . . . . jquery.min.js?8d12dd739f0eed9db9298c7eaf55290b:2


I am use Beautified JavaScript to search line:
And problem on line 3066:
a.send(t.hasContent && t.data || null), n = function (e, r) {


Nastavení Hodnota

PHP built Linux - SvetHostingu.cz
Typ databáze mysql
Verze databáze 5.5.5-10.3.12-MariaDB
Řazení databáze utf8_general_ci
Řazení při připojení k databázi utf8mb4_general_ci
verze PHP 7.2.15-SvetHostingu.cz
Webový server Apache
Rozhraní mezi Webovým serverem a PHP cgi-fcgi
Verze Joomla! Joomla! 3.9.14 Stable [ Amani ] 17-December-2019 15:00 GMT
Verze platformy Joomla! Joomla Platform 13.1.0 Stable [ Curiosity ] 24-Apr-2013 00:00 GMT
Uživatelský agent Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.117 Safari/537.36
Title: Re: Cant add to cart - 3.6.10 10211
Post by: marvays on January 14, 2020, 10:11:56 AM
not work werison:
3.6.10.10211
3.6.6.10191
3.6.4.10187
3.6.0.10113

latest working version
3.5.0.10098

original version before upgrade
3.4.2.9966

That is why I avoid updating existing e-shops :(

Title: Re: Cant add to cart - 3.6.10 10211
Post by: GJC Web Design on January 14, 2020, 10:50:36 AM
Take a sensible approach to debugging..

How can u possibly debug compressed and obfuscated JS?

Switch of all that crap so u have the actual JS returned and then the error will be human readable and fixable..
And no doubt it will be a not up to date template
Title: Re: Cant add to cart - 3.6.10 10211
Post by: Studio 42 on January 14, 2020, 14:01:22 PM
I tested in your current site and it work(but is bugged)
You should clear your browser cache, perhaps you have some obsolete loaded javascript.
Title: Re: Cant add to cart - 3.6.10 10211
Post by: marvays on January 14, 2020, 14:32:03 PM
Quote from: Studio 42 on January 14, 2020, 14:01:22 PM
I tested in your current site and it work(but is bugged)
You should clear your browser cache, perhaps you have some obsolete loaded javascript.

On my website is cashed off. And now i have version VirtueMart 3.5.0 10098, but website must work.
Title: Re: Cant add to cart - 3.6.10 10211
Post by: Studio 42 on January 14, 2020, 14:35:20 PM
Quote from: marvays on January 14, 2020, 14:32:03 PM

On my website is cashed off. And now i have version VirtueMart 3.5.0 10098, but website must work.
Sorry i cannot help you if the link is not Vm3.6
Title: Re: Cant add to cart - 3.6.10 10211
Post by: marvays on January 15, 2020, 03:23:56 AM
Quote from: Studio 42 on January 14, 2020, 14:35:20 PM
Quote from: marvays on January 14, 2020, 14:32:03 PM

On my website is cashed off. And now i have version VirtueMart 3.5.0 10098, but website must work.
Sorry i cannot help you if the link is not Vm3.6
I understand. I had to find the latest version that would work. I'll make a copy we can look at.
Title: Re: Cant add to cart - 3.6.10 10211
Post by: marvays on January 16, 2020, 17:24:00 PM
Today,
the customer puts the goods into the cart, goes to the cart and it is empty. Or puts 5 items into the cart and only 4 when opened. Where is the problem? My cache is off. Before the problems started, I had version 3.4.2. Now I have version VirtueMart 3.5.0 10098. When I had the latest, I couldn't put it in the cart at all.
Title: Re: Cant add to cart - 3.6.10 10211
Post by: jjk on January 16, 2020, 19:49:50 PM
Perhaps your customer overlooked to confirm "I declare that I am a person over 18 years of age." for one or more products?
Your website still has a number of errors caused by downloadable google fonts (Visible for example when using the Firefox Inspector > Console tab).
Title: Re: Cant add to cart - 3.6.10 10211
Post by: marvays on January 16, 2020, 20:27:11 PM
Quote from: jjk on January 16, 2020, 19:49:50 PM
Your website still has a number of errors caused by downloadable google fonts (Visible for example when using the Firefox Inspector > Console tab).

This problem are in subdomain "chat". this is commercial extention from Foxydesk. I must talk about it with him.
Title: Re: Cant add to cart - 3.6.10 10211
Post by: marvays on March 12, 2020, 05:38:16 AM
What causes this problem? I mean in general terms. Js? Interestingly, this is not a rule, but a random one. I still haven't solved this issue :(
Title: Re: Cant add to cart - 3.6.10 10211
Post by: GJC Web Design on March 12, 2020, 10:19:08 AM
Generally it is some disconnect between the ajax (JS) call to add a product to cart and whether the server receives it and responds in a correct manner

either the call is never made because of some JS error or the connectivity is flaky

A good test is to try with "Display modal popup upon 'Add to cart' unchecked --  then ajax (JS) isn't used and the products are added directly as a POST ..
If this works 100% then it is a JS/ajax problem
Title: Re: Cant add to cart - 3.6.10 10211
Post by: marvays on February 17, 2021, 08:49:20 AM
Quote from: GJC Web Design on March 12, 2020, 10:19:08 AM
A good test is to try with "Display modal popup upon 'Add to cart' unchecked --  then ajax (JS) isn't used and the products are added directly as a POST ..
If this works 100% then it is a JS/ajax problem

This test showed nothing. The problem still persists. And it's on more of my sites. Maybe at all.

I do not know what to do. Is it OPC to blame?
(https://i.ibb.co/d6LYpbh/Ko-k-CZ.jpg) (https://ibb.co/d6LYpbh)

Title: Re: Cant add to cart - 3.6.10 10211
Post by: marvays on February 17, 2021, 08:56:55 AM
So I'll randomly try to change some settings and hope to detect the problem.

(https://i.ibb.co/MSb1mK5/screenshot-vybaveniprovozu-cz-2021-02-17-08-54-44.png) (https://ibb.co/MSb1mK5)
Title: Re: Cant add to cart - 3.6.10 10211
Post by: marvays on February 18, 2021, 04:20:56 AM
Maybe?
Failed to load resource: the server responded with a status of 403 () /cache/com_onepage/opc_dynamic_cs-CZ_9558f836fdbd9318db9064fb9074318d.js?opcver=2Z0Z398Z2032Z120520
Title: Re: Cant add to cart - 3.6.10 10211
Post by: Jörgen on February 18, 2021, 08:25:07 AM
Looks like a OPC resource to me. Start there.

Jörgen
Title: Re: Cant add to cart - 3.6.10 10211
Post by: marvays on February 18, 2021, 08:26:37 AM
Quote from: Jörgen on February 18, 2021, 08:25:07 AM
Looks like a OPC resource to me. Start there.

Jörgen

Thx. Today all day i will be testing OPC or Template.