Skip,
That appears to have worked but I don't have the option to save for some reason. I have a screen shot so you can have a look.
Printable View
Skip,
That appears to have worked but I don't have the option to save for some reason. I have a screen shot so you can have a look.
You seem to be missing define('BACKUP_EXCLUDED', 'Excluded '); that would be in YOUR_ADMIN/includes/languages/english/backup_zc.php
I don't know how this is not working but check the file and re-upload if it is not there.
The screen should look like the BackUp_ZC_Main_Window.gif file in the zip that you downloaded from the free software addons.
Skip
Skip,
This is what is in the file:
<?php
/*
***********************************************************************
$Id: backup_zc.php, v 1.0.4 2010/07/09
ZenCart 1.3.9f
Copyright 2003-2010 Zen Cart Development Team
Portions Copyright 2004 osCommerce
http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
Written By SkipWater <[email protected]> 05.08.10
***********************************************************************
*/
// the following are the language definitions
define('BACKUP_COMPLETE_TEXT', '<h1>Backup Completed</h1> Archive was created in ');
define('BACKUP_DOWNLOAD', 'Backup file location will be downloaded <b>NOT SAVED ON SERVER</b>');
define('BACKUP_FILE_NAME_TEXT', 'Backup File Name: ');
define('BACKUP_LOCATION', 'Backup file location: ');
define('BACKUP_TEXT', 'BackUp ');
define('COMPLETE_TEXT', 'Complete Site ');
define('CREATE_SQL_BACKUP', 'Create a SQL BackUp File From <b>'.DB_DATABASE.'</b> Database: ');
define('DEFAULT_SETTINGS', 'Default Settings');
define('DEFAULT_TEXT', ' (Defualt) ');
define('DID_NOT_RUN_SQL_TEXT', 'You did NOT Run MySQL BackUp ');
define('DOWNLOAD_ARCHIVE_TEXT', 'Download Archive:');
define('DIR_FILES_EXCLUDED', 'Directory and Files excluded from archive: ');
define('FILE_NAME_TEXT', '- File Name: ');
define('FILE_TYPE_ZIP', 'File type Zip ');
define('FILE_TYPE_GZIP', 'File type Gzip ');
define('FILE_TYPE_TAR', 'File type Tar ');
define('FTP_NOTE_TEXT', 'Please use FTP to download it to free up server space. Thank You<br />');
define('HEADING_FILES', 'Files Only ');
define('HEADING_OPTIONS', 'Options');
define('HEADING_NOTES', 'Notes: ');
define('HEADING_TITLE', 'Backup Zen Cart');
define('MEMORY_MESSAGE_TEXT', '<b>Due to memory limits on some servers save the archive to the server. (Default)</b><br />or do one directory download at a time.');
define('NO_TEXT', 'No ');
define('NOT_ARCHIVED_TEXT', 'This directory is not archived so any files in it will NOT be added. ');
define('ONLY_ONCE', 'You need to select this ONLY once per backup session. ');
define('ROOT_FILE_TEXT', 'Web Site Root Files Only ');
define('SAVE_TO_TEXT', 'Save BackUp File To: ');
define('SECONDS_TEXT', ' seconds. ');
define('SQL_FILE_TEXT', 'All SQL Files Only ');
define('SQL_FILE_NAME_TEXT', 'SQL File Name ');
define('SQL_FILE_LOCATION_TEXT', 'SQL file location ');
define('SQL_FILE_ARCHIVE_NOTE', '
Your SQL File will be in your arcive backup file. Only if you did a complete backup, sql file backup or Complete Admin backup.<br />
Please use FTP to download or delete it to free up server space. Thank You<br /><br />
');
define('TEXT_NOTES', '
The options to the right allow you to select what you want to archive.<br /><br />
Backup MySQL database will export your Zen Cart database to a SQL file.<br />
When completed BackUp ZC will continue to create a archive file of your selected options. The SQL file will only be added to the archived if you selected Complete Site, All SQL Files or Your Admin Directory.<br /><br />
If you select a directory to backup the directory name will be added to the archives file name. This will allow you to idenify the files contents easily.<br /><br />
Selecting \'Yes\' in the Download Archive dropdown you will get a new window to download your archive.<br /><br />
If you get a blank page php memory has been over used. To fix you can edit backup_zc.php in your admin folder and raise the memory usage.<br /> <br />
<b>Please be patient scanning your Zen Cart directory structure.</b><br />
');
define('YES_TEXT', 'Yes ');
define('ZIP_GZIP_COMPRESSION', 'Compression level Zip or GZip: ');
//
?>
I just downloaded BackUp ZC from the free software addons and looking at that file it has the code ie:
How it's gone from your file is unknown.PHP Code:
// the following are the language definitions
define('BACKUP_COMPLETE_TEXT', '<h1>Backup Completed</h1> Archive was created in ');
define('BACKUP_DOWNLOAD', 'Backup file location will be downloaded <b>NOT SAVED ON SERVER</b>');
define('BACKUP_FILE_NAME_TEXT', 'Backup File Name: ');
define('BACKUP_LOCATION', 'Backup file location: ');
define('BACKUP_TEXT', 'BackUp ');
define('BACKUP_EXCLUDED', 'Excluded ');
Skip
Skip-
Very nice addition. This eliminates any excuses for not backing up early and often.
A question, though, that may show my ignorance. The ReadMe says "NOTE: If you intend to download files, we STRONGLY recommend you do it only via a secure SSL / HTTPS: connection."
I have SSL on my site. To download via SSL do I do this by manually changing http to https on the Download Backup Archive page each time I go there?
I have looked through backup_zc.php, backup_zconfig.php, and backup_zc_download.php and could spot nothing that would automatically make the Download Backup Archive page SSL nor otherwise make the download SSL protected. I prefer not to modify my admin/includes/configure.php to make my entire admin area SSL protected.
Thanks.
I know that you did not want to activate SSL in the configure file but there is no way around it. But if you store the backup to the server and then sftp the file down. You would be using the secure sftp transfer and would not have to change the configure setting in ZC admin.
The way ZC works with zen_href_link function you would have to set define('ENABLE_SSL_ADMIN', 'true') in the admin/includes/configure.php
And add this code to backup_zc.php around line 158 find
Change to look like this:PHP Code:
$_SESSION = array_merge($_SESSION, $_POST);
header('Location: '. zen_href_link(FILENAME_ZC_DOWNLOAD) .'');
exit();
This change and the Go Daddy fix will be in the next update.PHP Code:
$_SESSION = array_merge($_SESSION, $_POST);
// Download using SSL or NOT
if (ENABLE_SSL_ADMIN != 'true') {
header('Location: '. zen_href_link(FILENAME_ZC_DOWNLOAD) .'');
} else {
header('Location: '. zen_href_link(FILENAME_ZC_DOWNLOAD,'', 'SSL') .'');
}
exit();
Skip
Skip -
Thanks for the quick response. Even with the couple extra steps for the SSL download it is a nice addition.
I have the same problem.
Using: Linux 2.6.18; PHP version 4.4.9; MySQL version 4.1.22; Zen Cart version 1.3.9h; browser IE8. You mentioned to check for SPL support. Did not see it mentioned in list. How do i go about activating it in my php.ini file?
Error message does not appear in admi, but found it in the /cache folder under xxxxxx.log :
[08-Nov-2010 03:04:39] PHP Fatal error: Cannot instantiate non-existent class: recursiveiteratoriterator in /home3/user_dir/public_html/admin_folder/backup_zc.php on line 44
Could you give me some guidance with this?
Get same error on line 44. Looked into server info and did not see SPL support listed. How do i go about activating in the .ini file?
Here's error message found in xxxx.log file in the /cache directory. Error did not show on admin/backup_zc page.
[08-Nov-2010 03:04:39] PHP Fatal error: Cannot instantiate non-existent class: recursiveiteratoriterator in /home3/user_dir/public_html/admin_folder/backup_zc.php on line 44.
Things were going great. But I've just tried to backup, I don't get a success screen. Just blank. The backup file is in my directory but I can't extract anything from it. Corrupted or damaged files...help? Thank you.