VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: blackrat999 on October 11, 2017, 16:46:21 PM

Title: Related products/categories not working
Post by: blackrat999 on October 11, 2017, 16:46:21 PM
Not had this before! Both Related products and Categories isnt working.
as you type in one of the boxes the search brings up the list of products but no images (see screenshot) , if you click one it selects but saving it removes what you selected so i cant use the feature at all.
Joomla 3.8.1 and VM 3.2.4
Title: Re: Related products/categories not working
Post by: jenkinhill on October 11, 2017, 17:23:02 PM
Both these work OK in my site J3.8.1/VM3.2.4  and also in the demo site - http://demo.virtuemart.net

Check console for js errors?
Title: Re: Related products/categories not working
Post by: blackrat999 on October 11, 2017, 18:32:46 PM
Sorry not sure what console you refer to, no errors anywhere that i can find - sorry!
Title: Re: Related products/categories not working
Post by: Studio 42 on October 11, 2017, 18:39:02 PM
Press F12, the console appears on Chrome or firefox.
If not, then right click and click "inspect element"
Title: Re: Related products/categories not working
Post by: blackrat999 on October 11, 2017, 18:58:29 PM
ah yes of course sorry!

this is what shows up in the Console when i try the related products field


          JQMIGRATE: Migrate is installed, version 1.4.1  jquery-migrate.min.js:2:542
Use of getAttributeNode() is deprecated. Use getAttribute() instead.  mootools-core.js:108:287
keepAlive each 14.19 minutes and maxlps 5  vmkeepalive.js:7:9
Empty string passed to getElementById(). jquery.min.js:2:24932
This site appears to use a scroll-linked positioning effect. This may not work well with asynchronous panning; see https://developer.mozilla.org/docs/Mozilla/Performance/ScrollLinkedEffects for further details and to join the discussion on related tools and features!  index.php
Empty string passed to getElementById(). jquery.min.js:2:24932
Title: Re: Related products/categories not working
Post by: Studio 42 on October 11, 2017, 21:25:09 PM
Do you have any other plugin adding mootools scripts?
In Joomla 3.8.1 mootools is deprecated and should not be loaded, try to disable your script or if you use not default admin template, try to switch to  isis - Default template

Empty string passed to getElementById(). jquery.min.js:2:24932 can perhaps have same origin, becauss mootools conflicts
Title: Re: Related products/categories not working
Post by: blackrat999 on October 12, 2017, 10:31:06 AM
Thanks for the suggestion.
I am using standard admin template there are one or two extra plugins installed and i have tried disabling them with no change.

i also have another site on the same template, same VM and Joomla versions which works fine, the console messages are exactly the same on he working site, so i also get the message Empty string passed to getElementById(). jquery.min.js:2:24932 yet the related products works fine.

any other suggestions ? thanks for looking.
Title: Re: Related products/categories not working
Post by: Studio 42 on October 12, 2017, 10:54:20 AM
The script can be loaded by a Joomla system plugin, from cache cleaner or akeeba for eg.
I tested myself with Joomla 3.8.1 and VM 3.2.4 and have not this error, i have no extra plugin or module in this test site. So try to check your plugins,modules ... loaded in back-end.
Perhaps it's a cache problem with your script too, if you have just update Joomla and  VM, but i don't think.
Title: Re: Related products/categories not working
Post by: blackrat999 on October 12, 2017, 12:43:14 PM
I have tried disabling every admin plugin/Module/Component that isnt locked apart from Virtuemart and that doesnt change the way it works.
Would a non admin plugin/component possibly affect the related products ?
more and more puzzled and frustrated !
thanks for your time on this.
Title: Re: Related products/categories not working
Post by: jenkinhill on October 12, 2017, 13:03:10 PM
I wonder if this is related:  http://forum.virtuemart.net/index.php?topic=137040.msg485198#msg485198
Title: Re: Related products/categories not working
Post by: blackrat999 on October 12, 2017, 13:45:28 PM
I tried that in a new .htaccess and the original one, cleared cache and tried a new browser, no change :-(
Title: Re: Related products/categories not working
Post by: blackrat999 on October 22, 2017, 19:10:48 PM
Any more suggestions please anyone ?

thanks
Title: Re: Related products/categories not working
Post by: Studio 42 on October 22, 2017, 22:05:49 PM
I installed 2 new shops for customer and used related products and categories, no problem.
In my demo site, same.
All 3 shops use Last Joomla and last VM
Note that mootools is not loaded.
I Think the problem is because mootools and related javascript and this is not loaded in core with the default Admin template.
So remove any modules,plugin and template should solve the problem. I cannot give you any other answer, because it should be the solution(for me).
Title: Re: Related products/categories not working
Post by: blackrat999 on October 23, 2017, 10:39:15 AM
Ok thanks - i have tried another admin template, Mootools disabler plugin with all settings, tried removing components, plugins and modules but cant get the related products to work at all, hopefully someone might come across this one day and have an answer.
thanks for your help anyway
Title: Re: Related products/categories not working
Post by: Studio 42 on October 23, 2017, 14:20:06 PM
You can buy vm Be Pro  to add related categories and products here https://shop.st42.fr/en/products/vm-be-pro-batch-product-edit.htm, but of course it not solve the core problem.
Title: Re: Related products/categories not working
Post by: blackrat999 on December 01, 2017, 10:28:12 AM
Weird - today it is working?!
::)
Title: Re: Related products/categories not working
Post by: Gopherit on December 05, 2017, 09:38:59 AM
Have you done anything to solve this? For me I have exactly the same problem since some weeks, after updating and cant get it right anymore
Title: Re: Related products/categories not working
Post by: blackrat999 on December 05, 2017, 10:16:13 AM
Not specifically no, I use the vmuikit onepagecheckout for the cart if that is a connection? I did try removing it during tests but that didnt help.
currently VM 3.2.4
Joomla 3.8.2

I dont dare go to VM 3.2.6 now!