Author Topic: [fixed]1.9.8.RC2G Unchecking 'Using the Virtuemart jQuery' destroys administr  (Read 3942 times)

grtrustme

  • Beginner
  • *
  • Posts: 32
  • Perfection in your hands
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.

grtrustme

  • Beginner
  • *
  • Posts: 32
  • Perfection in your hands
Re: 1.9.8.RC2G Using the Virtuemart jQuery destroys administration
« Reply #1 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.

jjk

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3648
  • using Matomo instead of Google Analytics
Re: 1.9.8.RC2G Unchecking 'Using the Virtuemart jQuery' destroys administration
« Reply #2 on: September 24, 2011, 09:54:40 am »
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)
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

grtrustme

  • Beginner
  • *
  • Posts: 32
  • Perfection in your hands
Re: 1.9.8.RC2G Unchecking 'Using the Virtuemart jQuery' destroys administration
« Reply #3 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!

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 10040
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: 1.9.8.RC2G Unchecking 'Using the Virtuemart jQuery' destroys administration
« Reply #4 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.
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

jjk

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3648
  • using Matomo instead of Google Analytics
Re: 1.9.8.RC2G Unchecking 'Using the Virtuemart jQuery' destroys administration
« Reply #5 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.
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

Studio 42

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 4331
  • Joomla & Virtuemart developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3
Re: 1.9.8.RC2G Unchecking 'Using the Virtuemart jQuery' destroys administration
« Reply #6 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

grtrustme

  • Beginner
  • *
  • Posts: 32
  • Perfection in your hands
Re: 1.9.8.RC2G Unchecking 'Using the Virtuemart jQuery' destroys administration
« Reply #7 on: September 26, 2011, 22:50:56 pm »
Fixed!!!!