News:

Looking for documentation? Take a look on our wiki

Main Menu

Class vmrouterHelper not found

Started by sandomatyas, December 08, 2022, 15:08:45 PM

Previous topic - Next topic

sandomatyas

Hi

index.php?option=com_virtuemart&view=pluginresponse&task=pluginnotification&tmpl=component throws error 500: Class 'vmrouterHelper' not found


Call stack
#    Function    Location
1    ()    JROOT/components/com_virtuemart/virtuemart.php:130
2    require_once()    JROOT/libraries/src/Dispatcher/LegacyComponentDispatcher.php:71
3    Joomla\CMS\Dispatcher\LegacyComponentDispatcher::Joomla\CMS\Dispatcher\{closure}()    JROOT/libraries/src/Dispatcher/LegacyComponentDispatcher.php:73
4    Joomla\CMS\Dispatcher\LegacyComponentDispatcher->dispatch()    JROOT/libraries/src/Component/ComponentHelper.php:355
5    Joomla\CMS\Component\ComponentHelper::renderComponent()    JROOT/libraries/src/Application/SiteApplication.php:200
6    Joomla\CMS\Application\SiteApplication->dispatch()    JROOT/libraries/src/Application/SiteApplication.php:241
7    Joomla\CMS\Application\SiteApplication->doExecute()    JROOT/libraries/src/Application/CMSApplication.php:294
8    Joomla\CMS\Application\CMSApplication->execute()    JROOT/includes/app.php:61
9    require_once()    JROOT/index.php:32

   if(vmrouterHelper::$updateCache and VmConfig::get('useCacheVmGetCategoryRoute',1)){
      vmrouterHelper::updateCache();
   }

VirtueMart 4.0.7 and 4.0.8 as well.

Could you check please?

Milbo

Please try the new vm4.0.10. In my code I have

if(class_exists('vmrouterHelper') and vmrouterHelper::$updateCache and VmConfig::get('useCacheVmGetCategoryRoute',1)){
vmrouterHelper::updateCache();
}

So that is almost 100% fixed.

https://dev.virtuemart.net/projects/virtuemart/files
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/