Settings saved but getting "not saved" error message
-
even though we installed the plugin,
and set the settings – and it detected our memcached – and saved them,
the plugin still says“Advanced cache file is yet to be generated, please save » WP-FFPC Settings”
Sid
-
please turn on debug logging:
adddefine('WP_DEBUG', true); define('WP_DEBUG_DISPLAY', false); define('WP_FFPC__DEBUG_MODE', false);to wp-config.php and check what the logs say.
It shoes:
[16-Oct-2015 16:47:55] PHP Warning: include(): Failed opening ‘/var/www/vhosts/AppBuzzinga.com/httpdocs/wp-content/advanced-cache.php’ for inclusion (include_path=’.:’) in /var/www/vhosts/AppBuzzinga.com/httpdocs/wp-settings.php on line 65
[16-Oct-2015 16:48:27] PHP Warning: include(/var/www/vhosts/AppBuzzinga.com/httpdocs/wp-content/advanced-cache.php): failed to open stream: No such file or directory in /var/www/vhosts/AppBuzzinga.com/httpdocs/wp-settings.php on line 65
[16-Oct-2015 16:48:27] PHP Warning: include(): Failed opening ‘/var/www/vhosts/AppBuzzinga.com/httpdocs/wp-content/advanced-cache.php’ for inclusion (include_path=’.:’) in /var/www/vhosts/AppBuzzinga.com/httpdocs/wp-settings.php on line 65
[16-Oct-2015 16:48:53] PHP Warning: include(/var/www/vhosts/AppBuzzinga.com/httpdocs/wp-content/advanced-cache.php): failed to open stream: No such file or directory in /var/www/vhosts/AppBuzzinga.com/httpdocs/wp-settings.php on line 65
[16-Oct-2015 16:48:53] PHP Warning: include(): Failed opening ‘/var/www/vhosts/AppBuzzinga.com/httpdocs/wp-content/advanced-cache.php’ for inclusion (include_path=’.:’) in /var/www/vhosts/AppBuzzinga.com/httpdocs/wp-settings.php on line 65
[16-Oct-2015 16:48:54] PHP Warning: include(/var/www/vhosts/AppBuzzinga.com/httpdocs/wp-content/advanced-cache.php): failed to open stream: No such file or directory in /var/www/vhosts/AppBuzzinga.com/httpdocs/wp-settings.php on line 65
[16-Oct-2015 16:48:54] PHP Warning: include(): Failed opening ‘/var/www/vhosts/AppBuzzinga.com/httpdocs/wp-content/advanced-cache.php’ for inclusion (include_path=’.:’) in /var/www/vhosts/AppBuzzinga.com/httpdocs/wp-settings.php on line 65
[16-Oct-2015 16:49:53] PHP Warning: include(/var/www/vhosts/AppBuzzinga.com/httpdocs/wp-content/advanced-cache.php): failed to open stream: No such file or directory in /var/www/vhosts/AppBuzzinga.com/httpdocs/wp-settings.php on line 65
[16-Oct-2015 16:49:53] PHP Warning: include(): Failed opening ‘/var/www/vhosts/AppBuzzinga.com/httpdocs/wp-content/advanced-cache.php’ for inclusion (include_path=’.:’) in /var/www/vhosts/AppBuzzinga.com/httpdocs/wp-settings.php on line 65sid
We are still getting the message
“Advanced cache file is yet to be generated, please save » WP-FFPC Settings”
despite reviewing every settting multiple times and saving settings dozns of times.
We have not given a review or rating yet, but the plugin and support so far has been dissappointing.
Sid
Do you have write access on the wp-content folder? The advanced-cache.php file needs to be generated there ( this is hardcoded in WordPres ).
Can the advanced-cache.php file be created, can you please try it touching manually, with the correct user and file permissions?
When you press the ‘Save settings’ what does the log says?
Because I have a significant amount of error logging in the plugin, so it should indicated something like:
– Generating advanced-cache.php failed: FILE is not writable’);
or
– Generating advanced-cache.php failed: Global config is empty’);or at least some noise.
Also: this is a hobby project of mine, so support is coming off my spare time. Please don’t expect me to be as responsive as a company who makes a living off this.
Ah, crap, I’m sorry.
The debug lines I’ve entered above is faulty; it should state true.
define('WP_DEBUG', true); define('WP_DEBUG_DISPLAY', false); define('WP_FFPC__DEBUG_MODE', true);So, please add these and see what the issue could be.
We own the server. We have both root and admin access, and all our other plugins write to that directory without any issues at all. It is NOT a permissions thing – and yes, we double checked that. And the logs I posted before ARE what it shows after we try saving.
And while I understand this is not a “make a living” thing, people are more inclined to donate when things actually work. We have 14,300+ WP users on our list, but we can’t evaluate for them how well the plugin works because we can’t get the file to load the program it needs.
Based on the debug we already ran, the plugin is faulting before it even tries to write the file – i.e., it never reaches the point of trying to write the file. The error is occuring BEFORE that point. I am guessing that some condition that needs to be met before the cache php is actually written is either not being met or not even being tested.
Sid
Sid,
I’m sorry, there indeed is an issue with 1.9.0; I’ll look into it.
Sid,
This is weird. The issue is with this check:
https://github.com/petermolnar/wp-ffpc/blob/master/wp-ffpc-class.php#L1003is_writable – and it always fails. I’m replacing it with touch and release a bugfix soon.
Right, 1.9.1 should fix it.
Thank you for reporting the issue. To be honest, is_writable should not have failed, I’m going to investigate why did this happen.
The topic ‘Settings saved but getting "not saved" error message’ is closed to new replies.