VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: grtrustme on September 23, 2011, 23:48:18 PM

Title: [fixed]1.9.8.RC2G Unchecking 'Using the Virtuemart jQuery' destroys administr
Post by: grtrustme on September 23, 2011, 23:48:18 PM
I m using Firefox (with Firebug), Ubuntu, Joomla 1.7, Virtuemart 2 (latest svn revision). I went to the configuration and unchecked the 'Using the Virtuemart jQuery' and saved it.

Now nothing can be saved in Administration. I get a jscript message that JQuery is not defined.

Tabs do not work, i can not edit Products, i can not edit Configuration, i can not edit anything and i can not enable again JQuery since the Save button (as well as all other script based functions) does not work any more.
Title: Re: 1.9.8.RC2G Using the Virtuemart jQuery destroys administration
Post by: grtrustme on September 23, 2011, 23:50:38 PM
And something else on this problem.
In the Front End, when i go in a product and press Add To Cart, it redirects me to the Cart page, but nothing gets added in the cart.
Title: Re: 1.9.8.RC2G Unchecking 'Using the Virtuemart jQuery' destroys administration
Post by: jjk on September 24, 2011, 09:54:40 AM
Quote from: grtrustme on September 23, 2011, 23:48:18 PM
Now nothing can be saved in Administration. I get a jscript message that JQuery is not defined.

Tabs do not work, i can not edit Products, i can not edit Configuration, i can not edit anything and i can not enable again JQuery since the Save button (as well as all other script based functions) does not work any more.

Same here. I've been curious if I have the same problem with the latest revision and disabled it too, because that checkbox didn't produce this problem a few days ago . Did you manage to recover from this meanwhile? I've tried to adjust the checkbox setting in the '_virtuemart_configs' database table 'config' column, but without success.

Update:
Meanwhile I got my adminstration back by re-setting the following values in the table '_virtuemart_configs', column 'config' to:
google_jquery=s:1:"0";
jquery=s:1:"1";

(I missed the google_jquery=s:1:"0"; in my first attempt)
Title: Re: 1.9.8.RC2G Unchecking 'Using the Virtuemart jQuery' destroys administration
Post by: grtrustme on September 24, 2011, 20:51:44 PM
I recovered from that by going to Tools & Migration > Renew Config By File

So i reset the settings to the default ones!
Title: Re: 1.9.8.RC2G Unchecking 'Using the Virtuemart jQuery' destroys administration
Post by: Milbo on September 26, 2011, 19:48:55 PM
Yeah, the thing is, it is not a bug, it is exactly meant that way, maybe we should add a pirate skull to it :-) .

It is meant for people who heavily work with jquery and who want to replace the jquery provided by vm with there own. Look on this page http://jqueryui.com/download, you see that you can create your own packages.

Of course VM2 does not include all, so when someone creates a plugin/component/module, which needs more functions just adds its own js file and can disable for performance the vm2 one.
Title: Re: 1.9.8.RC2G Unchecking 'Using the Virtuemart jQuery' destroys administration
Post by: jjk on September 26, 2011, 20:32:36 PM
Perhaps it would be a good idea to move these options into the "Dangerous Tools" section and add a big Caution!with a good red Warning! in the tooltip.
Title: Re: 1.9.8.RC2G Unchecking 'Using the Virtuemart jQuery' destroys administration
Post by: Studio 42 on September 26, 2011, 21:17:55 PM
Hi,
It's a little mistake, because the checkbox disable it in Front and admin.

I send the fix for broken javascript Admin Back-End on disable it for FE in SVN files
Title: Re: 1.9.8.RC2G Unchecking 'Using the Virtuemart jQuery' destroys administration
Post by: grtrustme on September 26, 2011, 22:50:56 PM
Fixed!!!!