VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: MAD King on September 22, 2019, 17:37:16 PM

Title: Product Filter Wheel keeps Spinning
Post by: MAD King on September 22, 2019, 17:37:16 PM
When I click on "Products" at the backend, the website freezes and I am not able to click for about 10 seconds on anything and after that the Filter Wheel keeps spinning.

I am not sure if this is related to topic

http://forum.virtuemart.net/index.php?topic=143514.0

Joomla! 3.9.11
VirtueMart 3.6.0 10113
Title: Re: Product Filter Wheel keeps Spinning
Post by: GJC Web Design on September 22, 2019, 18:10:23 PM
something is failing your product categories ajax call .. check the console/ browser debug to see the response to the

/index.php?option=com_virtuemart&view=product&type=getCategoriesTree&virtuemart_product_id=xxx&format=json&lang=xx
Title: Re: Product Filter Wheel keeps Spinning
Post by: MAD King on September 22, 2019, 18:30:33 PM
It shows

Quote- Unexpected control character found{

and then the list of categories with values.
Title: Re: Product Filter Wheel keeps Spinning
Post by: GJC Web Design on September 22, 2019, 19:57:42 PM
hmmm...   some strangely named cat?   with comma or quote for example?
Title: Re: Product Filter Wheel keeps Spinning
Post by: MAD King on September 22, 2019, 20:26:29 PM
No.  Just characters (ABC).
It started doing this after I recently updated VM.
Title: Re: Product Filter Wheel keeps Spinning
Post by: MAD King on September 22, 2019, 21:37:35 PM
I disabled everything under Extension-Manage except these two

VirtueMart
VirtueMart Administrator Menu

and this error still pops up.
Title: Re: Product Filter Wheel keeps Spinning
Post by: Studio 42 on September 22, 2019, 21:37:58 PM
If you have PHP error display On, then if you have any error the json is not well formated.
Disable PHP debug(in joomla and in your server) and try if it work.
Title: Re: Product Filter Wheel keeps Spinning
Post by: MAD King on September 22, 2019, 21:51:40 PM
It's off. I never turn them on.
Title: Re: Product Filter Wheel keeps Spinning
Post by: Studio 42 on September 22, 2019, 22:05:03 PM
Check in the javascript console and/ or json response
Title: Re: Product Filter Wheel keeps Spinning
Post by: MAD King on September 22, 2019, 22:17:41 PM
I do not know how to do this.
Title: Re: Product Filter Wheel keeps Spinning
Post by: Studio 42 on September 23, 2019, 09:46:08 AM
On google chrome F12 and the network>XHR tab display all ajax response.
YOu have first to open the console and refresh the page after, to be sure to see the response
But - Unexpected control character found{ is strange for a json, because json use this for the response !
If you have anything outside the curly brackets, then you get en error and categories cannot be loaded.
Title: Re: Product Filter Wheel keeps Spinning
Post by: MAD King on September 23, 2019, 15:02:51 PM
Thank you. The XHR tab does not show anything except that it loaded probably. How else can I find what causes this error?
Title: Re: Product Filter Wheel keeps Spinning
Post by: MAD King on September 23, 2019, 15:09:19 PM
I tested it with the Beez3 - Default template with nothing in it and I get the same error when I click on the + on the VM - Search in Shop. So, it has to do something with VM since it occurred after the latest VM update.
Title: Re: Product Filter Wheel keeps Spinning
Post by: Jörgen on September 23, 2019, 16:00:05 PM
Check your search module, do you have some custom text perhaps?
Jörgen @ Kreativ Fotografi
Title: Re: Product Filter Wheel keeps Spinning
Post by: MAD King on September 23, 2019, 16:17:11 PM
No custom text and I disabled already all modules except VirtueMart and VirtueMart Administrator Menu and this error still pops up. It must be something inside VM I guess. Max just messaged me that 3.6.2 has been released. I will test it with that.
Title: Re: Product Filter Wheel keeps Spinning
Post by: MAD King on September 25, 2019, 14:26:50 PM
Updated to 3.6.2 10159 and it is working again.
Title: Re: Product Filter Wheel keeps Spinning
Post by: Milbo on September 25, 2019, 14:28:27 PM
great. even if we do not really know the reason for that.
Title: Re: Product Filter Wheel keeps Spinning
Post by: MAD King on September 25, 2019, 14:35:12 PM
Yes, but someone must have it fixed without knowing.  :D