Page 1 of 1

Bug 2.1.0.1 - Tool backup and restore

Posted: Thu Oct 08, 2015 11:31 am
by luican
Have error:

Admin-System-Tool-Backup and Restore:

Code: Select all

Notice: Undefined variable: entry_export in \***\***\2101\test\admin\view\template\tool\backup.tpl on line 43
I fixed:
<file path="admin/controller/tool/backup.php">
<operation>
<search><![CDATA[
$data['entry_backup'] = $this->language->get('entry_backup');
]]></search>
<add position="after">
<![CDATA[
$data['entry_export'] = $this->language->get('entry_export');
]]>
</add>
</operation>
</file>
<file path="admin/language/english/tool/backup.php">
<operation>
<search><![CDATA[
$_['entry_backup'] = 'Backup';
]]></search>
<add position="after">
<![CDATA[
$_['entry_export'] = 'Export';
]]>
</add>
</operation>
</file>

OR

Code: Select all

<file path="admin/view/template/tool/backup">
		<operation>
			<search><![CDATA[
            <label class="col-sm-2 control-label"><?php echo $entry_export; ?></label>
            ]]></search>
			<add position="replace">
				<![CDATA[
			<label class="col-sm-2 control-label"><?php echo $entry_backup; ?></label>
				]]>
			</add>
		</operation>
	</file>

Re: Bug 2.1.0.1 - Tool backup and restore

Posted: Thu Oct 08, 2015 2:03 pm
by pm-netti
luican wrote:Have error:

Admin-System-Tool-Backup and Restore:

Code: Select all

Notice: Undefined variable: entry_export in \***\***\2101\test\admin\view\template\tool\backup.tpl on line 43
I fixed:
<file path="admin/controller/tool/backup.php">
<operation>
<search><![CDATA[
$data['entry_backup'] = $this->language->get('entry_backup');
]]></search>
<add position="after">
<![CDATA[
$data['entry_export'] = $this->language->get('entry_export');
]]>
</add>
</operation>
</file>
<file path="admin/language/english/tool/backup.php">
<operation>
<search><![CDATA[
$_['entry_backup'] = 'Backup';
]]></search>
<add position="after">
<![CDATA[
$_['entry_export'] = 'Export';
]]>
</add>
</operation>
</file>
Or this way:

Code: Select all

<file path="admin/controller/tool/backup.php">
<operation>
<search><![CDATA[$data['entry_backup']]]></search>
<add position="replace"><![CDATA[$data['entry_export']]]></add>
</operation>
</file>

Re: Bug 2.1.0.1 - Tool backup and restore

Posted: Sat Oct 10, 2015 10:12 pm
by ned
Can you tell me please, where is the path of the file to be edited?

Re: Bug 2.1.0.1 - Tool backup and restore

Posted: Sun Oct 11, 2015 12:50 pm
by luican
ned wrote:Can you tell me please, where is the path of the file to be edited?
You can use ocmod file ( choose one)

Re: Bug 2.1.0.1 - Tool backup and restore

Posted: Sun Oct 11, 2015 8:40 pm
by ned
Thank you!

Re: Bug 2.1.0.1 - Tool backup and restore

Posted: Tue Nov 10, 2015 2:30 am
by ATKOgirl
Thanks for posting these fixes. Is one fix better in any way than the other?

Re: Bug 2.1.0.1 - Tool backup and restore

Posted: Thu Nov 12, 2015 6:25 am
by ATKOgirl
I've tried both of these OCmods, and unfortunately, neither one has fixed the issue.

I installed using the extension installer and then I cleared the extension cache using the "clear" button, but that made no difference.

Any other assistance or suggestions are greatly appreciated.

Re: Bug 2.1.0.1 - Tool backup and restore

Posted: Mon Nov 30, 2015 8:46 am
by trancemode
thanks! Had this error and seems like the first one fixed it :)

Re: Bug 2.1.0.1 - Tool backup and restore

Posted: Thu Jan 07, 2016 2:44 am
by htwp
Hi, if the solutions are given doesnt work try in admin/view/template/tool/backup.tpl changing the line 6 + 7
like this:

<button type="submit" form="form-backup" data-toggle="tooltip" title="<?php echo $entry_backup; ?>" class="btn btn-default"><i class="fa fa-download"></i></button>
<button type="submit" form="form-restore" data-toggle="tooltip" title="<?php echo $entry_restore; ?>" class="btn btn-default"><i class="fa fa-upload"></i></button>

the difference is line 6 : the default file has <?php echo $button_backup; ?> so i make it <?php echo $entry_backup; ?>
the difference is line 7 : the default file has <?php echo $button_restore; ?> so i make it <?php echo $entry_restore; ?>

Also take a look inside the admin/language/yourlanguage/tool/backup.php that it has those two entries:

$_['entry_restore'] = 'Restore Backup'; //this is the English file
$_['entry_backup'] = 'Backup'; //this is the English file

Thats all from me!!!
cheers

Re: Bug 2.1.0.1 - Tool backup and restore

Posted: Thu Jan 14, 2016 11:55 pm
by dragonaz
Hello, i have fixed my installation with fix_backup.ocmod.xml
Thank you for your work.
Be sure you are refreshing your modification cache when applying ocmod extension.

Re: Bug 2.1.0.1 - Tool backup and restore

Posted: Thu Jan 21, 2016 11:14 am
by AshrafSello
-------------
Simply replace $entry_export with $entry_backup in backup.tpl line 43 - everything will go fine after this.
-------------
Good luck, Ashraf Sello

Re: Bug 2.1.0.1 - Tool backup and restore

Posted: Sat Feb 06, 2016 9:17 pm
by michael2820
AshrafSello: thank you, so simple. Worked for me. Btw: the file to change and upload is ..admin/view/template/tool/backup.tpl

It seems like the programmer decided to change the words backup and restore to export and import, but did not replace in all files.

Re: Bug 2.1.0.1 - Tool backup and restore

Posted: Thu Mar 10, 2016 6:34 pm
by hausky
Thanks the fix_backup.ocmod worked for me!

Re: Bug 2.1.0.1 - Tool backup and restore

Posted: Sat Mar 12, 2016 7:41 am
by Randem

Re: Bug 2.1.0.1 - Tool backup and restore

Posted: Thu Jun 02, 2016 2:45 pm
by Sunrider
Safe fix 100%
make sure that in \admin\language\<language>\tool\backup.php exist line begin with

Code: Select all

$_['entry_export']
next to enable this line open file \admin\controller\tool\backup.php and find:

Code: Select all

$data['entry_backup'] = $this->language->get('entry_backup');
then add below:

Code: Select all

$data['entry_export'] = $this->language->get('entry_export');
save file and renew page.
Done

Re: Bug 2.1.0.1 - Tool backup and restore

Posted: Fri Jun 03, 2016 3:20 am
by Randem
Do you realize that all you have done is re-iterate the fix that is already posted in this thread ???

Re: Bug 2.1.0.1 - Tool backup and restore

Posted: Thu Jul 07, 2016 11:38 am
by arcovirtual
Sunrider wrote:Safe fix 100%
make sure that in \admin\language\<language>\tool\backup.php exist line begin with

Code: Select all

$_['entry_export']
next to enable this line open file \admin\controller\tool\backup.php and find:

Code: Select all

$data['entry_backup'] = $this->language->get('entry_backup');
then add below:

Code: Select all

$data['entry_export'] = $this->language->get('entry_export');
save file and renew page.
Done
thnks this solution is real, but have other problem, me opencart don't save changes and redirect to shop to save :(

Re: Bug 2.1.0.1 - Tool backup and restore

Posted: Sun Jul 10, 2016 2:13 am
by arcovirtual
arcovirtual wrote:
Sunrider wrote:Safe fix 100%
make sure that in \admin\language\<language>\tool\backup.php exist line begin with

Code: Select all

$_['entry_export']
next to enable this line open file \admin\controller\tool\backup.php and find:

Code: Select all

$data['entry_backup'] = $this->language->get('entry_backup');
then add below:

Code: Select all

$data['entry_export'] = $this->language->get('entry_export');
save file and renew page.
Done
thnks this solution is real, but have other problem, me opencart don't save changes and redirect to shop to save :(
The problem was solved by changing everything from hosting, hosting apparently things change in apache or php I preferred to renounce the very problematic hosting service and I switch to another service eficiente.-

Re: Bug 2.1.0.1 - Tool backup and restore

Posted: Mon Aug 01, 2016 7:40 pm
by mior111
Thank you!

For those who does not work, try

HOME > MODIFICATION > REFRESH

Change will take place.