VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: lexilium on October 10, 2011, 12:16:49 PM

Title: [solved] Module Top Ten
Post by: lexilium on October 10, 2011, 12:16:49 PM
Topten module dosnt work
Fatal error: Using $this when not in object context in /home/Xxxxx/public_html/administrator/components/com_virtuemart/helpers/currencydisplay.php on line 95
Title: Re: Module Top Ten
Post by: Milbo on October 13, 2011, 20:36:28 PM
Module Top Ten? This is afaik not in the aio, is it?
Title: Re: Module Top Ten
Post by: PRO on October 13, 2011, 23:16:08 PM
have you chosen a currency?

Title: Re: Module Top Ten
Post by: Milbo on October 13, 2011, 23:28:33 PM
module top ten is an old one. atm it is not supported.
Title: Re: Module Top Ten
Post by: alatak on October 14, 2011, 01:20:53 AM
Hi,

module TopTen is replaced by  mod_virtuemart_product.

All modules from VM1 should be removed.
Title: Re: [solved] Module Top Ten
Post by: PRO on October 14, 2011, 15:51:18 PM
mod_virtuemart_product installs as Top Ten

See pictures of a clean install.



[attachment cleanup by admin]
Title: Re: [solved] Module Top Ten
Post by: alatak on October 14, 2011, 16:51:38 PM
Hi,

OK. Problem with Joomla 1.7.
Thanks for the picture.
i am looking at it.
Title: Re: [solved] Module Top Ten
Post by: alatak on October 14, 2011, 16:55:34 PM
Hi,

OK. But it is the title of the module. Not the module name.
Title: Re: [solved] Module Top Ten
Post by: PRO on October 14, 2011, 17:25:33 PM
when you click "new" module. You pick "Top Ten" instead of Virtuemart Product. Like in the 2nd picture
Title: Re: [solved] Module Top Ten
Post by: alatak on October 14, 2011, 18:35:44 PM
Hi,

Yes thank you. I though the problem was in the XML file.
But you are rigth, when the modules are installed , one of them is called VM- Top Ten, and its type is mod_virtuemart_product.
Title: Re: [solved] Module Top Ten
Post by: PRO on October 14, 2011, 18:40:37 PM
Something is wrong.

Look in the first picture. To the right its "type" says VM- Top Ten   NOT mod_virtuemart_product

The same when you click "new" and go to publish the module.

I looked around, and could not find where the reference is. Its not in the xml
Title: Re: [solved] Module Top Ten
Post by: PRO on October 14, 2011, 18:46:58 PM
script.allinone.php


$this->installModule('VM - Top Ten','mod_virtuemart_product',1,$defaultParams);
Title: Re: [solved] Module Top Ten
Post by: alatak on October 14, 2011, 18:48:37 PM
Hi,

Yes :)
You are completely rigth .
Thanks you.
Title: Re: [solved] Module Top Ten
Post by: kim-berry on November 17, 2011, 04:08:35 AM
Hi,

I hope I'm posting this in the right spot.

I've just been having trouble publishing the VM - Best Sales module. I'm using Joomla 1.7.3 and VM 2.0.0-RC-2M and I get the following error...

Fatal error: Using $this when not in object context in /administrator/components/com_virtuemart/helpers/currencydisplay.php on line 95

I'm trying to run the site as catalogue only at this point and have selected this in the configuration.

When I turn on "Show Prices" under the Configuration > Pricing tab everything works again and the error is gone. Any ideas on how I can get around this?

Thanks in advance!
Title: Re: [solved] Module Top Ten
Post by: PRO on November 17, 2011, 14:18:57 PM
kim-berry, it sounds like you have an older version of the modules, and plugins probably
Title: Re: [solved] Module Top Ten
Post by: denyal on November 18, 2011, 12:09:03 PM
Hello,

I have the same problem as kim-berry

I'm using Joomla 1.7.3 and VM 2.0.0-RC-2M and I get the following error...

Fatal error: Using $this when not in object context in /administrator/components/com_virtuemart/helpers/currencydisplay.php on line 95

using the Module VirtueMart Products

I cannot see any Top Ten module...

Also I'm using virtuemart as Catalog only, so it shouldn't looking for currency, I think. Although it requested a currency, and I place Euro in Vendor and in the Product. But... error