Problems with installing captcha

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
User avatar
osn
Forum Members
Forum Members
Posts: 80
Joined: Thu Nov 23, 2006 9:14 pm

Problems with installing captcha

Post by osn »

Hi!
I'm having problems to install captcha from the admin -> extensions -> module manager.
When I press install I get the error code:
Fatal error: Allowed memory size of 11534336 bytes exhausted (tried to allocate 349529 bytes) in /home/virtual/mydomain/public_html/cms/modules/nuSOAP/classes/nusoap.php on line 6242

I have all the preferences for module manager set to the standard settings.

Anyone who have any idea what the problem could be?



CMSMS 1.0.2 "Maui"
Dennis Nilsson, Sweden
www.dartfrog.tk
Signex

Re: Problems with installing captcha

Post by Signex »

Im not a expert, but isnt this your php_memory_limit  wihich is configured too low.

most times its 8MB, you can aks your webhost to change it to 16MB. and see if that works
User avatar
osn
Forum Members
Forum Members
Posts: 80
Joined: Thu Nov 23, 2006 9:14 pm

Re: Problems with installing captcha

Post by osn »

Signex wrote: Im not a expert, but isnt this your php_memory_limit  wihich is configured too low.

most times its 8MB, you can aks your webhost to change it to 16MB. and see if that works
My webhosts don't want to do change for me :(
I wonder what I pay them for?
Any other suggestions?
Dennis Nilsson, Sweden
www.dartfrog.tk
cyberman

Re: Problems with installing captcha

Post by cyberman »

You can try to do it by yourself - add a .htaccess file with the following command in it to increase the php_memory_limit:

Code: Select all

php_value memory_limit 16M 
If it does not help try to deinstall AND delete all unused modules, tags and translations (in admin folders too).

It's possible too to download captcha.xml to your local harddisk and import it than via Extensions > Modules to admin panel.

So you can deinstall/delete ModuleManager and nuSOAP module. If you woun't export themes ThemesManager can deinstalled/deleted too.
Dee
Power Poster
Power Poster
Posts: 1197
Joined: Sun Mar 19, 2006 8:46 pm

Re: Problems with installing captcha

Post by Dee »

If a .htaccess file doesn't work you can also try creating a php.ini file in your web root containing

Code: Select all

memory_limit = 32M;
or adding

Code: Select all

ini_set('memory_limit','32M');
at the top of include.php (right after <?php).

To find out the memory_limit value used by the server create a small script containing

Code: Select all

phpinfo();
or create a UDT as described here.

Regards,
D
User avatar
osn
Forum Members
Forum Members
Posts: 80
Joined: Thu Nov 23, 2006 9:14 pm

Re: Problems with installing captcha

Post by osn »

cyberman wrote: You can try to do it by yourself - add a .htaccess file with the following command in it to increase the php_memory_limit:

Code: Select all

php_value memory_limit 16M 
If it does not help try to deinstall AND delete all unused modules, tags and translations (in admin folders too).

It's possible too to download captcha.xml to your local harddisk and import it than via Extensions > Modules to admin panel.

So you can deinstall/delete ModuleManager and nuSOAP module. If you woun't export themes ThemesManager can deinstalled/deleted too.
When I added that text into a .htaccess file I had a 500 internal error:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@dartfrog.tk and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Apache/1.3.33 Server at dartfrog.tk Port 80

I will try to import captcha from xml, but it irritates me that I can't get it to work as other modules works fine to install.



Thank you for trying to help Cyberman

Dee, I will give your suggestions a try. I'll tell how it goes.




Dennis
Dennis Nilsson, Sweden
www.dartfrog.tk
Dee
Power Poster
Power Poster
Posts: 1197
Joined: Sun Mar 19, 2006 8:46 pm

Re: Problems with installing captcha

Post by Dee »

osn wrote: I will try to import captcha from xml, but it irritates me that I can't get it to work as other modules works fine to install.
The errormessage (Fatal error: Allowed memory size of 11534336 bytes exhausted) has nothing to do with the Captcha module.
Your webserver has PHP's memory limit set to 12M and PHP runs out of memory while it runs CMS Made Simple (at the point where it's loading the module, but this is quite random).
The only solution is to raise the memory_limit value, or - like cyberman suggested - to deinstall AND delete all unused modules, tags and translations (in admin folders too).

Regards,
D
Dee
Power Poster
Power Poster
Posts: 1197
Joined: Sun Mar 19, 2006 8:46 pm

Re: Problems with installing captcha

Post by Dee »

osn wrote: When I added that text into a .htaccess file I had a 500 internal error:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@dartfrog.tk and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Apache/1.3.33 Server at dartfrog.tk Port 80
Strange, the syntax is correct

Code: Select all

php_value memory_limit 32M
Did you check the error log?
User avatar
osn
Forum Members
Forum Members
Posts: 80
Joined: Thu Nov 23, 2006 9:14 pm

Re: Problems with installing captcha

Post by osn »

I don't know how to check the error log since I'm using a webhotel, not my own server, and I'm not so good with linux as I wish I was. I have only used .htaccess files before for setting password protections for folders.

Sorry but I need more info how to find out if I'm able to check the error logs.
Dennis Nilsson, Sweden
www.dartfrog.tk
Dee
Power Poster
Power Poster
Posts: 1197
Joined: Sun Mar 19, 2006 8:46 pm

Re: Problems with installing captcha

Post by Dee »

Did you try the other options I mentioned earlier?
User avatar
osn
Forum Members
Forum Members
Posts: 80
Joined: Thu Nov 23, 2006 9:14 pm

Re: Problems with installing captcha

Post by osn »

Not yet, I'll try it during weekend.. fell asleep in front of tv after I came home from work so won't have time for it at moment. I'll try it and tell you how it goes.
Dennis Nilsson, Sweden
www.dartfrog.tk
User avatar
osn
Forum Members
Forum Members
Posts: 80
Joined: Thu Nov 23, 2006 9:14 pm

Re: Problems with installing captcha

Post by osn »

Dee wrote: If a .htaccess file doesn't work you can also try creating a php.ini file in your web root containing

Code: Select all

memory_limit = 32M;
or adding

Code: Select all

ini_set('memory_limit','32M');
at the top of include.php (right after <?php).

To find out the memory_limit value used by the server create a small script containing

Code: Select all

phpinfo();
or create a UDT as described here.

Regards,
D
I did try that php.ini file first... didn't seem to do any diffrence... then I tried to add that code to the include.php page, but I still couldn't install captcha. for me it didn't seemed like the setting was taken. I even created a php file with your

Code: Select all

phpinfo();
but I guess something more has to be added to that script to be working. I have no idea since I don't know much about php.

After this I tried to import the captcha xml-file Captcha-0.1.1.xml and it worked out fine so now I finally have captcha installed :)

At the moment I don't have use for set the mem to a higher value than 12Mb but it would be good to be prepared until the next time I need it. isn't this value set in CMSMS somehow also?


Thank you Dee and Cyberman for trying to help!


Dennis
Dennis Nilsson, Sweden
www.dartfrog.tk
cyberman

Re: Problems with installing captcha

Post by cyberman »

osn wrote: isn't this value set in CMSMS somehow also?
No, it's only a check inside install ...
User avatar
osn
Forum Members
Forum Members
Posts: 80
Joined: Thu Nov 23, 2006 9:14 pm

Re: Problems with installing captcha

Post by osn »

Ok, I'll leave this problem for now. If I get problem with installing new modules in the future I'll bring up the thread again.

Thank you Cyberman
Dennis Nilsson, Sweden
www.dartfrog.tk
Post Reply

Return to “CMSMS Core”