Author Topic: Related products/categories not working  (Read 226 times)

blackrat999

  • Jr. Member
  • **
  • Posts: 124
Related products/categories not working
« 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

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 26314
  • Always on vacation
    • Jenkin Hill Internet
Re: Related products/categories not working
« Reply #1 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?
Kelvyn

Jenkin Hill Internet,
Keswick, Lake District

Unsolicited PMs/emails will be ignored.

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

Currently using VM3.2.4 on Joomla 3.8 PHP 7.0.23

Testing VM3.2.5.9653 on J!3.8

blackrat999

  • Jr. Member
  • **
  • Posts: 124
Re: Related products/categories not working
« Reply #2 on: October 11, 2017, 18:32:46 pm »
Sorry not sure what console you refer to, no errors anywhere that i can find - sorry!

Studio 42

  • Contributing Developer
  • Full Member
  • *
  • Posts: 2265
  • Joomla & Virtuemart addon developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3.0.x.y
Re: Related products/categories not working
« Reply #3 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"

blackrat999

  • Jr. Member
  • **
  • Posts: 124
Re: Related products/categories not working
« Reply #4 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

Studio 42

  • Contributing Developer
  • Full Member
  • *
  • Posts: 2265
  • Joomla & Virtuemart addon developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3.0.x.y
Re: Related products/categories not working
« Reply #5 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

blackrat999

  • Jr. Member
  • **
  • Posts: 124
Re: Related products/categories not working
« Reply #6 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.

Studio 42

  • Contributing Developer
  • Full Member
  • *
  • Posts: 2265
  • Joomla & Virtuemart addon developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3.0.x.y
Re: Related products/categories not working
« Reply #7 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.

blackrat999

  • Jr. Member
  • **
  • Posts: 124
Re: Related products/categories not working
« Reply #8 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.

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 26314
  • Always on vacation
    • Jenkin Hill Internet
Re: Related products/categories not working
« Reply #9 on: October 12, 2017, 13:03:10 pm »
Kelvyn

Jenkin Hill Internet,
Keswick, Lake District

Unsolicited PMs/emails will be ignored.

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

Currently using VM3.2.4 on Joomla 3.8 PHP 7.0.23

Testing VM3.2.5.9653 on J!3.8

blackrat999

  • Jr. Member
  • **
  • Posts: 124
Re: Related products/categories not working
« Reply #10 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 :-(