I fixed the problem. Please delete WPFC and download the following version.
https://downloads.wordpress.org/plugin/wp-fastest-cache.zip
Fantastic thanks for such a quick response. And thanks for creating such a great plugin!
-
This reply was modified 8 years, 12 months ago by
Chillifish. Reason: To mark resolved
Looking at my error logs, it seems as if this is still happening occasionally, however, I haven’t been able to replicate it myself yet. I’ll keep monitoring it.
My error logs are full of the warning, however, it doesn’t seem to be causing any issues, or if it is, nobody’s phoning up to complain about it. Rather irritatingly my staging server isn’t doing it despite them being the same.
The problem is that the error logs can grow to a large size very quickly, which can lead to problems for sites hosted with restricted disk quotas. Obviously I am aware of this and am monitoring, but I have seen situations where large log files cause problems with server function.
I may have found a solution though it is too soon to know for sure.
It appears that this problem is caused by the new preload attachment function coded at line 1170 of wpFastestCache.php if($number > 0 && $pre_load->attachment > -1){
I checked my preload settings and it was not set to preload attachment (because that function didn’t exist for previous versions– so I changed the settings to check that option as well.
I haven’t seen the error mesage since I did that about an hour ago. So I’m hoping that did the trick (though I really don’t feel it valuable on this particular site to cache attachments).
@abigailm, thank you so much. I fixed the problem as below.
if($number > 0 && isset($pre_load->attachment) && $pre_load->attachment > -1){
if($number > 0 && isset($pre_load->tag) && $pre_load->tag > -1){
You should delete the plugin and download the following version to get the latest changes.
https://downloads.wordpress.org/plugin/wp-fastest-cache.0.8.7.0.zip
Thank you — I have uploaded the new file with the changes and will monitor the error logs and let you know if I see any further issues.
Oh, I already did — long time ago! (And sorry, the system doesn’t allow me to add more than 5 stars — I’d give 10 stars if I could).
Unfortunately, your changes to wpFastestCache.php have not resolved the problem. Since replacing that file I have 26 repetitions of this error:
27-Jun-2017 21:22:47 UTC] PHP Recoverable fatal error: Object of class WP_Error could not be converted to string in //wp-includes/kses.php on line 1249
This is where the preload setitings for “attachments” are not activated.
I will try reactivating that preload setting and report back as to whether the error continues.
I have just discovered why I’m seeing the message all over my live site and I can’t replicate it on my production site. The error seems to be happening only for mobiles and tablets. Again, it is on a page that is not supposed to be cached.
@ chillifish, can you contact me via email please: http://www.wpfastestcache.com/contact-us/