Page 1 of 1

getModule where is it in 2.0.1.1?

Posted: Wed Dec 24, 2014 11:33 pm
by GarfNo17
I have an extension that is looking for is failing on 2.0.1.1 (it's meant to be 2.0.1.x compatible).

I have been in touch with the writers and they say that getModule() is part of the core 2.0.1.1 code. I can't find any reference to a function by that name anywhere.

I see that other people have had issues with this function when upgrading from 1.5x but this is a new install.
Anyone want to point me in the direction of where it is, or how it's called as I am at a loss? I have already had to copy a ton of work from 2.0.0.0 to 2.0.1.1 and change a bucket load of things.

Re: getModule where is it in 2.0.1.1?

Posted: Thu Dec 25, 2014 12:02 am
by Selective555
The only things in the Admin are

Extensions > Extension Installer
Extensions > Modifications
Extensions > Modules

If what you need isn't on one of those three pages, then it doesn't exist.

Try the Extension Installer, then after you upload it, go to Modifications and refresh it so it becomes active. You should then see it in Modules if it is a Module.

Re: getModule where is it in 2.0.1.1?

Posted: Thu Dec 25, 2014 12:27 am
by dabomb59404
The getModule() function is in this file: admin/model/extension/module.php

Re: getModule where is it in 2.0.1.1?

Posted: Sun Dec 28, 2014 8:29 pm
by GarfNo17
Cheers for the info.

I have managed to find it now (I was being a bit stupid)

I have a call of
$this->model_extension_module->getModule($VALUE)

If I take the functions content and put them into the call I then it works. So the model_extension_module I presume is not resolving properly and hence it can't find it. I guess I am missing a reference to the module or is there anyway of altering this value or is there something that makes it reset it?

Cheers in advance