out of memory

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
creat326
New Member
New Member
Posts: 3
Joined: Sat Jun 18, 2011 10:17 pm

out of memory

Post by creat326 »

Hi guys,

I just installed cmsms into a 1and1 hosting package and i was happy that it was running easily.

But as soon as I tried to install a module I begin running out of memory with tons of these errors:
Warning: xml_parse_into_struct() [function.xml-parse-into-struct]: Memory allocation failed : growing buffer in /homepages/0/dxxx/htdocs/dogfightplay/lib/classes/class.moduleoperations.inc.php on line 198

I googled and it seems a solution is to raise the memory on php.ini from memory_size=128M or so.
The problem is that the webhost does'nt allow to do that. By default is limited to 30M and we cannot change this (and this is the biggest hosting company in the world, so you lose ton of people!)

I installed drupal, wordpress and tons of others things on it without a problem, so I'm sure it's possible to install cmsms modules. What's the trick? Is this a limitation on your side? can I install the modules some other ways besides hitting the "download and install" link?
anyone running cmsms on 1and1?

regards and thanks
replytomk3

Re: out of memory

Post by replytomk3 »

I am running several websites on 1and1, and if you immediately get out of memory errors without having a large website with many modules installed already, then it is hosting or improper upload problem.
creat326
New Member
New Member
Posts: 3
Joined: Sat Jun 18, 2011 10:17 pm

Re: out of memory

Post by creat326 »

i searched the 1and1 forum and it seems a common problem. still it only happens with cmsmade simple. I've installed wordpress, drupal, jomla and silver and they all installed perfectly fine.

I've reuploaded cmsms and try and again same error. I'm just trying to install the CG Extensions module and everything else is a clean installation.

I think the module has a problem, it shouldn't need more than 30 mbs to install (which is the limit at 1and1) and since everything else installs... for now i'm putting something else and waiting for a fix on cmsms
spcherub
Power Poster
Power Poster
Posts: 402
Joined: Fri Jun 06, 2008 5:54 pm

Re: out of memory

Post by spcherub »

There are a couple of other ways to install a module:

#1: Download the XML file from the forge (http://dev.cmsmadesimple.org/) to your desktop. The in CMSMS, go to Extensions > Modules and toward the bottom of the page you will see the "Install module via XML file" functionality. Select the file you just downloaded - upload & install.

#2: If you have access to the file system (such as via SSH or FTP), you can use the tar.gzip files from the forge and expand them directly into the Modules directory. Look how other Modules have been created there for reference. Once you have extracted the files you will still need to go to Extensions > Modules and "Install" the module itself.

When I hit the "Out of Memory" error I usually go with #1 above and it usually works.

Hope this helps.

-S
replytomk3

Re: out of memory

Post by replytomk3 »

Oh, you were talking about a module installation... Yes, that happens with all big modules. The solution is to install from .xml.
creat326
New Member
New Member
Posts: 3
Joined: Sat Jun 18, 2011 10:17 pm

Re: out of memory

Post by creat326 »

but why it does not happen with any other CMS system?
I've installed several to test them out during the past day... I can't even install the forum system with cmsms. CG Extension doesn't seem such a huge package that it requires a great amount to install.

I've installed buddypress and a whole bunch of huge modules on wordpress, drupal, joomla (the current one on my website), etc... none gave me an out of memory error.

With cmsms I've tried a few and they gave me errors. I think the way it's structured is wrong, something in the way it's designed has to be changed. It looks like a nice cms and I'm sure it's an easy fix, I just don't have to time to dig into the code myself.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: out of memory

Post by calguy1000 »

The reason you're getting 'out of memory' errors when downloading modules is because of flaws in the way the module manager (and other stuff) downloads and expands XML files. It's VERY memory intensive. CMSMS is memory intensive as well (particularly for people that are new and don't know some of the steps you can take to optimize things). it can currently take many times more memory than the size of the xml file to download, expand, instantiate the module and perform the installation methods. For this reason I typically set php to give my sites 64MB of memory, at least during the installation stage.

Many improvements have been made to this code for CMSMS 1.10, so the situation should be dramatically improved then. Till then you can download the xml file directly from the forge and attempt to install via Extensions >> Modules... or download the .tar.gz file for the modules, expand them and upload them manually.
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.
replytomk3

Re: out of memory

Post by replytomk3 »

calguy1000 wrote:CMSMS is memory intensive as well (particularly for people that are new and don't know some of the steps you can take to optimize things).
calguy1000, could you kindly link to those steps for the unitiated?
User avatar
paulbaker
Dev Team Member
Dev Team Member
Posts: 1465
Joined: Sat Apr 18, 2009 10:09 pm
Contact:

Re: out of memory

Post by paulbaker »

I know this is old. Just to say:

1. This is still an issue, even with version 1.11.11 and 1and1 hosting. I just tried updating JQueryTools through Module Manager and I get an out of memory error which crashes the site (front end and back end) until you remove the (presumably half-installed) module.

2. The solution suggested works fine - upload the XML file.

3. 1and1 appear to be very tight on their memory allocation. I have had no similar memory trouble with my normal host. (1and1 is client's choice of hosting, would never be mine).
Locked

Return to “[locked] Installation, Setup and Upgrade”