Script that works with PHP 7.4 is returing fopen error with SSH2 in PHP 8.1

Created on 17 May 2023, over 1 year ago

Hi All,

I have an issue with ssh2 connect using drupal custom module. its all worked when the cpanel software in php 7.4 when its upgraded to php 8 all of them stopped working, now its getting below errors

Warning: fopen(): ssh2.sftp:// wrapper is disabled in the server configuration by allow_url_fopen=0 in main()

TypeError: ssh2_sftp_stat(): Argument #1 ($sftp) must be of type resource, int given in ssh2_sftp_stat()

I have enabled allow_url_fopen=1 in .htaccess , but its overriding and not setting value 1

can any one suggest a solution for this.

Thanks,
Gireesh

💬 Support request
Status

Active

Version

2.1

Component

Code

Created by

🇮🇳India cgireeshs

Live updates comments and jobs are added and updated live.
  • PHP 8.1

    The issue particularly affects sites running on PHP version 8.1.0 or later.

Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024