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
Re: Allowed memory size of 134217728 bytes exhausted in /includes/classes/archive.php
Quote:
Originally Posted by
wekalegs
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.
Re: Allowed memory size of 134217728 bytes exhausted in /includes/classes/archive.php
Quote:
Originally Posted by
DrByte
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
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.
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.
Re: Allowed memory size of 134217728 bytes exhausted in /includes/classes/archive.php
Quote:
Originally Posted by
wekalegs
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).
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?
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?
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
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