Author Topic: [solved] Product and Product Category error vm2admin.js  (Read 6598 times)

zainabubu

  • Jr. Member
  • **
  • Posts: 128
  • VirtueMart Version: 2.0
[solved] Product and Product Category error vm2admin.js
« on: May 25, 2013, 16:35:24 pm »
Hello,

I am unable to edit my products or category from the back end. When I go in to joomla debug sys and lang, I am able to make changes, but then that causes a slew of problems in my vm front end. I use vm 2.0.20b and joomla 2.5, I've updated my tables in vm tools, and no help there. I also disable azrul mambot, and there was difference at all. Even when I tried to upload my Categories via csvi pro, they showed on my sql table, but not in Virtuemart. So I was forced to enter all the categories while in joomla debug mode. Please me.
I do not have google jquery or vm jquery turned on. Also this is a single language site, en_Gb. In chrome's console, I get this:

Quote
Uncaught TypeError: Object [object Object] has no method 'vm2admin' index.php:315
(anonymous function) index.php:315
l jquery.min.js:2
c.fireWith jquery.min.js:2
v.extend.ready jquery.min.js:2
Resource interpreted as Image but transferred with MIME type text/html: "http://www.xxx.com/test2/".

zainabubu

  • Jr. Member
  • **
  • Posts: 128
  • VirtueMart Version: 2.0
Re: Product and Product Category error vm2admin.js
« Reply #1 on: May 27, 2013, 15:58:05 pm »
Now I'm noticing that I can't even add products to cart also. When I click on add a product, it takes me back to the homepage, and nothing gets added to the cart, nor does the popup show up.
I have tried disabling popup cart, vm query and all sorts, but nothing works.
I've also found that it's not allowing me to sync with webgiligty's ecc properly
I've also tried to get the jqueryEasy plugin, but it's the second try now and I have not received registration confirmation email to download the file. And the web contact us person has not responded.

Any help will be appreciated.

url is: xxx.com /test2/

zainabubu

  • Jr. Member
  • **
  • Posts: 128
  • VirtueMart Version: 2.0
Re: Product and Product Category error vm2admin.js
« Reply #2 on: May 27, 2013, 16:36:45 pm »
In VM2 product category, i get,

Timestamp: 5/27/13 3:33:56 PM
Error: TypeError: $(...).vm2admin is not a function
Source File: http://xxx.com/test2/administrator/index.php?option=com_virtuemart&view=category&task=edit&cid=19
Line: 319

In add new product I get

Timestamp: 5/27/13 3:35:38 PM
Error: TypeError: jQuery(...).chosen is not a function
Source File: http://xxx.com/test2/administrator/index.php
Line: 2542

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 28224
  • Always on vacation
    • Jenkin Hill Internet
Re: Product and Product Category error vm2admin.js
« Reply #3 on: May 27, 2013, 16:39:07 pm »
Well I looked at http://iyaoloja.com/test2/shop/store-frontpage  - VirtueMart won't work there as you do not seem to be loading any of the VM css or JavaScript files.

You should first test a VirtueMart installation using the Beez20 template without any extra plugins etc. Then if you switch templates and it does not work you start to test what is wrong with that template. Usually, but not always, it is a js problem.
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Currently using VirtueMart 3.8.9.10473 on Joomla 3.9.28 PHP 7.4.14

zainabubu

  • Jr. Member
  • **
  • Posts: 128
  • VirtueMart Version: 2.0
Re: Product and Product Category error vm2admin.js
« Reply #4 on: May 28, 2013, 18:10:00 pm »
thanks too the easiest route open for me. Recreated the whole site. And will definitely be more backup conscious. Good thing I haven't populated it with tedious info yet. Many thanks.

zainabubu

  • Jr. Member
  • **
  • Posts: 128
  • VirtueMart Version: 2.0
Re: Product and Product Category error vm2admin.js
« Reply #5 on: June 05, 2013, 09:28:17 am »
sigh. back to the same problem. was very careful about installing only components absolutely needed. Last thing I installed was Affiliate for VM. Luckily, I backed up before installing. Will revert to backed up file and see if this problem was there before the installation. Weirdly, I only get this problem in VM Product and Product Category add/edit section.

Uncaught TypeError: Object [object Object] has no method 'chosen' index.php:2284
(anonymous function) index.php:2284

Uncaught TypeError: Object [object Object] has no method 'vm2admin' index.php:307
(anonymous function) index.php:307
l jquery.min.js:2
c.fireWith jquery.min.js:2
v.extend.ready jquery.min.js:2
A

zainabubu

  • Jr. Member
  • **
  • Posts: 128
  • VirtueMart Version: 2.0
Re: Product and Product Category error vm2admin.js
« Reply #6 on: June 05, 2013, 12:48:09 pm »
ha! it was simple image pro that caused it. hahaha! prolly the same thing that caused my last headache. Thank God I finally spotted it.

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 28224
  • Always on vacation
    • Jenkin Hill Internet
Re: Product and Product Category error vm2admin.js
« Reply #7 on: June 05, 2013, 13:04:56 pm »
Good! Building a site bit by bit with regular backups is really the best way to work.
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Currently using VirtueMart 3.8.9.10473 on Joomla 3.9.28 PHP 7.4.14

jshoeks

  • Beginner
  • *
  • Posts: 17
Re: Product and Product Category error vm2admin.js
« Reply #8 on: June 10, 2013, 11:25:23 am »
As i had the same problem, i started to look into this and trying to find out why this fails.

After alot of debugging on this issue, the problem is actually chosen runs only on jquery 1.6.4 default.

I had jquery easy installed and was running jquery 1.8 in front and backend.
When i disabled jquery easy in backend i didn't have this problem anymore.

This leads me to belive that there is something wird in the way the plugin i used, cause from what i can see on their page, it should work with any version of jquery over 1.4

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 10144
  • VM3.9 Eagle Owl
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: Product and Product Category error vm2admin.js
« Reply #9 on: June 10, 2013, 14:06:40 pm »
Thanks for the explanation. good to know
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/