Filesystem issue
-
I could see many tickets relating errors caused by file system initialization error:
- https://ww.wp.xz.cn/support/topic/latest-update-causing-cli-fatal-error/
- https://ww.wp.xz.cn/support/topic/critical-error-activating-spectra/
- https://ww.wp.xz.cn/support/topic/spectra-uag-clash-with-woocommerce-9-2-2/
- https://ww.wp.xz.cn/support/topic/fatal-error-uncaught-typeerror-ftp_fget/
The natural solution is to force to
directmethod, as mentioned in this replay.I am a hosting provider and we use the
SSH2method 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_filesystemobject. The WordPress core does not use. Thewp_upload_bitsfunction 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.
The topic ‘Filesystem issue’ is closed to new replies.