• Resolved zaist

    (@zaist)


    Hello,

    For a few days now I get this error message :
    Uncaught Exception: This plugin only supports the direct filesystem method.
    I was used to update via SSH/SFTP with no issue up to last week.
    I did add define(‘FS_METHOD’, ‘direct’); to my wp-config but it’s not the way I want to work.
    Is there a fix / workaround ?

    WP : 6.7.2
    Wooc : 9.6.2
    PDF Invoices & Packing Slips for WooCommerce: 4.1.1
    PDF Invoices & Packing Slips for WooCommerce – Premium Templates : 2.22.0
    PDF Invoices & Packing Slips for WooCommerce – Professional : 2.15.13

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor Yordan Soares

    (@yordansoares)

    Hi @zaist,

    We just added hybrid file system support (#1078) allowing the use of alternative file system methods beyond the default 'direct' method. If 'direct' is unavailable, PHP Filesystem functions will be used as a fallback.

    Although this new improvement should manage the file system automatically, we have also introduced a new setting to allow you to change it manually if you need to for any reason:

    This feature should be included in the next public release, but we have prepared a beta version if you want to try it out immediately: woocommerce-pdf-invoices-packing-slips.4.2.0-pr1078.1.zip

    By the way, we have already performed several tests, without any issues, but I still recommend testing it on a staging site, just in case ??

    Thread Starter zaist

    (@zaist)

    Tried and now fully blocked :
    Uncaught Error: Call to a member function stat() on bool
    in?/home/ew/sites/www.elegantweapons.net/wp-content/plugins/ssh-sftp-updater-support/class-wp-filesystem-ssh2.php?on line?306

    Call stack:

    1. WP_Filesystem_SSH2::is_file()
      wp-content/plugins/woocommerce/src/Internal/Admin/Logging/FileV2/File.php:254
    2. Automattic\W\I\A\L\F\File::is_writable()
      wp-content/plugins/woocommerce/src/Internal/Admin/Logging/FileV2/File.php:437
    Plugin Contributor alexmigf

    (@alexmigf)

    Hi @zaist

    Did you select the “PHP filesystem functions” option in the setting my colleague mentioned?

    Thread Starter zaist

    (@zaist)

    Did rollback in the serialized settings in the wp_options.
    Still need some help to figure out the original issue.

    Thread Starter zaist

    (@zaist)

    @alexmigf I did and it break the backoffice.
    I had to switch back in wp_options table to move back to the previous settings.

    Plugin Contributor alexmigf

    (@alexmigf)

    Hi @zaist

    Do you see any errors recorded in the logs?

    • WooCommerce > Status > Logs
    • WP debug logs
Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.