VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: xnakos on December 07, 2011, 14:32:35 PM

Title: VM 2.0 RC3 F and J1.7.3 - Featured Products module crash
Post by: xnakos on December 07, 2011, 14:32:35 PM
When at least one featured product exists, the following occurs on the site's homepage, if the module is included there:

Fatal error: Using $this when not in object context in /var/www/test/siolasmaps/administrator/components/com_virtuemart/helpers/currencydisplay.php on line 96
Title: Re: VM 2.0 RC3 F and J1.7.3 - Featured Products module crash
Post by: xnakos on December 07, 2011, 15:53:49 PM
The error occurs when Show Prices is unticked (I guess my bug report wasn't that good but fortunately the currency error kind of pinpointed what should be checked). Featured Products module shows the featured products when Show Prices is ticked. But there seems to be another bug too, when the module is working. If I have two featured products, let's say A and B, the module displays A B A B, that is it displays twice what it is supposed to display.
Title: Re: VM 2.0 RC3 F and J1.7.3 - Featured Products module crash
Post by: Milbo on December 07, 2011, 16:04:27 PM
one answer is here http://forum.virtuemart.net/index.php?topic=94518.0

What do you mean with unticked? not entered?
Title: Re: VM 2.0 RC3 F and J1.7.3 - Featured Products module crash
Post by: xnakos on December 07, 2011, 16:09:27 PM
I mean when you go to Configuration and visit the Pricing tab, when you uncheck (maybe I should have used that word :) ) the 'Show Prices' option, then the error occurs. Thanks for the info on the other thing.
Title: Re: VM 2.0 RC3 F and J1.7.3 - Featured Products module crash
Post by: Milbo on December 07, 2011, 16:20:31 PM
hmm works for me? I need more information. Did you unchecked all but not "Show Prices" or did you let everything checked and just unchecked Show Prices. Hmm I dont have any clue atm.
Title: Re: VM 2.0 RC3 F and J1.7.3 - Featured Products module crash
Post by: xnakos on December 07, 2011, 16:44:41 PM
I left everything below checked. I just unchecked Show Prices. I don't believe I have changed much in general, though. I have also checked 'use as a catalogue' but it does not make any difference. I will look into it. Thank you.
Title: Re: VM 2.0 RC3 F and J1.7.3 - Featured Products module crash
Post by: xnakos on December 07, 2011, 17:44:09 PM
Milbo, I think I found the way for you to reproduce the bug. Disable all other VM modules, leaving just Featured Products. I think Shopping Cart does some stuff (try playing with only these two modules, publishing and unpublishing them), without which Featured Products crashes. Show Prices should be unchecked, don't forget that.
Title: Re: VM 2.0 RC3 F and J1.7.3 - Featured Products module crash
Post by: Cleanshooter on December 07, 2011, 17:53:39 PM
xnakos - I tried to reproduce the bug on the new RC3 F by disabling the modules and making one of my products "featured" and unchecking "Show Prices".   I still was unable to reproduce the error.  What version of VM do you have installed?
Title: Re: VM 2.0 RC3 F and J1.7.3 - Featured Products module crash
Post by: xnakos on December 07, 2011, 18:00:03 PM
I created a demo site you will be able to visit. I will PM you in 2' with details. I did a fresh installation of J1.7.3 and VM RC3 F 15' ago.
Title: Re: VM 2.0 RC3 F and J1.7.3 - Featured Products module crash
Post by: Cleanshooter on December 07, 2011, 18:19:50 PM
After looking I think the problem is that you haven't added VM to any menu.  the featured product module might require VM to be availab ein the menu somewhere.... I was still unable to see the error...

(http://joemotacek.ergecreative.com/SSFeatrued_Prod.png)
Title: Re: VM 2.0 RC3 F and J1.7.3 - Featured Products module crash
Post by: xnakos on December 07, 2011, 18:31:43 PM
Cleanshooter, thank you for looking into it. Could you try visiting the demo site once again? Now the VM main page exists as a menu item. I published the one you created. But notice the crash on the homepage. Then go and publish the Shopping Cart module. OR go and check 'Show Prices' from Configuration -> Pricing. Check the homepage after each one of these actions.
Title: Re: VM 2.0 RC3 F and J1.7.3 - Featured Products module crash
Post by: Cleanshooter on December 07, 2011, 20:01:59 PM
Ahh I finally see the error.  I'm not sure why this is happening on your site.  When I apply similar circumstances to my install I am still unable to reproduce the error.  I'm not sure if this is a VM bug or not...  it could be template or Joomla related.  I really don't know if we need to worry about this error too much as I do not think it will show up on in shops that have multiple products.  It will be something to keep an eye on at the very least. 

Despite this, I did notice that the feature module is displaying the same product 2x times, which it shouldn't be so there is a bug there.