Hello,
after Updating to VM 3.4.2 i have a problem. Joomla version is 3.9.1.
I have an Backend QuickIcon Plugin, where i require the VM Orders Model.
I used this code:
if (!class_exists('VirtueMartModelOrders')) {
require(VMPATH_ADMIN . DS . 'models' . DS . 'orders.php');
}
After Update to VM 3.4.2 this code doesnt work anymore. I get a blank page without errors. Even if i fill in the whole path, i get a blank page.
Any suggestions?
Thank you!!!
Best regards
Dirk
maybe try
if (!class_exists( 'VmConfig' )) require(JPATH_ROOT .'/administrator/components/com_virtuemart/helpers/config.php');
VmConfig::loadConfig();
before it
thats it!!! Thanks a lot!!!
Could you explain why this is needed?
it ensures that the VM config is available and loaded