joomla-override icon indicating copy to clipboard operation
joomla-override copied to clipboard

Error on model override

Open mmilidoni opened this issue 10 years ago • 2 comments

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?

mmilidoni avatar May 05 '14 21:05 mmilidoni

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.

juliopontes avatar May 06 '14 11:05 juliopontes

Ok, thanks. I define this constant on joomlaoverride.php file, because on my custom model don't works.

mmilidoni avatar May 06 '14 12:05 mmilidoni