I’m sorry the good link of my web siet is : http://cordier-cuisines.com/wordpress/
-
This reply was modified 8 years, 6 months ago by
philpich.
Hi @philpich
You should edit wp-cache-config.php in wp-content directory. You need to add this on the begin (instead damaged content):
<?php
/*
WP-Cache Config Sample File
See wp-cache.php for author details.
*/
$wpsc_last_post_update = 1504859561; //Added by WP-Cache Manager
In next lines are variables, so you need to keep this part.
until line $wp_cache_debug_log = '';. If you see repeating block, then remove duplicate. So last few lines should be:
$wp_cache_debug_level = 5;
$wp_cache_debug_ip = '';
$wp_cache_debug_log = '';
?>
Don’t put empty space after line ?>.
It’s probably same as https://wordpress.org/support/topic/wordpress-dashboard-no-longer-visible/
I hope that helps.
Sasa
-
This reply was modified 8 years, 6 months ago by
Saša.
You are the best !!!
the site is OK !!
Just two small php tags erased ! Grrrrrr
With a great thanks
Philippe
Hi Saša,
I did not understand what exactly to add! You can give a full example of wp-cache-config.php?
Thanks!!!!
Hi @tatarin
Each wp-cache-config.php is unique because there are settings for specific website. Example for this file you can see on:
https://github.com/Automattic/wp-super-cache/blob/master/wp-cache-config-sample.php
Regards,
Sasa
Hi Saša,
I need an example of an already edited file!
Thanks!!!
It’s same as this file (only values are different). It’s long file and specific for each website. I CAN’T PASTE it here.
So, if you don’t have other way, then please backup your current file and copy sample file to wp-config-cache.php (it’ll reset supercache settings to default). After this, you need to review your settings for supercache in WP dashboard.
I’m so sorry, but I can’t explain better this. Please look other posts (I’m not sure that helps):
https://wordpress.org/support/topic/wordpress-dashboard-no-longer-visible/
https://wordpress.org/support/topic/problems-wp-super-cache-after-upgrading-to-version-1-5-4-and-1-5-5/
Maybe there are more similar posts.
I am with the same problem in my website, it happened more than 5 times already.
I think it is related with this PHP warning above, since wp-cache-config.php file is being broken with “invalid” characters.
[11-Sep-2017 15:15:37 UTC] PHP Warning: json_encode(): Invalid UTF-8 sequence in argument in /public_html/wp-content/plugins/wp-super-cache/wp-cache-phase2.php on line 53
My last attempt was make this file unwritten changing its permission, nothing happened until now (no error), but I noticed I cannot edit a comment, I got the following msg:
Error: file /public_html/wp-content/wp-cache-config.php is not writable. Error: file /public_html/wp-content/wp-cache-config.php is not writable. Error: file /public_html/wp-content/wp-cache-config.php is not writable.
I had to switch to 1.5.3! 1.5.4 and 1.5.5 with bugs that add error code in main page on new sites(only on new, on old site all good)! Very sorry! But no one even tries to correct these mistakes! Need to look for a replacement WP Super Cache!