Hi
WP 5.2.2
My client has reported problems with mobile visitors since I last update the theme.
I would have raised this earlier but just returned from holiday
Some are saying they cannot bring up any of the categories, or bring up individual products, cannot add products to cart and some with blank pages, i.e. /shop/ doesnt show any products.
A few PC and laptop users are saying they try to add to cart and it doesnt, or they press the buy several times and go to cart there are several quantities of the product.
I have been through and deactivated all plugin except WooCommerce and Legenda (plus extras needed for Legenda) the problem still exists.
I have deactivated Legenda and used Storefront and the problem goes away.
Checking my error logs on the server
If I call the ‘shop’ page I get
GET /shop/ HTTP/1.0 (code 200) all fine
Next I get either
POST /?wc-ajax=get_refreshed_fragments HTTP/1.0
or
POST /wp-admin/admin-ajax.php?action=wp_1_wc_regenerate_images&nonce=8d084be825 HTTP/1.0
It then displays a 404 error
GET /shop/null HTTP/1.0 (error 404)
This does not change the page at all but the error exists every time
On using the Storefront theme this stops and the logs just show
GET /shop/ HTTP/1.0 (code 200) all fine
Having been searching for answers on many sites it seems that the page is loading fine but straight after is calling
POST /?wc-ajax=get_refreshed_fragments HTTP/1.0
or
POST /wp-admin/admin-ajax.php?action=wp_1_wc_regenerate_images&nonce=8d084be825 HTTP/1.0
Which to me seems that at the end of the page load it is calling
?wc-ajax=get_refreshed_fragments
which in turn to providing
GET /shop/null HTTP/1.0 (error 404)
by adding “null” to the end of page, which I believe is telling WooCommerce the cart is empty (only a guess!)
I am guessing the call to ?wc-ajax=get_refreshed_fragments is done several times on the page (more than is need)
I have disabled the ‘ajax cart’ widget in top right of header and sent them straight to basket after selecting a product, but the problem is still there
Could this be ajax problem?
Could you please look into this issue Im having
Thanks in advance
Andy