Version 4.0 breaks websites with FS_METHOD set to SSH
-
Hi, I have several sites with
FS_METHOD
set 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_FILE
constant:PHP Fatal error: Uncaught Error: Undefined constant "FS_CHMOD_FILE" in wp-content/plugins/wp-optimize/includes/helpers/class-wpo-file-system-helper.php:59
I 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.php
there are still problems. The plugin says it cannot write towp-content/advanced-cache.php
and 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 forssh2
FS_METHOD
inwp-config.php
(I was able to edit the contents of the files under both of them). Thessh2
method 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_METHOD
to access those files, but it fails for unknown reason.
- You must be logged in to reply to this topic.