Version 4.0 breaks websites with FS_METHOD set to SSH
-
Hi, I have several sites with
FS_METHODset tossh2. It used to work fine with WP-Optimize, but version 4.0 broke every single page on every site. There seem to be two issues. The first is a fatal error when accessing theFS_CHMOD_FILEconstant:PHP Fatal error: Uncaught Error: Undefined constant "FS_CHMOD_FILE" in wp-content/plugins/wp-optimize/includes/helpers/class-wpo-file-system-helper.php:59I haven’t defined the constant yet, and I may be wrong, but it seems to me that it’s not mandatory in WordPress.
But even after adding the constant to
wp-config.phpthere are still problems. The plugin says it cannot write towp-content/advanced-cache.phpand the site cache config in thewp-content/wpo-cache/config/folder. But I checked that both files are writable for both the nginx user and the user configured forssh2FS_METHODinwp-config.php(I was able to edit the contents of the files under both of them). Thessh2method also works in other cases, such as updating the plugin or WordPress itself, so the configuration is correct. It seems to me that until now, WP-Optimize relied on permissions and direct file access, which worked in my case. The latest version seems to try to use configuredFS_METHODto access those files, but it fails for unknown reason.
The topic ‘Version 4.0 breaks websites with FS_METHOD set to SSH’ is closed to new replies.