Jump to content

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

4.7.1 -- Cli Patch? Rate Topic   - - - - -

 
  • sitmgreg
  • Advanced Member
  • Members
  • Join Date: 01-Jun 16
  • 62 posts

Posted 25 January 2018 - 12:18 AM #1

I'm upgrading to the latest version of cs-cart and I'm not seeing that PHP_SAPI == 'cli' check in Tygh/Bootstrap.php

 

Is this addressed somewhere else in 4.7.1?



 

Posted 25 January 2018 - 08:57 AM #2

I'm upgrading to the latest version of cs-cart and I'm not seeing that PHP_SAPI == 'cli' check in Tygh/Bootstrap.php

 

Is this addressed somewhere else in 4.7.1?

 

Unfortunately, this fix was not included in 4.7.x. The issue will be addressed in CS-Cart 4.7.1.SP3 that should be released today.


Sincerely yours, CS-Cart Support Team

 

User guide       |  Developer documentation  |  Core API documentation


 
  • deepxtz
  • Advanced Member
  • Trial users
  • Join Date: 18-Feb 15
  • 51 posts

Posted 28 January 2018 - 09:34 AM #3

can u provide fix ? from 4.7.1 sp2 to sp3 ?



 
  • imac
  • CTO
  • CS-Cart Architects
  • Join Date: 22-Nov 05
  • 2040 posts

Posted 29 January 2018 - 11:06 AM #4

can u provide fix ? from 4.7.1 sp2 to sp3 ?

What fix do you mean? if you use 4.7.1SP2 the best scenario is to update to 4.7.1SP3


Ilya Makarov,
CS-Cart Architect Team
Suggest and vote for new features | Report a bug

 
  • deepxtz
  • Advanced Member
  • Trial users
  • Join Date: 18-Feb 15
  • 51 posts

Posted 30 January 2018 - 01:29 PM #5

done that.

thx.



 
  • Smich
  • Advanced Member
  • Members
  • Join Date: 13-Jan 12
  • 65 posts

Posted 02 February 2018 - 11:07 AM #6

So- if I understand correctly, this was an inadvertant regression with 4.7.x?

 

And the purpose of the 4.7.1.SP2 -> 4.7.1.SP3 upgrade is to restore the recommended upgrade described here?

 

  • Go to the app/Tygh directory of your CS-Cart or Multi-Vendor installation and find the file called Bootstrap.php.
  • Find the following line in that file:
    if (empty($server['REQUEST_METHOD'])) {
  • Replace it with the following line and save your changes:
    if (PHP_SAPI === 'cli') {

Does this mean that 4.7.1.SP2 would be safe if the change was made manually (as described above), then?

 

- Smich



 

Posted 02 February 2018 - 11:25 AM #7

Yes, you are right

 

So- if I understand correctly, this was an inadvertant regression with 4.7.x?

 

And the purpose of the 4.7.1.SP2 -> 4.7.1.SP3 upgrade is to restore the recommended upgrade described here?

 

  • Go to the app/Tygh directory of your CS-Cart or Multi-Vendor installation and find the file called Bootstrap.php.
  • Find the following line in that file:
    if (empty($server['REQUEST_METHOD'])) {
  • Replace it with the following line and save your changes:
    if (PHP_SAPI === 'cli') {

Does this mean that 4.7.1.SP2 would be safe if the change was made manually (as described above), then?

 

- Smich


Sincerely yours, CS-Cart Support Team

 

User guide       |  Developer documentation  |  Core API documentation


 
  • Smich
  • Advanced Member
  • Members
  • Join Date: 13-Jan 12
  • 65 posts

Posted 02 February 2018 - 11:31 AM #8

Yes, you are right

 

Thank you for the reply.