• Resolved zuzwha

    (@zuzwha)


    Hello,
    I installed plugin SSH SFTP Updater Support, I set some SSH credentials and then uninstalled. Now when I want to install any plugin I have this error The ssh2 PHP extension is not available even I have to fill some FTP credentials. Thank you for your suggestions in advance.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter zuzwha

    (@zuzwha)

    Well progress,
    I moved this plugin to wordpress file and Ive activated it. Now when I want to install any plugin I have this error:
    Failed to connect to SSH2 Server localhost:22
    If SELinux is installed check to make sure that httpd_can_network_connect is set to 1

    Plugin Author David Anderson

    (@davidanderson)

    This plugin does not use the PHP SSH2 extension, so if you are seeing messages about that, you’ve not set something up right. You’ll have to provide more details on precisely the steps you have taken as it is difficult to guess.

    Thread Starter zuzwha

    (@zuzwha)

    Thank you for your answer,
    the problem is that when I delete this plugin, I have to put some FTP credentials when I want to install something and dont know how to solve it. I wanted to try this plugin and dont have an idea how it works, Im just learning wordpress and everything about it

    Plugin Author David Anderson

    (@davidanderson)

    Have you successfully used SFTP to connect to your website’s hosting using another tool? The first thing to do is make sure that you actually have working SFTP access. This plugin is not relevant to you if you do not.

    Thread Starter zuzwha

    (@zuzwha)

    I can just succesfully login via Putty(SSH connection). Im not sure if I tried to use these my credentials via this plugin. But also in Theme file editor I have this error when I want to update a PHP file:
    Something went wrong. Your change may not have been saved. Please try again. There is also a chance that you may need to manually fix and upload the file over FTP.
    Also when I want to publish additional CSS in Customize settings I have this error:
    Looks like something’s gone wrong. Wait a couple seconds, and then try again.
    In debug log I have this error:
    [26-Mar-2022 11:26:40 UTC] PHP Notice: Trying to get property ‘title’ of non-object in C:\Users\Zuzana\wordpress-5.9.2\wordpress\wp-includes\class-wp-customize-nav-menus.php on line 523
    [26-Mar-2022 11:26:40 UTC] PHP Notice: Trying to get property ‘title’ of non-object in C:\Users\Zuzana\wordpress-5.9.2\wordpress\wp-includes\class-wp-customize-nav-menus.php on line 1152

    Im also not sure if these errors have connection with this plugin.

    Plugin Author David Anderson

    (@davidanderson)

    When you say “SSH”, do you mean you’ve used PuTTY’s SSH client only, or PSFTP, the SFTP client?

    Thread Starter zuzwha

    (@zuzwha)

    I have not used Putty for anything, I just set client and server on my computer according to instructions on the internet.

    Because my original problem was that I couldnt see or better to say load suddenly any picture on my localhost website. Just I hadnt this problem before and read about something that this can help. Sorry I dont understand too much ??

    Plugin Author David Anderson

    (@davidanderson)

    I think you need to talk to your web hosting company to ask them what you need to do to allow WordPress to update itself. If their answer is “use SFTP”, you need to check that your credentials work in an ordinary SFTP client. Then come to this plugin after that step. At this stage, it doesn’t sound like it is known as to whether your hosting even uses or requires SFTP or not.

    Thread Starter zuzwha

    (@zuzwha)

    Thank you for your answers…Ive fixed it already by this help:

    https://wordpress.stackexchange.com/questions/228591/to-perform-the-requested-action-wordpress-needs-to-access-your-web-server-pleas

    Because some FTP credentials were needed when I wanted to install a plugin. Ive simply added this:
    define( ‘FS_METHOD’, ‘direct’ );
    to wp-config.php

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘The ssh2 PHP extension is not available’ is closed to new replies.