joomla-override
joomla-override copied to clipboard
Error on model override
Hi, thank you so much for this plugin, it is very very useful!
I have a problem in custom model classes. For example, I put my custom model of virtuemart orders into code folder, and I get this error message:
PHP Notice: Use of undefined constant JPATH_VM_ADMINISTRATOR - assumed 'JPATH_VM_ADMINISTRATOR' in /var/www/mywebsite/plugins/system/joomlaoverride/helper/override.php(116) : eval()'d code on line 25
and connected Warning and Fatal errors.
What do you think about?
VM need to define this constant to your code works. Please define it before on your override file or require same file that have defined vars from vm.
Ok, thanks. I define this constant on joomlaoverride.php file, because on my custom model don't works.