VirtueMart Forum

VirtueMart 2 + 3 + 4 => Product creation => Topic started by: iWim on April 22, 2020, 10:58:18 AM

Title: [3.6.10] Cannot add/delete categories in Product Edit page
Post by: iWim on April 22, 2020, 10:58:18 AM
Hey, hey,

I saw a topic about this a couple of days ago, but that was about an outdated version of VM. Mine is up-to-date.

When I create a product, set categories and save all is good.

When I then add or delete a category and save & close all is good.

When I open to edit the product the added category is gone.

When I add or delete a category and save, the added category is gone or the deleted category is back.

Joomla! 3.9.16
VM 3.6.10 10211
PHP 7.3.17
MySQL 5.6.47

Annoyingly: This happens on the live site, but not on my localhost.
My localhost is not an exact copy, but the Joomla/VM versions are the same.

Can you help me solve this?
If you need any more information, let me know.

Thank you.
Wim
Title: Re: [3.6.10] Cannot add/delete categories in Product Edit page
Post by: Jörgen on April 22, 2020, 11:39:15 AM
Sound like a js error or cache problem. Do You have cache turned on by your site provider ?

Jörgen @ Kreativ Fotografi
Title: Re: [3.6.10] Cannot add/delete categories in Product Edit page
Post by: iWim on April 24, 2020, 09:55:40 AM
Hallo Jörgen,

I found these error/warnings in Firefox console:
(Translated from Dutch, words could be a bit different)

These are the same on the live site and on localhost.
Except for the random number bemind the '?'.

(Warning) This page Uses the non-standaard property 'zoom'. Considder using Calc() in the relevant propertyvalues or use 'transfer' together with 'transfer-origin: 0 0'.
JQMIGRATE: Migrate is installed, version 1.4.1

(Error) TypeError: t.fn.tooltip.Constructor is undefined
    <anoniem> http://(...)/media/jui/js/bootstrap-tooltip-extended.min.js?0d90c9e0469751680d78c4f66738c63f:6
    <anoniem> http://(...)/media/jui/js/bootstrap-tooltip-extended.min.js?0d90c9e0469751680d78c4f66738c63f:6

I'll contact my webhost on the server cache.
Meanwhile can I see the cache setting somewhere? Joomla System info? Plesk?

Thank you.
Wim
Title: Re: [3.6.10] Cannot add/delete categories in Product Edit page
Post by: pinochico on April 24, 2020, 14:00:06 PM
Really VirtueMart use this fn.tooltip?

I think is from templaate, isn't it.

better send your URL so that we can better evaluate.
Title: Re: [3.6.10] Cannot add/delete categories in Product Edit page
Post by: iWim on April 24, 2020, 17:59:54 PM
Hey pinochico,

Thanks for trying to help out.

Not sure if the url can help here: It's on the backend, so the template is Isis.
After clicking around a bit these t.fn.tooltip errors are only on VM pages.

Still waiting on a reply from the webhost about cache though.

Regards,
Wim
Title: Re: [3.6.10] Cannot add/delete categories in Product Edit page
Post by: pinochico on April 24, 2020, 19:18:16 PM
QuoteNot sure if the url can help here: It's on the backend, so the template is Isis.

aha, I must really read twice, it't my mistake, sorry

Then I don't understand why in admin and isis you have error about zoom.
Ok, I will testing on my fresh installation anfd waiting for you.
Title: Re: [3.6.10] Cannot add/delete categories in Product Edit page
Post by: iWim on April 25, 2020, 16:13:57 PM
QuoteDo You have cache turned on by your site provider
The webhost didm't quite onderstaand the question... Maybe I asked it wrong.

Anyway... they did tell me where I could find the cache setting in Plesk: it is OPCache and it's turned on.
Turning it off didn't make any difference.
Title: Re: [3.6.10] Cannot add/delete categories in Product Edit page
Post by: GJC Web Design on April 25, 2020, 17:03:40 PM
you need to do some deeper study as to what is actually happening ..

look at the network traffic and see what exactly is posted to the server when you save the product.
Cats are sourced by ajax and rendered by chosen so it very JS dependent
Title: Re: [3.6.10] Cannot add/delete categories in Product Edit page
Post by: iWim on April 28, 2020, 12:54:29 PM
I believe I have fixed it.  :)

Thanks to all, but the e-beer goes to GJC for suggesting to look at the network traffic.
After that some lightbulbs started to flicker...  ???

I had added mod_expires to the .htaccess a while ago.
After I removed it, emtied browser cache, things started to work again as exprected.
Title: Re: [3.6.10] Cannot add/delete categories in Product Edit page
Post by: Studio 42 on April 28, 2020, 18:00:19 PM
mod_expires, need to have json type to 0 secondes, to not cache it.