SSH SFTP Updater Fatal Error

#75561
  • Resolved frerduro
    Rank Math free

    Hello I am having trouble installing rankmath to my site when I have SSH sftp updater installed

    Fatal error: Uncaught Error: Call to a member function stat() on bool in /var/www/html/wp-content/plugins/ssh-sftp-updater-support/class-wp-filesystem-ssh2.php:253 Stack trace: #0 /var/www/html/wp-content/plugins/seo-by-rank-math/includes/modules/robots-txt/class-robots-txt.php(90): WP_Filesystem_SSH2->exists(‘/var/www/html/r…’) #1 /var/www/html/wp-content/plugins/seo-by-rank-math/includes/modules/robots-txt/options.php(12): RankMathRobots_Txt::get_robots_data() #2 /var/www/html/wp-content/plugins/seo-by-rank-math/includes/admin/class-options.php(168): include(‘/var/www/html/w…’) #3 /var/www/html/wp-includes/class-wp-hook.php(287): RankMathAdminOptions->register_option_page(”) #4 /var/www/html/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(NULL, Array) #5 /var/www/html/wp-includes/plugin.php(478): WP_Hook->do_action(Array) #6 /var/www/html/wp-content/plugins/seo-by-rank-math/vendor/cmb2/cmb2/bootstrap.php(26): do_action(‘cmb2_admin_init’) #7 /var/www/html/wp-content/plugins/seo-by-rank-math/vendor/cmb2 in /var/www/html/wp-content/plugins/ssh-sftp-updater-support/class-wp-filesystem-ssh2.php on line 253

Viewing 12 replies - 1 through 12 (of 12 total)
  • Hello,

    Thank you for contacting Rank Math today.

    The issue reported in the error message originates from the SSH SFTP Updater Support plugin. I have found similar issues reported on their plugin support forums. Please contact the SSH plugin author they can provide you more details on how this issue can be fixed. For now, you can also try:
    1) Deactivating the SSH SFTP Updater Support plugin
    2) Install & Activate the Rank Math plugin.
    3) And then activate the SSH Updater plugin again.

    This should bypass the issue.

    I hope that helps.

    ​​​​​​

    I have tried doing that and it doesn’t as soon as I enable it again I get that error.

    Hello,

    We might need to take a closer look at the settings. Please edit the first post on this ticket and include your WP logins in the designated Sensitive Data section.
    Sensitive Data Section

    It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:

    https://wordpress.org/plugins/temporary-login-without-password/

    You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):

    https://wordpress.org/plugins/wp-security-audit-log/

    We really look forward to helping you.

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    I assume you guys added the plugin because now I am getting this: Fatal error: Uncaught Error: Call to a member function stat() on bool in /var/www/html/wp-content/plugins/ssh-sftp-updater-support/class-wp-filesystem-ssh2.php:253 Stack trace: #0 /var/www/html/wp-content/plugins/seo-by-rank-math/includes/modules/robots-txt/class-robots-txt.php(90): WP_Filesystem_SSH2->exists() #1 /var/www/html/wp-content/plugins/seo-by-rank-math/includes/modules/robots-txt/options.php(12): RankMath\Robots_Txt::get_robots_data() #2 /var/www/html/wp-content/plugins/seo-by-rank-math/includes/admin/class-options.php(168): include('/var/www/html/w...') #3 /var/www/html/wp-includes/class-wp-hook.php(287): RankMath\Admin\Options->register_option_page() #4 /var/www/html/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters() #5 /var/www/html/wp-includes/plugin.php(478): WP_Hook->do_action() #6 /var/www/html/wp-content/plugins/seo-by-rank-math/vendor/cmb2/cmb2/bootstrap.php(26): do_action() #7 /var/www/html/wp-content/plugins/seo-by-rank-math/vendor/cmb2/cmb2/init.php(165): cmb2_bootstrap() #8 /var/www/html/ in /var/www/html/wp-content/plugins/ssh-sftp-updater-support/class-wp-filesystem-ssh2.php on line 253

    Hello,

    After clearing the cache on your site, I was able to activate the Rank Math plugin. But immediately after activating the plugin, I was logged out of your site and I couldn’t login now with the temporary login link. I am getting the stat() function undefined error in the admin panel. Please see if you could login using admin username and password. If you too get the error then try renaming the ssh-updater or Rank Math plugin folder name on your server using FTP.

    Also, please get in touch with the SSH updater plugin team and forward them this error. They could add some condition in their plugin to prevent the plugin from throwing this error.

    I hope that helps.

    I am getting the error also I have now disabled ssh updater

    Alberto
    Rank Math business

    Hello,

    Thank you for the follow-up. Let us know if you get an answer or if you need something from us to fix that issue.

    Looking forward to help you.

    Hello I got a response from them:

    David Anderson (@davidanderson)
    3 hours, 24 minutes ago
    This means that their plugin uses the WordPress Filesystem API incorrectly. It attempts to perform filesystem operations (in this case, looking up whether a file exists) without checking that the filesystem link is up. the WordPress Filesystem API has no way of handling that other than throwing a fatal error (the API only defines “yes” or “no” to the answer “does it exist?”, whereas if the link is not there then this is unknown either way), which is what is happening here. Hence, it can only be fixed in the calling plugin with the error.

    David

    Hello,

    Can you please add your site’s FTP access details in the Sensitive Data Section so we can debug the issue by editing some plugin files?

    Also, please regenerate the admin login link. The one you added now is expired.

    Looking forward to helping you.

    Hello,

    Thank you for your patience.

    Please update Rank Math & all other plugins, themes, and WordPress to the latest version.

    The issue should be fixed.

    If not, please feel free to open a support topic or reply to this message and we will be more than happy to assist.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 12 replies - 1 through 12 (of 12 total)

The ticket ‘SSH SFTP Updater Fatal Error’ is closed to new replies.