VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: softnet on July 14, 2016, 14:43:19 PM

Title: Parent category not loading template
Post by: softnet on July 14, 2016, 14:43:19 PM
Joomla 3.6.0
VM 3.0.17.2

Having upgraded to VM 3.0.17.2 my template doesn't seem to load correctly on different levels of category.

The shop homepage loads fine:
http://www.mkkoi.be

BUT if you try to open a category up that has sub-categories, it doesn't load the template:
http://www.mkkoi.be/webshop/vijverbeluchting.html

error:
Fatal error: Class 'VmHtml' not found in /var/www/mkkoi.be/mkkoi.be/wwwroot/administrator/components/com_virtuemart/helpers/vmpagination.php on line 211

Any help appreciated thanks
Title: Re: Parent category not loading template
Post by: Jumbo! on July 14, 2016, 21:00:00 PM
Looks like bug.

Open - administrator/components/com_virtuemart/helpers/vmpagination.php in your favourite text editor.

Find the following codes in line 211:

$id = VmHtml::ensureUniqueId('limit');

Replace above by:

if(!class_exists('VmHtml'))
{
require VMPATH_ADMIN . '/helpers/html.php';
}

$id = VmHtml::ensureUniqueId('limit');



This will fix it for the time being.
Title: Re: Parent category not loading template
Post by: jenkinhill on July 14, 2016, 23:41:29 PM
VM3.0.17.2 is a test/development version (ie odd numbered) so may well contain bugs which have not yet come to light or been fixed.
Title: Re: Parent category not loading template
Post by: softnet on July 15, 2016, 08:40:10 AM
Hi,

thx for the info looks like bug its fix now thanks for jenkinhill