-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed phpseclib\Net\SFTP constants used in write() method #6894
Fixed phpseclib\Net\SFTP constants used in write() method #6894
Conversation
@orlangur @vkublytskyi This is still broken in current dev branch. Any news? Can I help with something in order to get this merged? Regards! |
Hi @federivo, from https://github.com/magento/magento2/projects/3 it looks like things are heating up ;) Let's wait a little more time or you can try to ping some active community PR reviewer directly. |
Thank you @orlangur :) |
@federivo Thank you for the contribution. |
@vrann Any idea when this will make it into a release? |
[Arrows] MC-24548: collect-totals API call not updating the selected shippingMethod
I noticed the
\Magento\Framework\Filesystem\Io\Sftp
class was modified to use an updated phpseclib library in commit 1383a49The write method uses the constants
NET_SFTP_LOCAL_FILE
andNET_SFTP_STRING
that worked just fine prior the library update. Since the library has changed, these constants are outdated and the write method throws this:Notice: Use of undefined constant NET_SFTP_LOCAL_FILE - assumed 'NET_SFTP_LOCAL_FILE' in /var/www/releases/release-0/vendor/magento/framework/Filesystem/Io/Sftp.php on line 187
when trying to use it.
I modified the constants according the actual library used in Magento. Please refer to https://github.com/phpseclib/phpseclib/blob/master/phpseclib/Net/SFTP.php to verify correctness.
Regards.