Page 1 of 1

A strange "ERROR could not get module instance" in cmsms

Posted: Tue Oct 24, 2006 9:22 pm
by copernic67
Hi everybody,

I'm here angain with another question (after the one about the image manager that still isn't sloved).

On my freshly new installed cmsms (1.0.2), I get a very stange error on each page, each first time I browse the page that I just updated. It prints the following message: "ERROR could not get module instance" just before the content call.

I tried with several computers, and it display the message only for the first person that sees the page just after the update. And as soon as you refesh it goes away.

The strangest thing is that I can't find anywhere in the code of cmsms where this sentence is written. It just comes out of nowhere.

I also tried to do some research on the web but even google didn't find any match!

I'm running out ouf ideas. Please, does someone have an idea?

Thanks

Re: A strange "ERROR could not get module instance" in cmsms

Posted: Wed Oct 25, 2006 12:51 am
by calguy1000
In a unix environment..... You do have shell access right?

Code: Select all

cd <install directory>
find . -name '*php' -exec grep 'could not get module instance' {} /dev/null \;
It'd also help to know:
  a) Platform
  b) which modules you have installed (along with their versions).  Particularly the optional 3rd party modules you've installed.

Re: A strange "ERROR could not get module instance" in cmsms

Posted: Thu Nov 09, 2006 11:50 am
by davendar
I have been getting this exact error in the exact same circumstance. Change a page on first refresh, the error appears.

I started uninstalling additional modules I recently added one at a time, then editing a page and doing the refresh until the error went away. It seems I quit getting the error after uninstalling the CustomContent module, so this may be the culprit. Do you have that module installed?

No more error...I hope this helps someone else! I have been going mad trying to deal with this error.

Darling

Re: A strange "ERROR could not get module instance" in cmsms

Posted: Thu Nov 09, 2006 12:17 pm
by cyberman
Hmm, not sure if CC module is the reason or the action.

Can you try to replace search module with pisearch module?

Sometimes I think the indexing of search module could be a reason cause of the place the error is shown  ::).

And it's much easier to replace Search with Pisearch as CustomContent with ?? (there's no replacement)

Re: A strange "ERROR could not get module instance" in cmsms

Posted: Fri Nov 10, 2006 11:43 am
by davendar
All I know is since I removed the CC module I have not had the error one time! Not sure I would want to try something else?

My client has a simple site and I think the pisearch is overkill for my client's need. Do you have a site where pisearch is being used?

And what do you mean, "not sure if CC module is the reason or the action."

Re: A strange "ERROR could not get module instance" in cmsms

Posted: Fri Nov 10, 2006 12:24 pm
by cyberman
davendar wrote: Not sure I would want to try something else?
But now you have the problem - you can't use CustomContent module ...
My client has a simple site and I think the pisearch is overkill for my client's need.
Don't think so - please try to use an older version. Pisearch is searching in every visible content, Search "only" in content of registered modules.
Do you have a site where pisearch is being used?
Please look at www.cmsmadesimple.org and www.cmsmadesimple.de&nbsp; ;). I'm using Pisearch 1.04.
And what do you mean, "not sure if CC module is the reason or the action."
Please think about - the error appears only than if search and CC module are installed and a page is updated. What CMSms module can make trouble at this time, at this place (between title and content) and only one times? I think only the content reindexing of search module could be the reason for this error, not the CC module.

If I'm right a bug in CustomContent module would make trouble on every page call or on pages there is custom content used. And CC is a well tested and often used module. But I'm not a coder for real and it's only a guess ... so I've asked you to try this  :).

Re: A strange "ERROR could not get module instance" in cmsms

Posted: Mon Nov 13, 2006 4:16 pm
by copernic67
I checked your answers and did the fallowing things:

1. Desinstall the search module
  Didn't help. The error was still showing up.

2. Desinstall the CustomContent module and delete it.
    And there you go! no more errors !!

So my conclusion is that the error is coming from the custmmContent module. But as I don't need it yet, it doesn't bother me.

But if you want to look for the problem, is there any chance this error is linked with my server configuration ? As you can see on this other topic: http://forum.cmsmadesimple.org/index.ph ... 439.0.html , I have another bug with cmsms on this server. I tried to install it several times and it does the same thing all the time. And It does this bug only on this server. I have installed it on several different servers and it worked great on those. Is there any chance those two problems are linked, and that they come from a special configuration of the server?

Thanks for your contribution

Re: A strange "ERROR could not get module instance" in cmsms

Posted: Thu Nov 23, 2006 9:59 am
by Lineapixel
Nice, I had the same problem, but I need Custom Content, so I read carefully the module help and at the end of the file I found the solution (at least it seems to work for my site), that is the sentence:
Dependencies

    * FrontEndUsers
So I installed the last version of FEUmodule and that's it, the trick is done...so easily I still feel stupid....

Re: A strange "ERROR could not get module instance" in cmsms

Posted: Mon Mar 05, 2007 2:46 pm
by Robbwell
Hi

I have CustomContent 1.4.4 and FrontEndUsers 1.1.2 installed but I am still getting the error message "ERROR could not get module instance".

Any ideas of what could still be wrong.

(Using a Unix type platform.)

RC

Re: A strange "ERROR could not get module instance" in cmsms

Posted: Wed Mar 07, 2007 1:13 pm
by edgariokas
Da problem iz:

CustomContent.module.php ->>>
.....   $module = $this->GetModuleInstance('FrontEndUsers');
    if( !$module )
      {
echo "ERROR could not get module instance";
return;
      }
.....

So... cut viz shit off,
or install FrontEndUsers module like i did....

Re: A strange "ERROR could not get module instance" in cmsms

Posted: Wed Mar 07, 2007 1:29 pm
by edgariokas
the best way i think is to change "ERROR could not get module instance" to "ERROR could not get FrontEndUser module instance" in next CustomContent module version

P.S. CMS Made Simple is Simply the best