[solved] Fatal error: Allowed memory size of 8388608 bytes exhausted

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
leet8845
Forum Members
Forum Members
Posts: 40
Joined: Tue Jul 10, 2007 5:53 pm

[solved] Fatal error: Allowed memory size of 8388608 bytes exhausted

Post by leet8845 »

Hi there,

A user of my site who has CMSMS access, has uploaded something by mistake. She said its another website and 'she was just trying to link to another page but ended up uploading a whole site to the server', I'm not sure if this is excatly what has happened.

The site is still up and fine, but when i select pages to edit them in CMSMS in displays the following error :


Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 274299 bytes) in /home/sites/domainname.uk.net/public_html/admin/listcontent.php on line 1007


I have ftp access to the site but cant see anything that looks out of place, mind you im not sure if im looking in the right folders, i checked uploads, and pictures, all seemed normal.

Is there any way I can solve this?

Any help truly appreciated
Last edited by RonnyK on Sat Sep 08, 2007 2:13 pm, edited 1 time in total.
User avatar
Nullig
Power Poster
Power Poster
Posts: 2380
Joined: Fri Feb 02, 2007 4:31 pm

Re: Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to alloca

Post by Nullig »

You could try adding:

ini_set("memory_limit", "16M");

near the top of your config.php file, to see if that helps.

Nullig
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to alloca

Post by calguy1000 »

Some hosts won't allow this, but it is worth a try. 

Getting this error basically means that your web site has exceeded a threshhold, about allowed memory limits.  Maybe you upgraded CMS made simple, upgraded a module, or it could even be as simple as adding a UDT, or a couple of other plugins, etc.  They all go together (somewhat) to increase the memory requirements for CMS Made Simple.

CMS Made simple requires a MINIMUM of 8mb for the base install, and 16Mb is recommended.  If you add too many pages, and/or modules, and/or UDT's, and/or GCB's.... CMS will require more memory.

Try the ini_set method
if that doesn't work, contact your host.
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.
User avatar
leet8845
Forum Members
Forum Members
Posts: 40
Joined: Tue Jul 10, 2007 5:53 pm

Re: Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 2

Post by leet8845 »

Hi there,

Thaks for the help, where is the config.php file located?

Many thanks
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 2

Post by RonnyK »

In the root of your CMS installation.

Ronny
User avatar
leet8845
Forum Members
Forum Members
Posts: 40
Joined: Tue Jul 10, 2007 5:53 pm

Re: Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 2

Post by leet8845 »

Thanks,

Do you know the folder name cause theres lots of files there

Many thanks
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 2

Post by RonnyK »

It's in the main folder of the domain. If your domain is www.domain.com, that's where the config.php resides. At the same level, ou should see all folders like Modules and Plugins etc.....

Ronny
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 2

Post by RonnyK »

If you FTP-ed CMS initially to a certain folder, before you started the installation, than that will be the root. So try to make an FTP-connection to your domain, and check the main folder.

Ronny
User avatar
leet8845
Forum Members
Forum Members
Posts: 40
Joined: Tue Jul 10, 2007 5:53 pm

Re: Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 2

Post by leet8845 »

Thanks for yor help.

I didnt upload the site originally, im now downloading it and im going to run a search with Windows, on the folder, to find the config.php file.
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 2

Post by RonnyK »

How are you downloading, through FTP. If so, you connected to the machine, went to the level www.domain.com and pull everything, did you? If so, by clicking on the www.domain.com, you get one level under the name, that's the root folder, if someone types www.domain.com, he/she goes to, www.domain.com/index.php. So the stuff you see inside the folder www.domain.com is the root.

Ronny
User avatar
leet8845
Forum Members
Forum Members
Posts: 40
Joined: Tue Jul 10, 2007 5:53 pm

Re: Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 2

Post by leet8845 »

Thanks I got it, I just didnt see it the first time I looked, thanks for your help.
User avatar
leet8845
Forum Members
Forum Members
Posts: 40
Joined: Tue Jul 10, 2007 5:53 pm

Re: Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 2

Post by leet8845 »

Wow it worked , with the ini_set("memory_limit", "16M"); method

MAny thanks to all who helped!!!! :) :) :) ;D ;D
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 2

Post by RonnyK »

Leet8845,

if a topic you started is solved, will you mark the subject of the initial post with [solved]. This can be done by "modifying", your initial post, and modify the subject.

I've marked this one, for you.

Ronny
Post Reply

Return to “CMSMS Core”