Results 1 to 9 of 9
  1. #1
    Join Date
    Oct 2007
    Posts
    25
    Plugin Contributions
    0

    Default Getting Fatal error: Out of memory on meta_tags.php

    I'm randomly getting the error:
    PHP Code:
    Fatal errorOut of memory (allocated 4980736) (tried to allocate 491520 bytesin /home/noteable/public_html/zencart/includes/modules/meta_tags.php on line 265 
    when browsing a store I'm working on (admin side as well)

    I have not made any changes to the meta_tags.php file but the error is always on the same line 265. However when I get the error If I just wait a few seconds and refresh it usually goes away.

    I'm curious if anyone else has seen this error and knows more about, or perhaps if there is a problem with the host's server.

    you may be able to see the problem by browsing here:
    link

    Thanks!

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Getting Fatal error: Out of memory on meta_tags.php

    You might add what type of server - cpu's - mem - etc.

    Can find some of thie in your admin > tools > server version info
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Oct 2007
    Posts
    25
    Plugin Contributions
    0

    Default Re: Getting Fatal error: Out of memory on meta_tags.php

    Thanks!

    Server Host: f1-cps01.adhost.com (10.142.18.150)
    Database Host: localhost (127.0.0.1)
    Server OS: FreeBSD 6.2-RELEASE
    Database: MySQL 5.0.45
    Server Date: 10/25/2007 16:47:51
    Database Date: 10/25/2007 16:47:51

    Server Up Time: 4:47PM up 33 days, 21:47, 0 users, load averages: 0.00, 0.01, 0.00
    PHP Version: 5.2.4 (Zend: 2.2.0)
    HTTP Server: Apache/1.3.39 (Unix) mod_auth_passthrough/1.8 mod_bwlimited/1.4 mod_log_bytes/1.2 PHP/5.2.4 mod_gzip/1.3.26.1a mod_ssl/2.8.30 OpenSSL/0.9.7e-p1

    Zen Cart: 1.3.7.1
    Database Patch Level: 1.3.7.1

    If any of the phpinfo data would be useful I'm happy to post that as well

  4. #4
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Getting Fatal error: Out of memory on meta_tags.php

    Quote Originally Posted by jds580s View Post
    Fatal error: Out of memory (allocated 4980736) (tried to allocate 491520 bytes) in /home/noteable/public_html/zencart/includes/modules/meta_tags.php on line 265
    You probably have too low a setting for memory_limit in your server's php.ini configuration:
    http://www.php.net/manual/en/ini.cor...esource-limits

    It's only trying to allocate 5 MB ... most servers using PHP scripts would typically set their memory_limit to 16M or even 32M if they're using intense scripts.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #5
    Join Date
    Oct 2007
    Posts
    25
    Plugin Contributions
    0

    Default Re: Getting Fatal error: Out of memory on meta_tags.php

    Thanks so much! I'll give that a try and see if it stops the errors.

  6. #6
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Getting Fatal error: Out of memory on meta_tags.php

    but the error is always on the same line 265.
    I got
    Fatal error: Out of memory (allocated 4980736) (tried to allocate 491520 bytes) in /home/noteable/public_html/zencart/includes/modules/create_account.php on line 377
    If you have the ability to use the .htaccess functions you can add this to that file or request that your host set this to a higher value from their end
    Code:
    php_value memory_limit 64M
    Zen-Venom Get Bitten

  7. #7
    Join Date
    Oct 2007
    Posts
    25
    Plugin Contributions
    0

    Default Re: Getting Fatal error: Out of memory on meta_tags.php

    I just made the change in the .htaccess file in the /zencart folder. I can see when running phpinfo that the memory_limit went from 32M to 64M but I'm still getting the error.

    As was mentioned I was incorrect in saying it was always the same line. the first error I got after making the memory_limit change was

    Code:
    Fatal error: Out of memory (allocated 2883584) (tried to allocate 30720 bytes) in /home/noteable/public_html/zencart/includes/functions/functions_general.php on line 1183

  8. #8
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Getting Fatal error: Out of memory on meta_tags.php

    Sounds like it's time to talk to the server administrator to find out what changed since it last worked properly ...
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  9. #9
    Join Date
    Oct 2007
    Posts
    25
    Plugin Contributions
    0

    Default Re: Getting Fatal error: Out of memory on meta_tags.php

    Quote Originally Posted by DrByte View Post
    Sounds like it's time to talk to the server administrator to find out what changed since it last worked properly ...
    Well I think this was a problem on their end. Not sure exactly what it was but it's fixed for the time being anyway.

    Thanks for the advice everyone!

 

 

Similar Threads

  1. v150 PHP Fatal error: Out of memory in includes/modules/attributes.php
    By donnyb in forum General Questions
    Replies: 0
    Last Post: 6 Apr 2012, 12:15 AM
  2. Replies: 1
    Last Post: 9 Oct 2011, 06:24 AM
  3. backup_mysite mod - Fatal error: Out of memory
    By buildingblocks in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 28 Mar 2010, 03:09 AM
  4. Replies: 4
    Last Post: 16 May 2009, 10:43 PM
  5. Fatal error: Out of Memory??
    By DravenLS in forum General Questions
    Replies: 2
    Last Post: 14 May 2008, 02:13 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg