-
-
Notifications
You must be signed in to change notification settings - Fork 878
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
Error Undefined Constant #1877
Comments
Apologies for the delay - I was out camping this weekend.
Sounds like you're trying to use the latest code in the master branch when you should be using the latest code in the 2.0 branch: |
Thanks, I am using 2.0.41 and that is what's showing the error. |
How did you install phpseclib? phpseclib 2.0 requires the use of an auto loader. Like you shouldn't be needing to do |
Hi,
I'm using an old version of phpseclib and it works fine for my requirements. However after an OS upgrade I've now started to get the following error:
"PHP Fatal error: Uncaught Error: Undefined constant "NET_SSH2_DISCONNECT_BY_APPLICATION""
Looking at old posts I can see this has been resolved, but my issue is I can't user composor to install the updated application.
I've read v2.0 will still allow manual installation, so I've copies the files to my server but then I get "PHP Fatal error: Uncaught Error: Class "Net_SSH2" not found"
The code I'm using to make the connection is
$ssh = new Net_SSH2( $ipaddress );
Looking at Net/SSH/SSH2.php I can see the name has now changed to SSH2, so I changed my connection command to
$ssh = new SSH2( $ipaddress );
but that gives error "PHP Fatal error: Uncaught Error: Class "SSH2" not found"This is the example I'm currently using.
Could some one help me get this working.
Thanks
The text was updated successfully, but these errors were encountered: