VirtueMart Forum

VirtueMart 2 + 3 + 4 => Installation, Migration & Upgrade => Topic started by: bestcons on April 16, 2016, 07:54:44 AM

Title: Fatal error: Class 'CurrencyDisplay' not found
Post by: bestcons on April 16, 2016, 07:54:44 AM
After upgrading my website with Joomla 3.5.1 to Virtuemart 3.0.16 I receive the following messages:
Fatal error: Class 'CurrencyDisplay' not found in /var/www/vhosts/dedecanije.nl/httpdocs/components/com_virtuemart/views/category/view.html.php on line 160
The message is shown for categories having sub-categories. Single categories are OK. So I returned to Virtuemart 3.0.14 for the moment.
Regards, bestcons
Title: Re: Fatal error: Class 'CurrencyDisplay' not found
Post by: Jumbo! on April 16, 2016, 08:54:27 AM
Open components/com_virtuemart/views/category/view.html.php

Find the following codes in line 20:

defined('_JEXEC') or die('Restricted access');

Replace above by:

defined('_JEXEC') or die('Restricted access');

if(!class_exists('CurrencyDisplay')) require(VMPATH_ADMIN . '/helpers/currencydisplay.php');


Save the changes.

That should resolve the issue.
Title: Re: Fatal error: Class 'CurrencyDisplay' not found
Post by: bestcons on April 16, 2016, 09:41:47 AM
May I assume that in the next update this will be corrected?
Title: Re: Fatal error: Class 'CurrencyDisplay' not found
Post by: Jumbo! on April 16, 2016, 09:58:14 AM
Should be.
Title: Re: Fatal error: Class 'CurrencyDisplay' not found
Post by: digitalmza on August 25, 2016, 06:54:32 AM
My Solution
Deactivate MANUFACTURER in SUBCATEGORY
Sorry for my English.
Bye :)
Title: Re: Fatal error: Class 'CurrencyDisplay' not found
Post by: GJC Web Design on August 25, 2016, 11:26:52 AM
apparently fixed in vm3.0.17.6