Re: BackUp ZC [Support Thread]
Quote:
Originally Posted by
rorosun
When I open Backup ZC in the admin at the bottom of notes it says "Please be patient scanning your Zen Cart directory structure." and on the right under options, it lists the file type radio buttons and under that it says "Directories Loaded ..." and everything is blank below that.
The errors are:
Code:
[19-Sep-2010 08:00:56] PHP Fatal error: Uncaught exception 'RuntimeException' with message 'SplFileInfo::getSize() [<a href='splfileinfo.getsize'>splfileinfo.getsize</a>]: stat failed for /MYHOME/stats/error_logs' in /MYHOME/MYADMIN/backup_zc.php:84
Stack trace:
#0 /MYHOME/MYADMIN/backup_zc.php(84): SplFileInfo->getSize()
#1 /MYHOME/MYADMIN/backup_zc.php(417): directorySize('/home/content/7...')
#2 {main}
thrown in /MYHOME/MYADMIN/backup_zc.php on line 84
What OS are you running?
PHP version?
SKip
Re: BackUp ZC [Support Thread]
Quote:
Originally Posted by
newtozc32
I did the full install on my current store and it did not work as expected. In fact, it did not work at all. When I click on it in admin tools it just redirects to the homepage.
Any ideas?
:lookaroun
When you hover over the Backup ZenCart link in the lower left of your browser the url should display something like this.
yourwebsite.com/youradmin/backup_zc.php
Skip
Re: BackUp ZC [Support Thread]
ZC 1.5.1
I have question. Why the SQL file exported manually has a little bigger size than that finished by BACKUP ZC? Does that mean there is something which isn't saved? Thanks
Re: BackUp ZC [Support Thread]
Quote:
Originally Posted by
fanisme
ZC 1.5.1
I have question. Why the SQL file exported manually has a little bigger size than that finished by BACKUP ZC? Does that mean there is something which isn't saved? Thanks
You can easily answer this question yourself by comparing the two files.. I suspect that you have MORE lines in one file than the other.. doesn't mean you are missing anything..
Re: BackUp ZC [Support Thread]
Quote:
Originally Posted by
fanisme
ZC 1.5.1
I have question. Why the SQL file exported manually has a little bigger size than that finished by BACKUP ZC? Does that mean there is something which isn't saved? Thanks
Also you will find that the SQL file that ZC BackUp creates has less CR/LF or End of Line code. (To save space)
Skip
Re: BackUp ZC [Support Thread]
Hi, when attempting to run this addon I get an internal server 500 error, with the following error in server log
Premature end of script headers: backup_zc.php,
Pete
Re: BackUp ZC [Support Thread]
Quote:
Originally Posted by
scytheuk
Hi, when attempting to run this addon I get an internal server 500 error, with the following error in server log
Premature end of script headers: backup_zc.php,
Pete
Sounds like a bad upload try re-uploading the file and see if that fixes it.
Skip
Re: BackUp ZC [Support Thread]
Hi Skip, thanks for this great mod. I do have an issue when using it though (similar or the same as mentioned above?).
Depending on my selection some backups succeed and some don't. Whenever I try to backup everything I get the internal server error message, and the following message appears in the server log:
Quote:
mod_fcgid: read data timeout in 40 seconds, referer: ............admin/backup_zc.php
Premature end of script headers: backup_zc.php, referer: ...........admin/backup_zc.php
After viewing this log I tried another backup and recorded the time, and after 40 seconds I got the internal server error.
So I guess the problem/solution lies at the host?
Re: BackUp ZC [Support Thread]
Quote:
Originally Posted by
paulm
Hi Skip, thanks for this great mod. I do have an issue when using it though (similar or the same as mentioned above?).
Depending on my selection some backups succeed and some don't. Whenever I try to backup everything I get the internal server error message, and the following message appears in the server log:
After viewing this log I tried another backup and recorded the time, and after 40 seconds I got the internal server error.
So I guess the problem/solution lies at the host?
What is happening is that you are requesting more resources then php can give you.
Not all hosts will allow php settings in your htaccess file but if yours allows it add this code to it.
Code:
php_value max_execution_time 200
php_value mysql.connect_timeout 240
php_value memory_limit 128M
If not ask your host to set it in php for you.
Skip
Re: BackUp ZC [Support Thread]
Hi Skip, many thanks for the response
Unfortunately a fresh upload still produces the same results, as Paulm states this only appears to affect some options (mostly the larger file size ones though)
Assumed my server was struggling so spoke to my host
My .htaccess contains the suggestion you posted to Paulm
and my php.ini contains
output_buffering = On
magic_quotes_gpc=off
max_execution_time = 480 ; Maximum execution time of each script, in seconds
max_input_time = 480 ; Maximum amount of time each script may spend parsing request data
memory_limit = 512M ; Maximum amount of memory a script may consume (32MB)
max_input_vars = 3000
Assuming with those limits and execution times all should have been ok?
Pete