VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: media991 on February 20, 2012, 01:48:11 AM

Title: Currency will not load - Page Error in Admin
Post by: media991 on February 20, 2012, 01:48:11 AM
Hi there,

We are using viruemart 2.0.0 with Joomla 2.5.1 and when we click on a currency in Virtuemart we get a page load error:

Fatal error: Call to a member function getListFooter() on a non-object in /home/xxxxx/public_html/administrator/components/com_virtuemart/views/currency/tmpl/default.php on line 119

Is there are fix on how to access the particular currencies in VM 2.0?

Thanks in advance.

Another Error.
** we have just noticed that we cannot access the manufacturers area as well. The page loads back to xxx/administrator/index.php and then text menus appear and error:

Fatal error: Call to a member function getListFooter() on a non-object in /home/xxxx/public_html/administrator/components/com_virtuemart/views/manufacturercategories/tmpl/default.php on line 84
Title: Re: Currency will not load - Page Error in Admin
Post by: marub on February 20, 2012, 14:35:21 PM
Hi there,

I've got the same problem with J1.5.25 and VM2.01
after update to 2.01 i get this error if i go to Configuration

Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM in /var/www/vhosts/XXXXXXXX/httpdocs/administrator/components/com_virtuemart/models/user.php on line 129

the same on goto Shop



Title: Re: Currency will not load - Page Error in Admin
Post by: rollinman on February 21, 2012, 09:52:17 AM
Hi! and I've got same problem

my english is bad

How repair this bug?

Thanks..

Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM in /home/di-rose/di-rose.ru/docs/administrator/components/com_virtuemart/models/user.php on line 129
Title: Re: Currency will not load - Page Error in Admin
Post by: rollinman on February 21, 2012, 10:43:37 AM
it works!!

                 /home/di-rose/di-rose.ru/docs/administrator/components/com_virtuemart/models/user.php on line 129
             
      $userId = $vendorModel::getUserIdByVendorId($vendorId);
                 
                change "::" to "->"
      $userId = $vendorModel->getUserIdByVendorId($vendorId);
Title: Re: Currency will not load - Page Error in Admin
Post by: Milbo on February 21, 2012, 10:45:37 AM
This is strange, that this makes a difference. Please tell me your php version.

Normally the :: is a static call and most time faster.
Title: Re: Currency will not load - Page Error in Admin
Post by: rollinman on February 21, 2012, 11:12:45 AM
my PHP Version 5.2.10.
Title: Re: Currency will not load - Page Error in Admin
Post by: Milbo on February 21, 2012, 11:30:32 AM
That explains a lot. VM2 is officially only working for php5.3

But you just may try this $userId = VirtueMartModelVendor::getUserIdByVendorId($vendorId);  for the line 129
Title: Re: Currency will not load - Page Error in Admin
Post by: rollinman on February 21, 2012, 12:13:51 PM
Thank you so much!  :)
Title: Re: Currency will not load - Page Error in Admin
Post by: Zoralina on February 21, 2012, 13:06:23 PM
thank you, I had the same problem with a php 5.2.17 version.
After Installation I could not see VM in frontend, but the error
Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM in /.../administrator/components/com_virtuemart/models/user.php on line 129

I tried $userId = VirtueMartModelVendor::getUserIdByVendorId($vendorId);
It looks like it works now.
But will there be more problems with the old version in other parts of VM?

thanks