• Resolved stevepyatte

    (@stevepyatte)


    I am working on two Woocommerce stores in WordPress for development purposes. I use the SSH SFTP Updater Support plugin, but when I updated WordPress to 5.5, SSH SFTP Updater Support plugin will not let the products edit area work properly in Woocommerce. When I deactivate the SSH SFTP Updater Support plugin, the product edit areas works properly. I need both to work properly.

    I get this error message in an email:
    “Since WordPress 5.2 there is a built-in feature that detects when a plugin or theme causes a fatal error on your site, and notifies you with this automated email.

    In this case, WordPress caught an error with one of your plugins, SSH SFTP Updater Support.

    Error Details
    =============
    An error of type E_ERROR was caused in line 257 of the file /home/**********/public_html/wp-content/plugins/ssh-sftp-updater-support/class-wp-filesystem-ssh2.php. Error message: Uncaught Error: Call to a member function stat() on boolean in /home/**********/public_html/wp-content/plugins/ssh-sftp-updater-support/class-wp-filesystem-ssh2.php:257”

    I have numerous other WordPress sites that are not Woocommerce. They do not have any issues with the SSH SFTP Updater Support plugin after updating WordPress. Any ideas why this is only affecting Woocommerce stores? Any help would be appreciated. Thank you!

    The page I need help with: [log in to see the link]

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

    (@davidanderson)

    This indicates that you have a plugin or theme which is using the WP Filesystem API incorrectly. It tries to set up a connection and then does not check whether it succeeded or not. When it does not succeed, it tries to use it anyway, resulting in a fatal error.

    If you can ask your web hosting provider how to enable stack traces for PHP error messages on their system, then this will reveal with plugin was doing the calling.

    I’m having the same error, across multiple client sites with different themes and plugins.

    We only allow SFTP access for uploads and the SSH-SFTP plugin needs to be functional for updating the sites. However Woocommerce has errors now and the dashboard no longer works.

    Disabling the SSH-SFTP plugin makes Woocommerce function normally again. But then sites can no longer upgrade or install plugins.

    Is this something Woocommerce has to fix?

    Fatal error: Uncaught Error: Call to a member function stat() on bool in  /path/to/site/wp-content/plugins/ssh-sftp-updater-support/class-wp-filesystem-ssh2.php:257
    Stack Trace
    1.	WP_Filesystem_SSH2->is_file('/usr/local/www/...') /path/to/site/wp-content/plugins/woocommerce/packages/woocommerce-admin/src/Loader.php:593
    2.	Automattic\WooCommerce\Admin\Loader::load_script_translations(NULL, '/usr/local/www/...', 'wc-admin-app', 'woocommerce') /path/to/site/wp-includes/class-wp-hook.php:287
    3.	WP_Hook->apply_filters(NULL, Array) /path/to/site/wp-includes/plugin.php:206
    4.	apply_filters('pre_load_script...', NULL, '/usr/local/www/...', 'wc-admin-app', 'woocommerce') /path/to/site/wp-includes/l10n.php:1147
    5.	load_script_translations('/usr/local/www/...', 'wc- in  /path/to/site/wp-content/plugins/ssh-sftp-updater-support/class-wp-filesystem-ssh2.php on line 257 /path/to/site/wp-includes/l10n.php:1115
    Plugin Author David Anderson

    (@davidanderson)

    As suspected the code in the calling plugin (WooCommerce) is faulty. I have reported it here: https://github.com/woocommerce/woocommerce-admin/issues/5062 .

    David

    Thread Starter stevepyatte

    (@stevepyatte)

    Thank you, @davidanderson. I am hoping Woocommerce can repair their code sooner than later.

    Good luck to you, @vanillaisp.

    Plugin Author David Anderson

    (@davidanderson)

    Since this issue can only be resolved within WooCommerce, I will mark this support topic as resolved.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘SSH SFTP Updater Support & Woocommerce’ is closed to new replies.