Filesystem issue
-
I could see many tickets relating errors caused by file system initialization error:
- https://www.ads-software.com/support/topic/latest-update-causing-cli-fatal-error/
- https://www.ads-software.com/support/topic/critical-error-activating-spectra/
- https://www.ads-software.com/support/topic/spectra-uag-clash-with-woocommerce-9-2-2/
- https://www.ads-software.com/support/topic/fatal-error-uncaught-typeerror-ftp_fget/
The natural solution is to force to
direct
method, as mentioned in this replay.I am a hosting provider and we use the
SSH2
method to create a security layer for interacting with the WordPress file system. It does not allow PHP-FPM user to write to write to directories other than the uploads directory.This plugin does not support this approach.
In my opinion, writing to the uploads directory should not to use the global
wp_filesystem
object. The WordPress core does not use. Thewp_upload_bits
function is an example. Writing outside of the uploads should have the same experience as, for example, installing a plugin. When the FTP credentials is asked when it not set by constants.I could not use any hook to swerve this behavior and respect the security settings applied to our WordPress installations.
- You must be logged in to reply to this topic.