Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Join Date
    Aug 2012
    Posts
    16
    Plugin Contributions
    0

    Default Allowed memory size of 134217728 bytes exhausted in /includes/classes/archive.php

    We had to move zncart to a new host and all seems to be working ok except backups. We get this error
    Allowed memory size of 134217728 bytes exhausted (tried to allocate 64548902 bytes) in /home/hitec222/public_html/hitec/includes/classes/archive.php on line 638

    The back completes the sql back up and then leaves a part back up of the zip file in the cache folder wit a file around the same size when it crashes.

    The host says we are possibly using more resources than allowed.
    These are the hosts usage alllocation which appear to be the same as the previous host.

    10% CPU Usage
    5% Memory Usage (or 512 MB)
    50 Running Processes
    15 Minute Max Execution Time

    Any thoughts please

  2. #2
    Join Date
    Jan 2004
    Posts
    66,419
    Blog Entries
    7
    Plugin Contributions
    277

    Default Re: Allowed memory size of 134217728 bytes exhausted in /includes/classes/archive.php

    Quote Originally Posted by wekalegs View Post
    in /home/hitec222/public_html/hitec/includes/classes/archive.php on line 638
    There is no "archive.php" file in Zen Cart.

    Sounds like a problem with a plugin you've installed.
    .

    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.

  3. #3
    Join Date
    Aug 2012
    Posts
    16
    Plugin Contributions
    0

    Default Re: Allowed memory size of 134217728 bytes exhausted in /includes/classes/archive.php

    Quote Originally Posted by DrByte View Post
    There is no "archive.php" file in Zen Cart.

    Sounds like a problem with a plugin you've installed.
    Hi there the archive.php is part of the backup plugin I have just looked at the backup plugin zip file and there it is.
    As I said this was all working with out any problems until we moved hosts.

    The allocated memory etc in the php.ini file is the same from both hosting providers.
    as below
    max_execution_time = 30 ; Maximum execution time of each script, in seconds
    max_input_time = 60 ; Maximum amount of time each script may spend parsing request data
    memory_limit = 512M ; Maximum amount of memory a script may consume (32MB)

    Thanks again for help

  4. #4
    Join Date
    Jan 2004
    Posts
    66,419
    Blog Entries
    7
    Plugin Contributions
    277

    Default Re: Allowed memory size of 134217728 bytes exhausted in /includes/classes/archive.php

    "allowed memory exhausted" is usually symptomatic of an incomplete for/while loop in the PHP code. Maybe you've got the plugin's settings looking at folders that no longer exist (paths changed on new host?) since moving, and you're throwing it into confusion as a result?

    Perhaps it's best to get assistance from those who use your specific plugin. I imagine there's already a support thread for that plugin elsewhere on the forum.
    .

    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
    Aug 2012
    Posts
    16
    Plugin Contributions
    0

    Default Re: Allowed memory size of 134217728 bytes exhausted in /includes/classes/archive.php

    Thanks for that i iwll try and find more on that plugin. I have google itand found nothing helpfull relating to the baqkup plugin.
    What is interesting is that the sql backs up fine and the store back up creates a partial zip file about a 10th of what it should be.

    Any way thanks for help so far.

  6. #6
    Join Date
    Jan 2004
    Posts
    66,419
    Blog Entries
    7
    Plugin Contributions
    277

    Default Re: Allowed memory size of 134217728 bytes exhausted in /includes/classes/archive.php

    Quote Originally Posted by wekalegs View Post
    What is interesting is that the sql backs up fine and the store back up creates a partial zip file about a 10th of what it should be.
    Sounds very much like you've misconfigured it (or more specifically not yet configured it for your new server).
    .

    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.

  7. #7
    Join Date
    Aug 2012
    Posts
    16
    Plugin Contributions
    0

    Default Re: Allowed memory size of 134217728 bytes exhausted in /includes/classes/archive.php

    I agree but I have removed the plugin and reinstalled it with same problem. This may help the backup works fine if i select an individual folder but fails on complete site backup with a file size of 320mb approx. Do you know if the host can limit the size of the file that can be stored in the cache folder as the bcakup seems to crash at the 35mb mark?

  8. #8
    Join Date
    Jan 2004
    Posts
    66,419
    Blog Entries
    7
    Plugin Contributions
    277

    Default Re: Allowed memory size of 134217728 bytes exhausted in /includes/classes/archive.php

    What's the name of the plugin?
    What's the download URL?
    .

    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
    Aug 2012
    Posts
    16
    Plugin Contributions
    0

    Default Re: Allowed memory size of 134217728 bytes exhausted in /includes/classes/archive.php

    I have resolved the problem. This may be of use to you. It was nothing to do with the script or memory. It was one folder that has not transfered correctly when moved from one server to the other. This folder was and ftp folder and once deleted all is working fine. I guess one of the files in it must have been corrupted. I found it by running the backup option selecting each folder 1 by one until i came across the error. the folder was only 74mb in size. Deleted it and the whole site backs up fine now.

    Regards

  10. #10
    Join Date
    Aug 2012
    Posts
    16
    Plugin Contributions
    0

    Default Re: Allowed memory size of 134217728 bytes exhausted in /includes/classes/archive.php

    This is the plugin

    Backup your Zen Cart site and Zen Cart database fast and easy.

    BackUp ZC adds a 'Backup ZenCart' option under Admin-_Tools
    It allows you to backup your Zen Cart database and has options
    to do selective directory backups, selective file backups.
    The ability to store the backup file on the server or download
    the backup file.

    Optional archive file types zip, gzip, tar.

    Simple install no core file changes, no overwrite of files,
    no database additions. + Download Latest

    Forum Support Thread

    Submit An Updated Version
    Zen Cart® Versions v1.5.0
    Original Author skipwater
    Last Updated by skipwater - 28 Apr 2012
    Downloads 6,232

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 61
    Last Post: 3 Jan 2017, 08:57 AM
  2. v151 XML-Sitemap Keeps failing Allowed memory size of bytes exhausted
    By kapsolas in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 9 Jun 2014, 09:56 PM
  3. Allowed memory size of 33554432 bytes exhausted
    By billt in forum General Questions
    Replies: 2
    Last Post: 15 Feb 2010, 12:19 AM
  4. Allowed memory size of 8388608 bytes exhausted
    By Cornholio in forum General Questions
    Replies: 2
    Last Post: 14 Jun 2007, 03:18 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR