• Resolved hudin

    (@hudin)


    WordPress 6.72, PHP 8.3.16, Woocommerce 9.6.2

    Plugin 4.1.0 is crashing my admin when I upgrade to it. Have had to revert to an older version to be up and running. Everything was running great up until this new version.

    Log is spewing out:

    “Uncaught Error: Undefined constant “FS_CHMOD_DIR” in …/wp-admin/includes/class-wp-filesystem-ssh2.php:700″

    “Plugin upgrade procedure failed (updating from version 3.9.6 to 4.1.0): Undefined constant “FS_CHMOD_DIR” (…/wp-admin/includes/class-wp-filesystem-ssh2.php:700)”

    “Uncaught Error: Class “WPO\IPS\Compatibility\ThirdPartyPlugins” not found in …/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/woocommerce-pdf-invoices-packingslips.php:151″

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Contributor alexmigf

    (@alexmigf)

    Hi @hudin

    Our plugin only supports the direct file system method. It looks like you might be using a different one. Try adding the following line to your wp-config.php file—does that resolve the issue?

    define('FS_METHOD', 'direct');
    Thread Starter hudin

    (@hudin)

    I’m usings define(‘FS_METHOD’, ‘ssh2’);

    Has this been a recent change on your end as it was working fine until this most recent update as there are errors in there unrelated to filesystem?

    • This reply was modified 3 weeks, 4 days ago by hudin.
    Plugin Contributor alexmigf

    (@alexmigf)

    Since version 4, our plugin only supports the direct file system method.

    Thread Starter hudin

    (@hudin)

    Well… great. But yes, it works now once I went through and cleaned up a number of items that probably needed to be addressed anyways.

    • This reply was modified 3 weeks, 4 days ago by hudin.
    Plugin Contributor Yordan Soares

    (@yordansoares)

    Thanks for confirming that it worked, @hudin!

    This and other modifications were applied at the request of the www.remarpro.com Plugin Team, in order to boost the plugin’s security further and adhere to the Plugin Check standards (see: #899).

    Please note that we just launched a new version (4.1.1) which improves the file system implementation. You could try to set FS_METHOD as ssh2 again to see if it works (in the case that you need it!).

    Let us know if you need more help! ??

    Hi Yordan,

    We use the ssh2 connection method as well and have upgraded to the most recent version, 4.1.1 as you recommended, but our sites are still critical erroring, I’m afraid! I can also back up what Hudin has been saying as we’ve used this plugin for years on multiple sites of ours and have always had the connection methods be ssh2, with no errors up until two days ago.

    We did try using the ‘direct’ method, but this prevents us from updating other plugins on the site, so it’s not something we’d like to use long term! Happy to provide more detail or errors should you need them.

    Plugin Contributor Yordan Soares

    (@yordansoares)

    Thanks for your feedback, @daneswood,

    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 ??

    Hi Yordan,

    This is great; thank you! We’ve just tested it on one of our staging sites, and when activated, we still get a critical error, I’m afraid. I have a screenshot of the error if you would like me to send it over, but the outline of it is that there is an issue in the FileSystem.php folder.

    Thanks!

    Plugin Contributor Yordan Soares

    (@yordansoares)

    It would be helpful to see that screenshot indeed, @daneswood!

    However, if the issue is related with any file or folder missing, I would download a fresh installation file of the beta version again, to rule out that the first download is not corrupted. This is not very common, but it happens from time to time: woocommerce-pdf-invoices-packing-slips.4.2.0-pr1078.1.zip

    Hi Yordan,

    I’m having some issues getting the image to upload to this editor, is there another way I can get it to you?

    • This reply was modified 1 week, 3 days ago by daneswood.
    Plugin Contributor Yordan Soares

    (@yordansoares)

    Hi @daneswood,

    You can use https://www.imgbb.com/ or https://imgur.com/ to upload your images, and then share the URL here.

    However, if possible, please open a new thread, so that we don’t keep sending email notifications to the original thread starter (which was not you).

Viewing 11 replies - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.