A strange "ERROR could not get module instance" in cmsms
-
copernic67
A strange "ERROR could not get module instance" in cmsms
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
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
-
calguy1000
- Support Guru

- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
Re: A strange "ERROR could not get module instance" in cmsms
In a unix environment..... You do have shell access right?
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.
Code: Select all
cd <install directory>
find . -name '*php' -exec grep 'could not get module instance' {} /dev/null \;a) Platform
b) which modules you have installed (along with their versions). Particularly the optional 3rd party modules you've installed.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Re: A strange "ERROR could not get module instance" in cmsms
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
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
-
cyberman
Re: A strange "ERROR could not get module instance" in cmsms
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)
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
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."
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."
-
cyberman
Re: A strange "ERROR could not get module instance" in cmsms
But now you have the problem - you can't use CustomContent module ...davendar wrote: Not sure I would want to try something else?
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.My client has a simple site and I think the pisearch is overkill for my client's need.
Please look at www.cmsmadesimple.org and www.cmsmadesimple.de Do you have a site where pisearch is being used?
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.And what do you mean, "not sure if CC module is the reason or the action."
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
Last edited by cyberman on Fri Nov 10, 2006 12:30 pm, edited 1 time in total.
-
copernic67
Re: A strange "ERROR could not get module instance" in cmsms
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
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
Last edited by copernic67 on Mon Nov 13, 2006 6:16 pm, edited 1 time in total.
-
Lineapixel
- Forum Members

- Posts: 62
- Joined: Mon Oct 30, 2006 2:21 pm
Re: A strange "ERROR could not get module instance" in cmsms
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:
So I installed the last version of FEUmodule and that's it, the trick is done...so easily I still feel stupid....Dependencies
* FrontEndUsers
-
Robbwell
Re: A strange "ERROR could not get module instance" in cmsms
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
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
-
edgariokas
Re: A strange "ERROR could not get module instance" in cmsms
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....
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....
-
edgariokas
Re: A strange "ERROR could not get module instance" in cmsms
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
P.S. CMS Made Simple is Simply the best
