Author Topic: VM 2.0 RC3 F and J1.7.3 - Featured Products module crash  (Read 3834 times)

xnakos

  • Beginner
  • *
  • Posts: 12
VM 2.0 RC3 F and J1.7.3 - Featured Products module crash
« 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

xnakos

  • Beginner
  • *
  • Posts: 12
Re: VM 2.0 RC3 F and J1.7.3 - Featured Products module crash
« Reply #1 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.

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 10466
  • VM4.0.7 Eagle Owl
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: VM 2.0 RC3 F and J1.7.3 - Featured Products module crash
« Reply #2 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?
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

xnakos

  • Beginner
  • *
  • Posts: 12
Re: VM 2.0 RC3 F and J1.7.3 - Featured Products module crash
« Reply #3 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.

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 10466
  • VM4.0.7 Eagle Owl
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: VM 2.0 RC3 F and J1.7.3 - Featured Products module crash
« Reply #4 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.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

xnakos

  • Beginner
  • *
  • Posts: 12
Re: VM 2.0 RC3 F and J1.7.3 - Featured Products module crash
« Reply #5 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.

xnakos

  • Beginner
  • *
  • Posts: 12
Re: VM 2.0 RC3 F and J1.7.3 - Featured Products module crash
« Reply #6 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.

Cleanshooter

  • Contributing Developer
  • Jr. Member
  • *
  • Posts: 69
    • My Blog
Re: VM 2.0 RC3 F and J1.7.3 - Featured Products module crash
« Reply #7 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?
- Cleanshooter

xnakos

  • Beginner
  • *
  • Posts: 12
Re: VM 2.0 RC3 F and J1.7.3 - Featured Products module crash
« Reply #8 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.

Cleanshooter

  • Contributing Developer
  • Jr. Member
  • *
  • Posts: 69
    • My Blog
Re: VM 2.0 RC3 F and J1.7.3 - Featured Products module crash
« Reply #9 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...

- Cleanshooter

xnakos

  • Beginner
  • *
  • Posts: 12
Re: VM 2.0 RC3 F and J1.7.3 - Featured Products module crash
« Reply #10 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.

Cleanshooter

  • Contributing Developer
  • Jr. Member
  • *
  • Posts: 69
    • My Blog
Re: VM 2.0 RC3 F and J1.7.3 - Featured Products module crash
« Reply #11 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.
- Cleanshooter