I am trying to Upgrade 4.3.3.SP1 - 4.3.4
Validation issueValidator "Restore" returned fail status
Unable to prepare restore script.
I am on windows 7 local pc running wamp server.. How can I have permission problem on windows ?
I am trying to Upgrade 4.3.3.SP1 - 4.3.4
Validation issueValidator "Restore" returned fail status
Unable to prepare restore script.
I am on windows 7 local pc running wamp server.. How can I have permission problem on windows ?
I am trying to Upgrade 4.3.3.SP1 - 4.3.4
I am on windows 7 local pc running wamp server.. How can I have permission problem on windows ?
try this
http://forum.cs-cart.com/tracker/issue-6035-validator-restore-returned-fail-status/
Several other suggestions here:
http://forum.cs-cart.com/tracker/issue-5903-upgrade-issues/page__gopid__22802
Hers whats happening
################################################################################
################################################################################
2015-12-17 18:07:48: Starting installation of the "core" upgrade package
2015-12-17 18:07:48: Upgrading version 4.3.3.SP1 to 4.3.4
2015-12-17 18:07:48: Running as user "DARIUS-PC$"
2015-12-17 18:07:48: Executing pre-upgrade validators
2015-12-17 18:07:48: Found 0 validators at package
2015-12-17 18:07:48: Executing "collisions" validator
2015-12-17 18:07:49: Executing "permissions" validator
2015-12-17 18:07:50: Executing "restore" validator
2015-12-17 18:07:50: Backup filename is "upg_core_4.3.3.SP1-4.3.4_17Dec2015_180748"
2015-12-17 18:07:50: Preparing restore script
2015-12-17 18:07:50: Upgrades directory permissions: drwxrwxrwx 0:0
2015-12-17 18:07:50: Source restore script permissions: -rw-rw-rw- 0:0
2015-12-17 18:07:50: Created directory for restore script at "C:/wamp/www/upgrades/core_4.3.3.SP1-4.3.4/"
2015-12-17 18:07:50: Directory permissions: drwxrwxrwx 0:0
2015-12-17 18:07:50: Unable to create restore script at "C:/wamp/www/upgrades/core_4.3.3.SP1-4.3.4/restore_2015-12-17_18:07:48.php"
2015-12-17 18:07:50: Upgrade stopped: unable to prepare restore file.
This:
2015-12-17 18:07:50: Created directory for restore script at "C:/wamp/www/upgrades/core_4.3.3.SP1-4.3.4/"
Is not created. Checked windows var/upgrades they are set read only. When I uncheck they set again..
You've been advised to
C:\wamp\www\upgrades\source_restore.php
replace set_time_limit(0); line with @set_time_limit(0);
this does not help still getting
Validation issue
Validator "Restore" returned fail status
Unable to prepare restore script.
Main problem is that .php file is not being created in
C:\wamp\www\upgrades\core_4.3.3.SP1-4.3.4
the folder is empty.
Check the permissions for upgrades folder. It should be 777 recursively.
Moved file
C:\wamp\www\upgrades\source_restore.php
to other location, now cart said has no permissions to write to this file asked to enter ftp details. Did all requested and moved file source_restore.php back to
C:\wamp\www\upgrades\
Cart said permissions OK
Several other suggestions here:
http://forum.cs-cart.com/tracker/issue-5903-upgrade-issues/page__gopid__22802
So there cannot be permissions issue, must be something else.
It is happening on windows 7, wamp server..
Check the permissions for upgrades folder. It should be 777 recursively.
2015-12-18 09:21:13: Created directory for restore script at "C:/wamp/www/upgrades/core_4.3.3.SP1-4.3.4/"
2015-12-18 09:21:13: Directory permissions: drwxrwxrwx 0:0
2015-12-18 09:21:13: Unable to create restore script at "C:/wamp/www/upgrades/core_4.3.3.SP1-4.3.4/restore_2015-12-18_09:21:10.php"
2015-12-18 09:21:13: Upgrade stopped: unable to prepare restore file.
Directory is created just fine, but file restore_2015-12-18_09:21:10.php within not. That's the main issue, why?
Problem solved with help of this
Replace
$target_restore_file_name = 'restore_' . date('Y-m-d_H:i:s', TIME) . '.php';
with
$target_restore_file_name = 'restore_' . date('Y-m-d_H-i-s', TIME) . '.php';
in
In app\Tygh\UpgradeCenter\App.php
You cannot use ':' in the filename in Windows ( https://msdn.microsoft.com/ru-ru/library/windows/desktop/aa365247%28v=vs.85%29.aspx )
Problem solved with help of this
Replace
$target_restore_file_name = 'restore_' . date('Y-m-d_H:i:s', TIME) . '.php';with
$target_restore_file_name = 'restore_' . date('Y-m-d_H-i-s', TIME) . '.php';in
In app\Tygh\UpgradeCenter\App.php
Looks like nobody posted it to the bug tracker. Please do it
Looks like nobody posted it to the bug tracker. Please do it
probably you're right... hope darius will i forgot about this