Page 1 of 2
Module Manager memory issue
Posted: Sat Jul 31, 2010 10:50 am
by oliver341
I have just upgraded from CMSMS 1.7.1 to 1.8.1 and I am attempting to upgrade FormBuilder via the Module Manager from 0.6.1 to 0.6.2. However it keeps failing without an error message. On checking the Apache error log it is showing:
mysite.co.uk [Sat Jul 31 11:31:34 2010] [error] [client 188.221.xxx.xxx] PHP Fatal error: Out of memory (allocated 23330816) (tried to allocate 12840849 bytes) in /home/sites/mysite.co.uk/public_html/modules/nuSOAP/classes/nusoap.php on line 2685, referer:
http://www.mysite.co.uk/admin/moduleint ... uleManager
The System Information page is showing:
PHP Effective Memory Limit (memory_limit): 128M
phpinfo is showing:
memory_limit: 128M
Any ideas what the issue is?
Re: Module Manager memory issue
Posted: Wed Aug 04, 2010 11:05 am
by oliver341
Seems no-one is able to help with this. As a secondary question, as the Module Manager is not working to upgrade the FormBuilder in my case, is it ok to download, extract and FTP the module's files to Modules/FormBuilder, or would I risk messing something up by doing this?
Re: Module Manager memory issue
Posted: Wed Aug 04, 2010 4:31 pm
by Nullig
Yes, you can update via FTP - no problem.
Nullig
Re: Module Manager memory issue
Posted: Mon Oct 04, 2010 10:35 pm
by paulbaker
Hi
Just wanted to add my "+1" to this issue - exactly the same thing is happening here. Getting errors like this:
Code: Select all
PHP Fatal error: Out of memory (allocated 45613056) (tried to allocate 12452270 bytes) in /var/www/html/modules/nuSOAP/classes/nusoap.php on line 5909, referer: http://www.example.com/admincms/moduleinterface.php?sp_=14a8ce1f&module=ModuleManager
php.ini =
config.php =
Code: Select all
$config['php_memory_limit'] = '128M';
Currently running 1.8.2 (just upgraded).
I understand I can FTP these updates. I will do this. Just wondering if this is a particular problem with particular hosts or an issue with the code?
Thanks
Re: Module Manager memory issue
Posted: Tue Oct 05, 2010 3:45 am
by Nullig
It might be a timeout issue, rather than a memory one.
Nullig
Re: Module Manager memory issue
Posted: Thu Oct 07, 2010 11:36 pm
by paulbaker
Nullig wrote:
It might be a timeout issue, rather than a memory one.
Thanks for the reply. Seems unlikely given the php error message?:
Code: Select all
PHP Fatal error: Out of memory .... in /var/www/html/modules/nuSOAP/classes/nusoap.php on line 5909
I have marked line 5909 in the snippet of code from nusoap.php below, in case it helps someone figure out what the problem is:
Code: Select all
// Parse the XML file.
if(!xml_parse($this->parser,$xml,true)){
// Display an error message.
$err = sprintf('XML error parsing SOAP payload on line %d: %s',
xml_get_current_line_number($this->parser),
xml_error_string(xml_get_error_code($this->parser)));
$this->debug($err);
$this->debug("XML payload:\n" . $xml); // <-- *** This is line 5909 ***
$this->setError($err);
} else {
When I comment that line out I no longer get a blank screen when I try to upgrade modules, instead I get the following error:
Code: Select all
Error!
SOAP Error: XML error parsing SOAP payload on line n: Invalid document start
where n is different depending on which module I am upgrading.
BTW these are the modules which are not upgrading successfully: CGExtensions, CGGoogleMaps, FormBuilder, Gallery, Statistics, TinyMCE.
Any suggestions would be greatfully received!
Re: Module Manager memory issue
Posted: Thu Oct 28, 2010 10:24 pm
by David_Geoffrey
Hi
Has anyone got any further with this? Just upgraded to 1.8.2 - went like a dream, until I tried to upgrade the modules
As well as the ones listed, the rather ancient guestbook also has a problem. This is not the end of the world - but CGExtensions will be!
Cheers
DG
Re: Module Manager memory issue
Posted: Fri Oct 29, 2010 7:25 am
by cyberman
I cant suggest ModuleManager cause permission trouble could be possible. All uploaded modules will be owned by httpd process. This could be the reason you cant modify a file based module template or delete a module manually
Upload via FTP is the cleaner way.
Re: Module Manager memory issue
Posted: Sun Oct 31, 2010 9:12 pm
by paulbaker
@ David_Geoffrey I updated the modules with FTP which works fine. I believe the problem still exists.
Re: Module Manager memory issue
Posted: Mon Nov 01, 2010 10:39 am
by oliver341
paulbaker, is your host Heart Internet, or a reseller?
Re: Module Manager memory issue
Posted: Wed Nov 03, 2010 12:21 am
by paulbaker
@ oliver341 a reseller.
Re: Module Manager memory issue
Posted: Wed Nov 03, 2010 6:34 am
by oliver341
I am using a reseller of Heart Internet too, looks like the host is the cause then. But I don't know what the solution is as all the memory limits seem fine.
Re: Module Manager memory issue
Posted: Wed Nov 03, 2010 11:00 am
by paulbaker
Sorry, I did not make myself clear. The hosting this site is on is part of *a* reseller account, but not Heart. I suspect all reseller accounts have quite a low memory allocation compared to sites on a dedicated server....?
Re: Module Manager memory issue
Posted: Wed Nov 03, 2010 11:22 am
by cyberman
How much modules do you have installed?
Every installed and active module eats memory and performance. So you should make a look only used modules are active.
Re: Module Manager memory issue
Posted: Wed Nov 03, 2010 11:40 am
by paulbaker
@ cyberman, for me:
Code: Select all
CMS Version 1.8.2
Installed Modules
CMSMailer 2.0
FileManager 1.0.2
MenuManager 1.6.5
ModuleManager 1.4
News 2.10.6
nuSOAP 1.0.2
Printing 1.1.0
Search 1.6.5
ThemeManager 1.1.1
TinyMCE 2.7.3
RSS2HTML 1.2.4
CGExtensions 1.20
CGCalendar 1.5.6
CGSimpleSmarty 1.4.5
CGGoogleMaps 1.5.6
Gallery 1.4.1
FormBuilder 0.6.4
Statistics 1.0.1
CGFeedback 1.2.1
Config Information
php_memory_limit: 128M
Don't think that's many modules, compared to some sites I have seen featured here. I use every module which I have installed (some are core modules).