Upgrade 4.3.2 - 4.3.3 Problem

[color=#000000]the file is there but still get this:[/color]



[color=#000000]Validation issue[/color]



[color=#000000]Validator “Restore” returned fail status[/color]



[color=#000000]Unable to prepare restore.php file. File “var/upgrade/restore.php” was locally modified/renamed/removed. Restore the original restore.php file before the upgrade.[/color]

Please check



http://forum.cs-cart.com/tracker/issue-5903-upgrade-issues/page__gopid__22802#entry22802

Hi this i the right link http://forum.cs-cart.com/tracker/issue-5903-upgrade-issues/page__gopid__22828#entry22828


The problem is that code the which sets permissions and checks the restore.php files is in the CS-Cart installation, not in the upgrade package.

More over this code will be there during 4.3.3 -> 4.3.4 upgrade. But if you apply the changes in that link next upgrade should work ok.

CS-Cart plans to completely solve this issue in 4.3.4.

The issue is that it is forbidden to run scripts from the folder with the 777 permissions on some servers.

In order to resolve the issue, please take the following steps:

1. Set up the 755 permissions for the var and var/upgrade folders.

2. Open the config.local.php file in the root directory of your store.

Find the following line:
define('DEFAULT_FILE_PERMISSIONS', 0666);
and replace it with this one:
define('DEFAULT_FILE_PERMISSIONS', 0644);
3. Check to make sure the .htaccess file exists in the var/upgrade folder.

If the file is missing, create it manually and insert the following code in it:
restore.php>
Order Allow,Deny
Allow from all


After that try performing upgrade.
If after following these instructions, the issue reproduces again, please contact our technical support service so that we could examine this issue.

At the moment, we are working on this issue and will do our best to resolve it in the nearest upgrades.

thanks, that worked



another question:



I have all these in the upgrade folder, do i still need them, is it safe to have them there?



upgrade_4.2.1_ultimate-4.2.2_ultimate.tgz

upgrade_4.2.2_ultimate-4.2.3_ultimate.tgz

upgrade_4.2.3_ultimate-4.2.4_ultimate.tgz

upgrade_4.2.4_ultimate-4.3.1_ultimate.tgz

I backed up those to my PC just in case and removed them.

You can delete these files

Deleting is ok, backing up and download before is even better ;)



Fotis

For me none of these suggestions fixed the issue.

CS Support told me:

This issue can appear if var/upgrade/restore.php file is not accessible via HTTP.

Knowing that I set about trying to find why I couldn't access the file directly from the browser. I found that /var/.htaccess had "Require all denied" in it. Commenting this out and trying the upgrade again fixed the issue.

I hadn't added this command, but our version of CS Cart has been in use since early dot-versions of 2, so I think it was added by an update somewhere along the way.

I hope this helps someone - as none of the other suggestion or even official support themselves could find a solution.

SORRY...Just realized my version number is slightly off. Mine is 4.3.4 >>> 4.3.5.

I'll keep looking, if this needs to be moved, please do so.

In any case, I still need help :-( Thanks!...

>>>Original Message Follows<<<

Here we go again...So the first info that was quoted above:

The issue is that it is forbidden to run scripts from the folder with the 777 permissions on some servers.

In order to resolve the issue, please take the following steps:

1. Set up the 755 permissions for the var and var/upgrade folders.

2. Open the config.local.php file in the root directory of your store.

Find the following line:
define('DEFAULT_FILE_PERMISSIONS', 0666);
and replace it with this one:
define('DEFAULT_FILE_PERMISSIONS', 0644);
3. Check to make sure the .htaccess file exists in the var/upgrade folder.

If the file is missing, create it manually and insert the following code in it:
restore.php>
Order Allow,Deny
Allow from all


After that try performing upgrade.
If after following these instructions, the issue reproduces again, please contact our technical support service so that we could examine this issue.

At the moment, we are working on this issue and will do our best to resolve it in the nearest upgrades.

Did not apply to me `DEFAULT_FILE_PERMISSIONS` already set to 644 already have the `.htaccess` file with the correct verbiage, and I am still getting the following error: (BTW, the links above no longer work either)

Validation issue

Validator "Restore" returned fail status
Unable to prepare restore script.

I've tried accessing the file directly from a browser, and simply get:

Access denied

I've tried removing the `.htaccess` file altogether, and get:

403 Forbidden

Access to this resource on the server is denied!

I've contacted the hosting co. and they said:

You might need to check with the software vendor - the "Access Denied" seems to be application specific and is not being generated by our server.

Any other workarounds on this upgrade from `4.3.4 >>> 4.3.5`???

To get this upgraded???

FWIW...I miss the days when we had software that we downloaded to our computer and ran the updates from there.

Hello,

Did anybody got this fixed? I'm having the same issue.

I cannot believe cs-cart hasn't provided any more information on this issue.

Thanks

Review the end of the file var/upgrade/core_log.txt (or any other log file in that directory - name is version dependent).

Try following

http://forum.cs-cart.com/topic/44904-best-practice-in-upgrading-a-cs-cart-store/#entry251282

Hello,

Did anybody got this fixed? I'm having the same issue.

I cannot believe cs-cart hasn't provided any more information on this issue.

Thanks

I received this error when trying to upgrade from 4.7.4 to 4.8.1 and it was because /upgrades/core_4.7.4-4.8.1/restore_2018-06-27_18-11-23.php wasn't accessible through http. That is because I had it installed on subdomain of a test server and hadn't configured the domain name to point to the server's ip address. Once I pointed the subdomain to the server's ip address it resolved and I was able to proceed with the upgrade.