Module Manager memory issue

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.
oliver341
Forum Members
Forum Members
Posts: 89
Joined: Sat Feb 23, 2008 3:51 pm

Module Manager memory issue

Post 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?
oliver341
Forum Members
Forum Members
Posts: 89
Joined: Sat Feb 23, 2008 3:51 pm

Re: Module Manager memory issue

Post 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?
User avatar
Nullig
Power Poster
Power Poster
Posts: 2380
Joined: Fri Feb 02, 2007 4:31 pm

Re: Module Manager memory issue

Post by Nullig »

Yes, you can update via FTP - no problem.

Nullig
User avatar
paulbaker
Dev Team Member
Dev Team Member
Posts: 1465
Joined: Sat Apr 18, 2009 10:09 pm
Contact:

Re: Module Manager memory issue

Post 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 =

Code: Select all

memory_limit = 128M
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
To copy System Information to the forum:
https://docs.cmsmadesimple.org/troubles ... nformation

CMS Made Simple Geekmoots attended:
Nottingham, UK 2012 | Ghent, Belgium 2015 | Leicester, UK 2016
User avatar
Nullig
Power Poster
Power Poster
Posts: 2380
Joined: Fri Feb 02, 2007 4:31 pm

Re: Module Manager memory issue

Post by Nullig »

It might be a timeout issue, rather than a memory one.

Nullig
User avatar
paulbaker
Dev Team Member
Dev Team Member
Posts: 1465
Joined: Sat Apr 18, 2009 10:09 pm
Contact:

Re: Module Manager memory issue

Post 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!
To copy System Information to the forum:
https://docs.cmsmadesimple.org/troubles ... nformation

CMS Made Simple Geekmoots attended:
Nottingham, UK 2012 | Ghent, Belgium 2015 | Leicester, UK 2016
David_Geoffrey
Forum Members
Forum Members
Posts: 65
Joined: Tue May 22, 2007 10:05 pm

Re: Module Manager memory issue

Post 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
cyberman

Re: Module Manager memory issue

Post 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.
User avatar
paulbaker
Dev Team Member
Dev Team Member
Posts: 1465
Joined: Sat Apr 18, 2009 10:09 pm
Contact:

Re: Module Manager memory issue

Post by paulbaker »

@ David_Geoffrey I updated the modules with FTP which works fine. I believe the problem still exists.
To copy System Information to the forum:
https://docs.cmsmadesimple.org/troubles ... nformation

CMS Made Simple Geekmoots attended:
Nottingham, UK 2012 | Ghent, Belgium 2015 | Leicester, UK 2016
oliver341
Forum Members
Forum Members
Posts: 89
Joined: Sat Feb 23, 2008 3:51 pm

Re: Module Manager memory issue

Post by oliver341 »

paulbaker, is your host Heart Internet, or a reseller?
User avatar
paulbaker
Dev Team Member
Dev Team Member
Posts: 1465
Joined: Sat Apr 18, 2009 10:09 pm
Contact:

Re: Module Manager memory issue

Post by paulbaker »

@ oliver341 a reseller.
To copy System Information to the forum:
https://docs.cmsmadesimple.org/troubles ... nformation

CMS Made Simple Geekmoots attended:
Nottingham, UK 2012 | Ghent, Belgium 2015 | Leicester, UK 2016
oliver341
Forum Members
Forum Members
Posts: 89
Joined: Sat Feb 23, 2008 3:51 pm

Re: Module Manager memory issue

Post 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.
User avatar
paulbaker
Dev Team Member
Dev Team Member
Posts: 1465
Joined: Sat Apr 18, 2009 10:09 pm
Contact:

Re: Module Manager memory issue

Post 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....?
To copy System Information to the forum:
https://docs.cmsmadesimple.org/troubles ... nformation

CMS Made Simple Geekmoots attended:
Nottingham, UK 2012 | Ghent, Belgium 2015 | Leicester, UK 2016
cyberman

Re: Module Manager memory issue

Post 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.
User avatar
paulbaker
Dev Team Member
Dev Team Member
Posts: 1465
Joined: Sat Apr 18, 2009 10:09 pm
Contact:

Re: Module Manager memory issue

Post 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).
To copy System Information to the forum:
https://docs.cmsmadesimple.org/troubles ... nformation

CMS Made Simple Geekmoots attended:
Nottingham, UK 2012 | Ghent, Belgium 2015 | Leicester, UK 2016
Post Reply

Return to “CMSMS Core”