Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on model override #16

Open
mmilidoni opened this issue May 5, 2014 · 2 comments
Open

Error on model override #16

mmilidoni opened this issue May 5, 2014 · 2 comments

Comments

@mmilidoni
Copy link

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?

@juliopontes
Copy link
Owner

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.

@mmilidoni
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants