Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Upgrade 4.3.2 - 4.3.3 Problem Rate Topic   - - - - -

 
  • fresco
  • Newbie
  • Members
  • Join Date: 02-Jul 15
  • 10 posts

Posted 02 July 2015 - 06:22 AM #1

the file is there but still get this:

Validation issue

Validator "Restore" returned fail status

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.

 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 17997 posts

Posted 02 July 2015 - 09:11 AM #2

Please check

http://forum.cs-cart...2802#entry22802

GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.


 
  • dvsgr
  • Senior Member
  • Authorized Reseller
  • Join Date: 14-Apr 09
  • 1431 posts

Posted 02 July 2015 - 01:18 PM #3

Hi this i the right link http://forum.cs-cart...2828#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:
<Files restore.php>
Order Allow,Deny
Allow from all

</Files>
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.


Fotis Kourmadas
Cs-Cart Development - Cs-Cart Authorized Reseller 

 
  • fresco
  • Newbie
  • Members
  • Join Date: 02-Jul 15
  • 10 posts

Posted 02 July 2015 - 03:33 PM #4

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

 
  • zeero6
  • Senior Member
  • Members
  • Join Date: 25-Jan 07
  • 642 posts

Posted 02 July 2015 - 03:35 PM #5

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

Version 4.8.1.SP1


 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 17997 posts

Posted 02 July 2015 - 03:37 PM #6

You can delete these files

GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.


 
  • dvsgr
  • Senior Member
  • Authorized Reseller
  • Join Date: 14-Apr 09
  • 1431 posts

Posted 02 July 2015 - 03:44 PM #7

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

Fotis
Fotis Kourmadas
Cs-Cart Development - Cs-Cart Authorized Reseller 

 
  • mountainash
  • Newbie
  • Trial users
  • Join Date: 11-Jul 11
  • 8 posts

Posted 18 November 2015 - 11:12 PM #8

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.



 
  • AgentEccks
  • Junior Member
  • Members
  • Join Date: 12-Jan 07
  • 39 posts

Posted 01 December 2016 - 12:12 AM #9

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:
<Files restore.php>
Order Allow,Deny
Allow from all

</Files>
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.



 
  • websmart
  • Junior Member
  • Members
  • Join Date: 11-Feb 10
  • 74 posts

Posted 01 March 2017 - 10:58 PM #10

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



 
  • tbirnseth
  • CS Cart Expert
  • Authorized Reseller
  • Join Date: 08-Nov 08
  • 10838 posts

Posted 02 March 2017 - 01:08 AM #11

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


EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.


 
  • Darius
  • Douchebag
  • Members
  • Join Date: 20-Apr 08
  • 3190 posts

Posted 05 March 2017 - 09:59 AM #12

Try following

 

http://forum.cs-cart...re/#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



 
  • DarkStar
  • Newbie
  • Members
  • Join Date: 28-Jun 18
  • 2 posts

Posted 28 June 2018 - 01:38 AM #13

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.