VirtueMart Forum

VirtueMart 2 + 3 + 4 => Installation, Migration & Upgrade => Topic started by: raydekker on April 26, 2017, 06:55:06 AM

Title: Category Filter problems after upgrading from 3.0.18 to 3.2.1
Post by: raydekker on April 26, 2017, 06:55:06 AM
Good day, I'm experiencing issues in the backend when I go to my VM products section.
Here I filter out products I want to look at usually by selecting the category filter but now: it's EMPTY.
What I'm saying is that when I click on the category filter dropdown there is nothing in there but however... The categories ARE in fact there (going to VM > Product Categories) and my shop runs fine in the frontend.
It runs fine untill I click on "save" in a product and then it deletes the category from the product... (Category is still there in VM > Categories)...

I've tried to empty (trunkate) my database tables related to the products and categories but this does not change anything.

I've spoken to someone else too experiencing the same problem so it's not just my system with possibly corrupted (manually modified) files.
These problems just started after updating Joomla to 3.7.0 and VM to 3.2.1.

Hope someone can help and experiences the same issues.

Joomla version 3.7.0
Title: Re: Category Filter problems after upgrading from 3.0.18 to 3.2.1
Post by: Jörgen on April 26, 2017, 07:48:50 AM
Vm 3 is AFAIK not compatible with Joomla 3.7.0.

This could explain Your problems.

regards

Jörgen @ Kreativ Fotografi
Title: Re: Category Filter problems after upgrading from 3.0.18 to 3.2.1
Post by: raydekker on April 26, 2017, 12:18:32 PM
Thanks Jorgen! That would indeed explain the problem, I'll restore my backup taken before updating and leave Joomla as it is... So only update VM.
But still, shouldn't it be compatible? I understand if it is a proper upgrade as in from 3.x to 4.x or something that it might and usually will cause issues but this is just an update.
Title: Re: Category Filter problems after upgrading from 3.0.18 to 3.2.1
Post by: jenkinhill on April 26, 2017, 12:54:29 PM
I am testing VM3.2.2#9508 with J3.7 and categories show OK in the selector.  Also OK on VM3.2.1 and J3.6.5. There are some styling issues affecting the VM BE in J3.7 due to changes in Isis css so it is not fully back compatible for several extensions.

The Joomla bug tracker suggests that J3.7.1 is not going to be far away!
Title: Re: Category Filter problems after upgrading from 3.0.18 to 3.2.1
Post by: raydekker on April 28, 2017, 03:24:19 AM
No, I've restored by site's backup (Joomla 3.6.5 and VM 3.0.18) and ONLY updated Virtuemart + VM AIO and the same problem :O
So the problem sits somewhere in Virtuemart 3.2.1 and my system.

So the initial problem is that the dropdown menu for Category filter stopped working after the update (in VM > Products) But the categories are in fact there.

mmm... interesting ;) For now I went back again to VM 3.0.18...
Title: Re: Category Filter problems after upgrading from 3.0.18 to 3.2.1
Post by: jenkinhill on April 28, 2017, 11:23:27 AM
What PHP version are you using?
Title: Re: Category Filter problems after upgrading from 3.0.18 to 3.2.1
Post by: raydekker on April 29, 2017, 07:59:43 AM
php -v gives:
PHP 5.6.30-0+deb8u1 (cli) (built: Feb  8 2017 08:50:21)
Title: Re: Category Filter problems after upgrading from 3.0.18 to 3.2.1
Post by: raydekker on April 29, 2017, 11:30:22 AM
Ok, I've just updated PHP5 to PHP7.0 (quite a webpage load time improvement off topic! amazing!).

So I've got Joomla 3.7.0 and VM 3.2.0 at the moment.

Same story, NO category filters :(
So in VM Products, I click on the category filter but nothing shows up...
However when I click on Manufacturer filter next to it, that one does work all ok...

See screenshot
Title: Re: Category Filter problems after upgrading from 3.0.18 to 3.2.1
Post by: GJC Web Design on April 29, 2017, 21:13:34 PM
have you tried the last VM3.2.1 -- it has a number of improvements

http://dev.virtuemart.net/attachments/download/1070/com_virtuemart.3.2.1_extract_first.zip
Title: Re: Category Filter problems after upgrading from 3.0.18 to 3.2.1
Post by: raydekker on May 03, 2017, 07:54:13 AM
Yes I've tried VM 3.2.1 and 3.2.0 but both the same issue.
Can't figure out what is wrong.
Title: Re: Category Filter problems after upgrading from 3.0.18 to 3.2.1
Post by: GJC Web Design on May 03, 2017, 23:21:11 PM
Hmmm ... just did an upgrade to J3.7/VM3.2.1 and interestingly in English admin the cat dropdown was there but not in Dutch

Only Dutch is enabled in VM and it is the default J lang

fiddling with the lang fallbacks as in the screen (but also updating to the latest testers VM3.2.2_9522 - maybe that did it..  :(  ) and the cats reappeared in Dutch
Title: Re: Category Filter problems after upgrading from 3.0.18 to 3.2.1
Post by: raydekker on May 04, 2017, 00:03:28 AM
mmm... yes that is interesting.
I'm glad at least you're having the same issue.
In our case, we've ONLY got English (en-GB) installed in Joomla and that is also the default VM language, I double checked.
I haven't played around with multiple languages, but maybe I can create a test site and add another language to see what happens...

Thanks for the reply.
Title: Re: Category Filter problems after upgrading from 3.0.18 to 3.2.1
Post by: raydekker on May 04, 2017, 02:25:40 AM
Could this have got something to do with it? Happens after updating VM 3.0.18 to 3.2.1.
I don't think so as it's only for the menu item creation which is already there and seems to work.
Just wanted to share to be a 100% sure...

Error
The alias com-virtuemart is already being used by COM_VIRTUEMART menu item in the menu (remember it may be a trashed item).

Warning
Error building Administrator Menus.
Title: Re: Category Filter problems after upgrading from 3.0.18 to 3.2.1
Post by: jenkinhill on May 04, 2017, 12:18:32 PM
Quote from: raydekker on May 04, 2017, 02:25:40 AM
Error
The alias com-virtuemart is already being used by COM_VIRTUEMART menu item in the menu (remember it may be a trashed item).

Warning
Error building Administrator Menus.

That is related to the installation of VM menu module in the Isis template in J3.7 backend.  It is caused by an unexpected change of meny type in J3.7  Not likely to be related to the wierd category issue.
Title: Re: Category Filter problems after upgrading from 3.0.18 to 3.2.1
Post by: Milbo on May 07, 2017, 08:29:56 AM
Quote from: raydekker on May 04, 2017, 00:03:28 AM
mmm... yes that is interesting.
I'm glad at least you're having the same issue.

It is not an issue. You run in fallback mode, vm3.2.2 has the solution for this problem.
Title: Re: Category Filter problems after upgrading from 3.0.18 to 3.2.1
Post by: raydekker on May 09, 2017, 00:24:11 AM
Hi Milbo, thank you very much!
Ahh ok so that's the problem, I've read some people were having these issues with multilingual sites too.
For now it's ok as I import everything using CSVI Pro (so I don't really need to have the category filter working), but eventually I'd like to get it to work again.
I can wait for the official release of VM3.2.2, it's still a functional site and I would rather not install unofficial versions just yet.
Is there maybe an easy way to get it out of "fallback mode"? I've checked my language settings but it's just set to en-GB in Joomla and VM and it's the ONLY language.

Again thanks for finding out why it stopped working, the solution is near :)
Title: Re: Category Filter problems after upgrading from 3.0.18 to 3.2.1
Post by: raydekker on May 18, 2017, 00:26:00 AM
I've updated VM to 3.2.2 but the problem still persists... Still not able to click on the category filter dropdown in VM > Products.
Also updated to Joomla 3.7.1
Title: Re: Category Filter problems after upgrading from 3.0.18 to 3.2.1
Post by: Milbo on May 22, 2017, 10:01:05 AM
Please check in your browser console for java script errors. The category filter is loaded by ajax.
Title: Re: Category Filter problems after upgrading from 3.0.18 to 3.2.1
Post by: raydekker on May 22, 2017, 11:26:55 AM
I found the following line must be the issue:
TypeError: Virtuemart.loadCategoryTree is not a function[Learn More]

Full console errors (from FireBug):
Use of getAttributeNode() is deprecated. Use getAttribute() instead.  mootools-core.js:108:287
TypeError: t.fn.tooltip.Constructor is undefined[Learn More]  bootstrap-tooltip-extended.min.js:6:31
   <anonymous> https://www.btechsolutions.com.au/media/jui/js/bootstrap-tooltip-extended.min.js:6:31
   <anonymous> https://www.btechsolutions.com.au/media/jui/js/bootstrap-tooltip-extended.min.js:6:2
TypeError: Virtuemart.loadCategoryTree is not a function[Learn More]  index.php:223:3
   <anonymous> https://www.btechsolutions.com.au/administrator/index.php:223:3
   i https://www.btechsolutions.com.au/media/jui/js/jquery.min.js:2:27444
   fireWith https://www.btechsolutions.com.au/media/jui/js/jquery.min.js:2:28213
   ready https://www.btechsolutions.com.au/media/jui/js/jquery.min.js:2:30004
   K https://www.btechsolutions.com.au/media/jui/js/jquery.min.js:2:30366
Empty string passed to getElementById().

mmm, but I don't know how to fix it... If Virtuemart.loadCategoryTree is NOT a function then WHAT is the correct function and where to change it (as in what file)?
It worked before, I mean the function does not just change itself... Or I'm using some custom code and this function is part of it (that could be the case as I DID make some modifications here and there). But I've never changed th function Virtuemart.loadCategoryTree...

Mmm, at least we're getting closer :)

Thanks for the tip Milbo, should have checked that sooner ;)
Title: Re: Category Filter problems after upgrading from 3.0.18 to 3.2.1
Post by: Milbo on May 22, 2017, 12:30:51 PM
Do you use some admin template?
Title: Re: Category Filter problems after upgrading from 3.0.18 to 3.2.1
Post by: raydekker on May 22, 2017, 23:27:17 PM
No the default protostar