Support » Plugin: SSH SFTP Updater Support » SSH SFTP Updater & RankMath SEO Fatal Error

  • Resolved frerduro

    (@frerduro)


    Hello I am getting a fatal error when I install this plugin with RankMath seo plugin.
    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
    I have already reached out to their support and they suggested I reach out to you. https://support.rankmath.com/ticket/ssh-sftp-updater-fatal-error/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author David Anderson

    (@davidanderson)

    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

    Thread Starter frerduro

    (@frerduro)

    Thank you I have forwarded this to them.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘SSH SFTP Updater & RankMath SEO Fatal Error’ is closed to new replies.