NYCPHP Meetup

NYPHP.org

[joomla] fatal error: allowed memory size

Scott Wolpow scott at wolpow.com
Fri Feb 3 22:00:21 EST 2012


Thanks, feeling better already.
When you save the change in Cpanel, it restarts the service.
HostGator, GoDaddy and many others do not publish their real 
conflagrations. Even when you do a php info page.


We have been playing with Varnish to speed up the sites and when there 
is a need, we will write a 'pressflow' like system for Joomla.
It may be a Joomla Fork. It will depend on what direction a project goes in.
I got tired of other peoples machines so I now have my own NOC in Tarrytown.
Our hosting is by invite only.
SW

On 2/3/2012 9:50 PM, David Roth wrote:
> Feel better and very soon, Scott!
>
> I've not run into a problem with memory issues on MySQL, thanks for 
> explaining it. Something to certainly watch out for. The most daring 
> change I've made to my.cnf file is to move the MySQL databases to an 
> eSATA RAID.
>
> On shared hosting services, like Hostgator, you can copy the 
> /etc/php.ini locally to your account and  make whatever changes you 
> need to make Joomla happy for installation and increase the memory 
> limit. You can also use .htaccess to override those things as well. In 
> the CPANEL there are additional options for PHP. The server on 
> Hostgator doesn't need to be re-started for them to take effect. I 
> forget what configuration of PHP they are using to achieve this. I 
> know on my own CentOS server, I do have to restart httpd. I think it 
> has to do with some option on PHP at compile time (of PHP itself) if 
> you want things to take immediate effect or not.
>
> Shared hosting can have its limits, and often times you don't know 
> what they might even be until you start doing production. There is 
> usually a work around but sometimes the limits aren't even documented.
>
> David Roth
>
> On Fri, Feb 3, 2012 at 9:21 PM, Scott Wolpow <scott at wolpow.com 
> <mailto:scott at wolpow.com>> wrote:
>
>     It is a php.ini issue, sorry have a bad cold.
>
>
>     There is a similar error involving MySql.
>     It comes from a search that has too many queries or joins.
>     The MBString can cause that sometimes.
>
>     Since you are on a shared platform, you must call support.
>
>     The Apache server has to be restarted to take effect.
>
>     On a dedicated server or VPS it is a simple service httpd restart
>     In your environment you may have something in your cPanel.
>
>     This is why shared is baaad.
>
>     SW
>     On 2/3/2012 9:01 PM, David Roth wrote:
>>     Scott, I must be missing something. How do you know this error
>>     message could be database related and not just PHP?
>>
>>     "*Fatal error*: Allowed memory size of 33554432 bytes exhausted
>>     (tried to allocate 6859888 bytes) in
>>     */home/swarrez/public_html/sw173/libraries/phputf8/mbstring/core.php* on
>>     line *121"*
>>
>>     David Roth
>>
>>
>>
>>     On Fri, Feb 3, 2012 at 5:03 PM, Scott Wolpow <scott at wolpow.com
>>     <mailto:scott at wolpow.com>> wrote:
>>
>>         Yes, for php mem limits, but that error can also be caused
>>         and cured by changing the my.cnf file.
>>         The mem limit is from the DB.
>>
>>         SW
>>
>>         On 2/3/2012 4:49 PM, Chris French wrote:
>>>         You can also set the Memory limit inside of a php script,
>>>         but the better place to do it is in the php.ini file as
>>>         Donna pointed out.
>>>
>>>         ini_set('memory_limit', '64M');
>>>
>>>         should in most servers give you the increase in memory this
>>>         can be good for testing
>>>
>>>         Chris
>>>         On Feb 3, 2012, at 11:44 AM, Donna Marie Vincent wrote:
>>>
>>>>         That's not "configuration.php".  That's the php
>>>>         configuration, which is php.ini.  Has nothing to do with
>>>>         Joomla or MySQL
>>>>
>>>>         "configuration.php" is a file in the Joomla installation.
>>>>
>>>>         ------------------------------------------------------------------------
>>>>         *From:* Helvécio da Silva <helvecio.rj at gmail.com
>>>>         <mailto:helvecio.rj at gmail.com>>
>>>>         *To:* NYPHP SIG: Joomla <joomla at lists.nyphp.org
>>>>         <mailto:joomla at lists.nyphp.org>>
>>>>         *Sent:* Friday, February 3, 2012 4:41 PM
>>>>         *Subject:* Re: [joomla] fatal error: allowed memory size
>>>>
>>>>         I dont know wether it's a MySQL issue or Joomla issue.
>>>>
>>>>         What I can say is when that happened to me I made the
>>>>         change in configuration.php and things started working fine.
>>>>
>>>>         Check this post in the Joomla forum. Hope it helps.
>>>>
>>>>         http://forum.joomla.org/viewtopic.php?f=32&t=246541&p=1129624&hilit=increase+memory+limit#p1129457
>>>>         <http://forum.joomla.org/viewtopic.php?f=32&t=246541&p=1129624&hilit=increase+memory+limit#p1129457>
>>>>
>>>>         2012/2/3 Scott Wolpow <scott at wolpow.com
>>>>         <mailto:scott at wolpow.com>>
>>>>
>>>>             It is a MySql issue, not a Joomla issue.
>>>>             Not sure if the Joomla user has the rights.
>>>>
>>>>             SW
>>>>
>>>>
>>>>             On 2/3/2012 4:09 PM, David Roth wrote:
>>>>>             I handle memory limit increases for PHP in the php.ini
>>>>>             file. Am I missing something by it being cone in the
>>>>>             configuration.php file? Thanks!
>>>>>
>>>>>             David Roth
>>>>>
>>>>>
>>>>>             On Fri, Feb 3, 2012 at 4:03 PM, Helvécio da Silva
>>>>>             <helvecio.rj at gmail.com <mailto:helvecio.rj at gmail.com>>
>>>>>             wrote:
>>>>>
>>>>>                 In your configuration.php file, write on the very
>>>>>                 first line
>>>>>
>>>>>                 ini_mem('memory_limit','12M');
>>>>>
>>>>>                 If it doesn't work, try to increase it.
>>>>>
>>>>>                 G'luck!
>>>>>
>>>>>                 2012/1/31 paul elliott <peforever at hotmail.com
>>>>>                 <mailto:peforever at hotmail.com>>
>>>>>
>>>>>                     Hello,
>>>>>                     I made a copy of my default template and
>>>>>                     assigned it to a menu item for Hikashop
>>>>>                     categories.
>>>>>                     At some point, after i go into the Template
>>>>>                     Manager, i now cannot get in to edit either
>>>>>                     template.
>>>>>                     I get this:
>>>>>
>>>>>                     *Fatal error*: Allowed memory size of 33554432
>>>>>                     bytes exhausted (tried to allocate 6859888
>>>>>                     bytes) in
>>>>>                     */home/swarrez/public_html/sw173/libraries/phputf8/mbstring/core.php* on
>>>>>                     line *121*
>>>>>                     *
>>>>>                     *
>>>>>                     Please help!
>>>>>                     Thanks,
>>>>>                     Paul
>>>>>
>>
>>
>>
>>     _______________________________________________
>>     New York PHP SIG: Joomla! Mailing List
>>     http://lists.nyphp.org/mailman/listinfo/joomla
>>
>>     NYPHPCon 2006 Presentations Online
>>     http://www.nyphpcon.com
>>
>>     Show Your Participation in New York PHP
>>     http://www.nyphp.org/show_participation.php
>
>     _______________________________________________
>     New York PHP SIG: Joomla! Mailing List
>     http://lists.nyphp.org/mailman/listinfo/joomla
>
>     NYPHPCon 2006 Presentations Online
>     http://www.nyphpcon.com
>
>     Show Your Participation in New York PHP
>     http://www.nyphp.org/show_participation.php
>
>
>
>
> _______________________________________________
> New York PHP SIG: Joomla! Mailing List
> http://lists.nyphp.org/mailman/listinfo/joomla
>
> NYPHPCon 2006 Presentations Online
> http://www.nyphpcon.com
>
> Show Your Participation in New York PHP
> http://www.nyphp.org/show_participation.php
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/joomla/attachments/20120203/65df0210/attachment.html>


More information about the Joomla mailing list