Re: BackUp ZC [Support Thread]
Hi there
I love this plugin but I do have the same problem as per message #106:
"
Sorry, your security clearance does not allow you to access this resource.
Please contact your site administrator if you believe this to be incorrect.
Sorry for any inconvenience."
In your reply to it you state that it is folder permission error which is actually not entirely correct. I think it is a problem with how the plugin interacts with the User management and profiles .
First of all I do use zen cart 1.51v
Now to the problem and explanation. I can use the plugin with no problem as long as I log into the system as Superuser. When I create a profile called Editor and assign permissions to that Editor to use the plugin, I can create backups and store them on the server no problem. When though I chose to download such backup then and only then I get the security clearance error.
That of course means that the permissions for directories etc are correct but there is something that the plugin does not like with regards to user roles. That's irrespectively of what permissions someone has added to the user profile.
Any ideas will be highly appreciated :-)
Regards
Tassos
Re: BackUp ZC [Support Thread]
Quote:
Originally Posted by
hrinfo
Hi there
First of all I do use zen cart 1.51v
Now to the problem and explanation. I can use the plugin with no problem as long as I log into the system as Superuser. When I create a profile called Editor and assign permissions to that Editor to use the plugin, I can create backups and store them on the server no problem. When though I chose to download such backup then and only then I get the security clearance error.
That of course means that the permissions for directories etc are correct but there is something that the plugin does not like with regards to user roles. That's irrespectively of what permissions someone has added to the user profile.
Any ideas will be highly appreciated :-)
Regards
Tassos
I wish all explanations or a error where stated so well. Thank You
Here is what should fix your error.
Open and edit YOUR_ADMIN/includes/extra_datafiles/backup_zc.php
You will see:
Code:
define('FILENAME_BACKUP_ZC', 'backup_zc');
define('BOX_TOOLS_BACKUP_ZC', 'BackUp ZenCart');
Make it look like this:
Code:
define('FILENAME_BACKUP_ZC', 'backup_zc');
define('FILENAME_BACKUP_ZC_DOWNLOAD', 'backup_zc_download');
define('BOX_TOOLS_BACKUP_ZC', 'BackUp ZenCart');
Next use tools install sql patch and paste this in:
Code:
INSERT INTO `admin_pages` (`page_key`, `language_key`, `main_page`, `page_params`, `menu_key`, `display_on_menu`, `sort_order`) VALUES('backup_zc_download', 'BOX_TOOLS_BACKUP_ZC', 'FILENAME_BACKUP_ZC_DOWNLOAD', '', 'tools', 'N', 28);
When you go to Admin Profiles Tools you will see two(2) Backup ZenCart listed check both.
Now you should go to Admin Profiles and select your user and check that both Backup ZenCart boxes are checked.
Skip
Re: BackUp ZC [Support Thread]
I installed on two sites and it worked perfectly. On a third site, rather than display the message that the plugin is being installed, it goes straight through to the admin login. This site is also 1.51. I have overwritten files and got the same result. Using same zip download for all three sites.
Re: BackUp ZC [Support Thread]
Quote:
Originally Posted by
godt
I installed on two sites and it worked perfectly. On a third site, rather than display the message that the plugin is being installed, it goes straight through to the admin login. This site is also 1.51. I have overwritten files and got the same result. Using same zip download for all three sites.
Check that backup_zc.php file is located in YOUR_ADMIN\includes\functions\extra_functions\ before you login to your zc admin. This is the file that will install backup_zc into zc.
Skip
Re: BackUp ZC [Support Thread]
Ah. Yes. Thank you. So much for my disciplined file uploading.
Re: BackUp ZC [Support Thread]
Hello,
Does Backup ZC require the server's exec() function to be enabled? I have been using the Dr. Byte "Backup MYSQL" plugin for years, but now it has stopped working because my server admin has disabled the exec() function.
Thank you,
Tony
Re: BackUp ZC [Support Thread]
Has anybody had any issues with this plugin? It used to work fine for me and now I have issues trying to back up the complete website and download. All I get is a blank screen and I cant seem to find the back file via ftp in any of the folders?
Re: BackUp ZC [Support Thread]
Quote:
Originally Posted by
wakeleymb
Has anybody had any issues with this plugin? It used to work fine for me and now I have issues trying to back up the complete website and download. All I get is a blank screen and I cant seem to find the back file via ftp in any of the folders?
Your site has grown beyond the size php is set for.
You can increase php setting in your php.ini or if your server is setup to use htaccess file you can add these lines to the file.
Try these settings.
php_value max_execution_time 600
php_value memory_limit 1024M
Skip
Re: BackUp ZC [Support Thread]
Quote:
Originally Posted by
skipwater
Open backup_zconfig.php on line 61 find
Code:
$file_name = $_SERVER['HTTP_HOST'].'_'.date("mdY-Hi"); // Create File Name
Change to
Code:
$file_name = $_SERVER['HTTP_HOST'].'_'.date("Ymd-Hi"); // Create File Name
Skip
This was the answer to a question about changing the date of the backup file created.
As well as line 61, the same code appears on lines 77 and again on line 81.
I am not sure what these relate too, but do these need to be changed too?
Also, what is the purpose of these lines (211/212) in backup_zc.php
Code:
//Default file name format.
$backup_obj->fname_format = 'm_d_Y';
Thanks
Re: BackUp ZC [Support Thread]
Quote:
Originally Posted by
pewe
This was the answer to a question about changing the date of the backup file created.
As well as line 61, the same code appears on lines 77 and again on line 81.
I am not sure what these relate too, but do these need to be changed too?
Also, what is the purpose of these lines (211/212) in backup_zc.php
Code:
//Default file name format.
$backup_obj->fname_format = 'm_d_Y';
Thanks
No you do not need to change the file name formats. It is just a option.
You will find a text file root/YOURADMIN/includes/classes/mysql_db_backup.class_readme.txt that will help explain.
Skip