The Joomla! Forum ™



Forum rules


Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.



Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 55 posts ]  Go to page Previous  1, 2
Author Message
PostPosted: Fri Aug 27, 2010 8:15 am 
Joomla! Fledgling
Joomla! Fledgling

Joined: Wed Nov 18, 2009 10:53 pm
Posts: 4
hi all,

I have the same issue !
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 24 bytes) in /var/www/clients/client1/web1/web/libraries/joomla/error/exception.php on line 117

But modify the php memory parameter do nothing unless it make more time to show the error ... and i have already 128Mb in memory parameter in php.ini ...

This website work fine on other server with the same parameter in php.ini !!!

This issue make me crazy .... please helpppppppppppp

_________________
easeo
infogérance informatique pour PME http://www.easeo.fr


Top
 Profile  
 
PostPosted: Fri Aug 27, 2010 10:06 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Mon May 26, 2008 1:48 pm
Posts: 12
pe7er wrote:
Could you increase PHP's memory limit from 16 Mb to 32 Mb?

Do you have access to php.ini ?
If so, search for memory_limit and change the value to 32M

If not, do you have a .htaccess file in your Joomla website root folder?
If so, add the following line:
php_value memory_limit 32M



Hi there
I'm having the same problem - I've tried adding this line to the .htaccess file, and I get an internal server error 500. It works fine on my local host with MAMP but not on the remote server.

Is there any special place it should go in the .htaccess file?

thanks!


Top
 Profile  
 
PostPosted: Tue Aug 31, 2010 4:30 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Wed Nov 18, 2009 10:53 pm
Posts: 4
i found where is the problem sometimes when you have this error ...
in my case it was because some php entensions was not activated (for exemple php-apc)

Hope it can help someone

_________________
easeo
infogérance informatique pour PME http://www.easeo.fr


Top
 Profile  
 
PostPosted: Tue Aug 31, 2010 4:54 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Mon May 26, 2008 1:48 pm
Posts: 12
easeo wrote:
i found where is the problem sometimes when you have this error ...
in my case it was because some php entensions was not activated (for exemple php-apc)

Hope it can help someone


Thanks for this. My problem is I don't have access to php settings on the server, and I can't find out what extensions are activated. Do you know if there's a list somewhere of which extensions must be activated? Then I can ask the server admin.
Thanks!


Top
 Profile  
 
PostPosted: Wed Sep 01, 2010 7:20 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Mon May 26, 2008 1:48 pm
Posts: 12
Hi
My problem continued even when the host increased the memory from 16 to 32mb.
My problem went away when I fixed my database. I was having issues with auto-increment i.e. all my tables had lost their auto-increment value in the id column. I overwrote the entire db with my local version which was working correctly and now everything seems happy.
Hope this helps.


Top
 Profile  
 
PostPosted: Wed Sep 01, 2010 5:12 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Sun May 23, 2010 7:09 am
Posts: 1
hi

i receive the following error while logging in the admin panel of my joomla site

Fatal error: Class 'JUser' not found in C:\Inetpub\vhosts\silverdgt.com\httpdocs\hexademo\libraries\joomla\application\application.php on line 782

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 83 bytes) in C:\Inetpub\vhosts\silverdgt.com\httpdocs\hexademo\libraries\joomla\error\exception.php on line 117

i dont have php.ini accessible neither do i have the .htaccess

Please resolve my problem


Top
 Profile  
 
PostPosted: Fri Oct 22, 2010 3:34 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sun Mar 23, 2008 1:24 am
Posts: 5
Thanks cwk for your suggestion. it worked beautifully.
cwk wrote:

I had the same issue and raised it with my ISP. They recommended I modify the PHP.ini which on my system is located at /conf/php.ini. I had been poking around in /etc/php.ini, but that's the wrong place, at least for me. In the /conf/php.ini file I found an entry for memory_limit and doubled it from 8388608 to 16777216. So far, so good. No White Screen of Death.

Thanks the Modwest team (my ISP) for a quick response. Nice to be able to recommend an ISP.


Top
 Profile  
 
PostPosted: Fri Nov 12, 2010 8:39 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Fri Nov 12, 2010 8:27 pm
Posts: 1
I have the same problem and I'm not an IT, so I might be doing something wrong. I talked to the server administrator and they told me that I had to create a php.ini in the same folder. My first mistake was:

Fatal error: Maximum execution time of 30 seconds exceeded in /mnt/web6/52/09/51446309/htdocs/suelo/libraries/joomla/filesystem/archive/zip.php on line 300

So I put in that php.ini this:

Code:
max_execution_time = 120


And then the error was this one:
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 1164513 bytes) in /mnt/web6/52/09/51446309/htdocs/suelo/libraries/joomla/filesystem/archive/zip.php on line 284

So I modified the php.ini like this (and just this):

Code:
max_execution_time = 120
memory_limit = 16777216


But now I have the message 500 internal server error.

Any idea?


Top
 Profile  
 
PostPosted: Sat Dec 11, 2010 4:11 am 
User avatar
Joomla! Intern
Joomla! Intern

Joined: Fri Oct 12, 2007 8:31 am
Posts: 79
circsoc wrote:
There is also a third option that doesn't seem to have been mentioned here. Using the last post as an example, his error is

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 254561 bytes) in /home/wwwmydj/public_html/components/com_sh404sef/shPageRewrite.php on line 244

So ftp to the file shPageRewrite.php in the specified location and edit it as follows.

Near the top there should be a line that looks like this

define("XXXXXXXX", dirname(__FILE__));

Simply add the following line below it with the memory limit you want.

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

This solved a problem I was having uploading large files to RSGallery2, and should work for you too.



Awesome! Still works! Thank you circsoc!!! :D

_________________
:D Visit http://ARTS.org.au - The Australian Arts Community" :D


Top
 Profile  
 
PostPosted: Mon Dec 27, 2010 9:32 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Wed Jun 17, 2009 7:11 pm
Posts: 9
Hi you all, I am having the same problem with this message generated by the configuration component of Community Builder, see the message below.

Fatal error: Out of memory (allocated 16777216) (tried to allocate 40961 bytes) in /home/idensac/public_html/libraries/joomla/application/module/helper.php on line 172

We were trying to fix this with my ISP and there are 128MB of memory available in memory limit, I even tried with an utility to see the real memory available and it was in fact 128MB.

My ISP tells me that there is a line of code preventing to use more than 16MB (as it is shown in the message), however I saw a thread where a bug in PHP is mentioned (http://bugs.php.net/39438) and I am wondering if this bug is still in the version that my ISP is using in their servers

They are using
PHP 5.2.11
Apache 2.2.14
MySQL 5.0.91 Community
Operating System Linux

In my XP configuration I have an identical joomla installation with Community Builder and there are no problems at all. My Configuration is

PHP 5.2.9
Apache 2.2.11
MySQL 5.1.33 Community
Operating System XP Professional

Please let me know if there is strong evidence of a documented bug similar to the one I mentioned before in the version 5.2.11 of PHP

We tried all the suggestions mentioned in this thread with no results


Top
 Profile  
 
PostPosted: Tue Dec 28, 2010 10:51 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Sun Apr 16, 2006 9:07 am
Posts: 1
For those that are running on a VPS Here is a possible answer to your problems. I have had the same fault trouble me for hours until I eventually found the solution.. Just read on...

CPanel is a leading hosting/server management environment that runs on Linux. It provides webbased access to many tasks and is built to ease the setup and daily operation of webhosting (apache) and e-mail (exim).

Part of the deal is that all configuration files are generated by CPanel scripts. For example, your regular httpd.conf is generated by many scripts that built the apache environment for your system, its configured virtual hosts many other things. I have found that it sometimes is trying to be too restrictive. More specific, out of nowhere I got this error when running virtually any random PHP script from within a browser:

Fatal error: Out of memory (allocated 11272192) (tried to allocate 21352 bytes) in <script name>

I took me a long time to find out what is happening here. Well, it had to do something with the memory limit of PHP and Apache, but why …. I pinpointed it is due to the memory limits CPanel enforces on apache. The memory limit are calculated based on earlier server usage … or so it says. It does not work, apperantly.

Anyway, to make this error go away and have PHP scripts running again, simply go to/etc/httpd/conf/httpd.conf and search for the lines containing these keywords:

RLimitMEM 104390997
RLimitCPU 240

The numbers may/will be different. Just comment out or remove the line containing RLimitMEM, save the file and restart apache:

/etc/init.d/httpd restart

One important thing to remember is that upon the next generation of the file by CPanel, this step needs to be repeated!


Top
 Profile  
 
PostPosted: Wed Jan 26, 2011 1:56 pm 
Joomla! Intern
Joomla! Intern

Joined: Sat Dec 04, 2010 6:57 pm
Posts: 62
Thanks for sharing this info pe7er. Would it be effect to the hosting company doing this? Does it relate to bandwidth usage? If not, ever joomla user should add this to increase the speed of their website.

Cheers!

pe7er wrote:
fashion24 wrote:
Or is it possible to add a .htaccess file in the root folder? If yes, what should be in it?


I would create an empty .htaccess file and put
php_value memory_limit 32M
in it...


Top
 Profile  
 
PostPosted: Sat Feb 05, 2011 2:48 am 
Joomla! Fledgling
Joomla! Fledgling

Joined: Sat Feb 05, 2011 2:31 am
Posts: 2
Unable to open '/home/content/87/4988987/html/components/com_virtuemart/shop_image/product/resized/FloraTop_185x150.jpg' for writing: File too large in /home/content/87/4988987/html/administrator/components/com_virtuemart/classes/class.img2thumb.php on line 299

All of the solutions in here recommend using the .htaccess file in the root folder, but the file is currently being used for SEF Urls and contains the following script:


Code:
##
# @version $Id: htaccess.txt 10492 2008-07-02 06:38:28Z ircmaxell $
# @package Joomla
# @copyright Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved.
# @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
# Joomla! is Free Software
##


#####################################################
#  READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE
#
# The line just below this section: 'Options +FollowSymLinks' may cause problems
# with some server configurations.  It is required for use of mod_rewrite, but may already
# be set by your server administrator in a way that dissallows changing it in
# your .htaccess file.  If using it causes your server to error out, comment it out (add # to
# beginning of line), reload your site in your browser and test your sef url's.  If they work,
# it has been set by your server administrator and you do not need it set here.
#
#####################################################

##  Can be commented out if causes errors, see notes above.
#Options +FollowSymLinks
#
#  mod_rewrite in use

RewriteEngine On

########## Begin - Rewrite rules to block out some common exploits
## If you experience problems on your site block out the operations listed below
## This attempts to block the most common type of exploit `attempts` to Joomla!
#
# Block out any script trying to set a mosConfig value through the URL
RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR]
# Block out any script trying to base64_encode crap to send via URL
RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]
# Block out any script that includes a <script> tag in URL
RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
# Block out any script trying to set a PHP GLOBALS variable via URL
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
# Block out any script trying to modify a _REQUEST variable via URL
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
# Send all blocked request to homepage with 403 Forbidden error!
RewriteRule ^(.*)$ index.php [F,L]
#
########## End - Rewrite rules to block out some common exploits

#  Uncomment following line if your webserver's URL
#  is not directly related to physical file paths.
#  Update Your Joomla! Directory (just / for root)

# RewriteBase /


########## Begin - Joomla! core SEF Section
#
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/index.php
RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.feed|\.pdf|\.raw|/[^.]*)$  [NC]
RewriteRule (.*) index.php
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
#
########## End - Joomla! core SEF Section


Anytime I add the line:
Code:
php_value memory_limit 32M
the entire site shuts down.
Also, the php.ini file is inaccessible.
Can someone please provide an alternative fix for this problem.

Thank you.


Top
 Profile  
 
PostPosted: Sat Feb 05, 2011 1:42 pm 
User avatar
Joomla! Hero
Joomla! Hero

Joined: Wed Oct 31, 2007 3:48 pm
Posts: 2810
Location: Victorian England 1885
you need to get your host to change the php.ini.

First though, when you load the original image, what size is it? It sounds like it is far too big.

_________________
Yereverluvinunclebert
Steampunk widgets. Platforms of choice: Joomla 1.0/1.5, Joostina 1.2, OSCommerce
Site aims: Optimisation, Security and Solidity
http://widgets.yahoo.com/widgets/steampunk-clock-calendar


Top
 Profile  
 
PostPosted: Sat Feb 05, 2011 10:50 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Sat Feb 05, 2011 2:31 am
Posts: 2
the file dimensions are: 185x150px with an approx size of 400kb
php.ini file is inaccessible by the host as well.
Any other suggestions?


Top
 Profile  
 
PostPosted: Sun Feb 06, 2011 12:09 am 
User avatar
Joomla! Hero
Joomla! Hero

Joined: Wed Oct 31, 2007 3:48 pm
Posts: 2810
Location: Victorian England 1885
Perhaps change host to one that can?

When you process a smaller image, does it still cause the same error?

_________________
Yereverluvinunclebert
Steampunk widgets. Platforms of choice: Joomla 1.0/1.5, Joostina 1.2, OSCommerce
Site aims: Optimisation, Security and Solidity
http://widgets.yahoo.com/widgets/steampunk-clock-calendar


Top
 Profile  
 
PostPosted: Mon Mar 07, 2011 4:37 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Mon Mar 07, 2011 4:30 pm
Posts: 2
I had the same issue:
Code:
[Mon Mar 07 18:09:00 2011] [error] [client 212.116.173.43] PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 64 bytes) in /home/smoleumi/joomla/libraries/joomla/error/exception.php on line 117
[Mon Mar 07 18:09:00 2011] [error] [client 212.116.173.43] PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 24 bytes) in /home/smoleumi/joomla/libraries/joomla/session/session.php on line 136

nothing of the above was relavant as my memory_limits was set to 128M.

While trying to run mysqldump on the data base i got this error:
Code:
[root@mintz smoleumi_joomla]# mysqldump smoleumi_joomla > /tmp/smoleumi_joomla.sql
mysqldump: Got error: 145: Table './smoleumi_joomla/jos_session' is marked as crashed and should be repaired when using LOCK TABLES

i used this link to help me unlock the table: http://recursive-design.com/blog/2009/0 ... s-crashed/

That solved the issue.

Rgds


Top
 Profile  
 
PostPosted: Wed Aug 31, 2011 1:42 am 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast

Joined: Sun Jun 17, 2007 9:17 am
Posts: 142
Location: Australia
dont worry about trying to edit any files, just use this :D

best plug-in ever.

http://extensions.joomla.org/extensions/hosting-a-servers/servers/7747

this will let you chose the memory limit of your site without needing to hunt down bits of code like i have been doing for the last 3 months :P


Top
 Profile  
 
PostPosted: Fri Sep 02, 2011 12:27 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Wed Aug 03, 2011 1:02 pm
Posts: 22
excuse whats the max memory siza that we can set on php.ini

_________________
http://www.elyadgasht.com
http://www.jsa.ir


Top
 Profile  
 
PostPosted: Thu Nov 10, 2011 4:32 pm 
Joomla! Enthusiast
Joomla! Enthusiast

Joined: Thu Jun 24, 2010 12:03 pm
Posts: 141
Location: Indonesia
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 98304 bytes) in C:\wamp\www\obat\modules\mod_menu\helper.php on line 112
why?
please help me


Top
 Profile  
 
PostPosted: Fri Apr 27, 2012 2:53 am 
Joomla! Fledgling
Joomla! Fledgling

Joined: Fri Apr 27, 2012 2:48 am
Posts: 1
SUCCEDDD... Thank you :)
It's works brother.
I change the limit on: php.ini.default
from 8M to 32M then it's works great :)

Btw, if I did the change on that file, then I do not have to change on htaccess isn't it?
Best regards


Top
 Profile  
 
PostPosted: Tue Jun 19, 2012 1:56 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Wed Jun 13, 2012 9:20 pm
Posts: 5
pe7er wrote:
Could you increase PHP's memory limit from 16 Mb to 32 Mb?

Do you have access to php.ini ?
If so, search for memory_limit and change the value to 32M

If not, do you have a .htaccess file in your Joomla website root folder?
If so, add the following line:
php_value memory_limit 32M



Hello, can I upload the php.ini file from another joomla template into the root folder in a situation where I can not access my php.ini file. I can then edit the memory limit for this new file. Thanks for any help with this.


Top
 Profile  
 
PostPosted: Thu Jun 28, 2012 7:14 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sat Sep 17, 2011 4:05 pm
Posts: 22
hi excuse me i chnage to 1028 mb
and my site run correctly but i have a question may it damaged my server??

_________________
http://en.adinehsanat.ir
http://www.tomweb.ir


Top
 Profile  
 
PostPosted: Mon Jul 02, 2012 8:06 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Tue Sep 28, 2010 5:52 pm
Posts: 18
Fatal error: Allowed memory size of 94371840 bytes exhausted (tried to allocate 40961 bytes) in /home/laura/yourbusybee.com/rmsbeta/libraries/joomla/application/module/helper.php on line 174

I've tried modifying the htaccess file as instructed, which does nothing because I'm on Apache. My host has the limit set to 90M, so that CAN'T be the problem (can it?)

I wasn't even processing any images at the time. I was using the Module Anywhere plugin. NO idea what happened, but all of a sudden this white screen of death came up.

PLEASE help! Any ideas?

~Laura


Top
 Profile  
 
PostPosted: Fri Jul 13, 2012 4:13 pm 
User avatar
Joomla! Master
Joomla! Master

Joined: Wed Aug 17, 2005 10:27 pm
Posts: 14709
Location: Kent, England
[Mod note: why are you even posting in the 1.0 forum?]


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 55 posts ]  Go to page Previous  1, 2



Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group