“Warning! WP Super Cache cache was broken but it has been fixed! The script advanced-cache.php could not load wp-cache-phase1.php.
The /home/kufamexc/public_html/wp-content/advanced-cache.php file has been regenerated and WPCACHEHOME has been fixed in your wp-config.php. Reload to hide this message.”
First, I want to know if the plugin is working
Second, If the plugin is working fine, how can I stop receiving the bm message?
Third, if the plugin is not working, how can I fixed it?
Thank you in advance, best regards
]]>I have a client that is hosted on a service that locks down their wp-config. Is there another place I can define this that would work? I attempted
add_action( 'muplugins_loaded', 'define_wpcachehome' );
function define_wpcachehome() {
define( 'WPCACHEHOME', '\app\public\wp-content\plugins\wp-super-cache/' );
}
but I am still getting an error message. Any suggestions would be appreciated. Thank you
]]>WPCACHEHOME tiene que estar definido en el archivo de configuración.
Gracias
]]>I have this message
Warning! You can’t update /var/www/vhosts/bed-breakfast-panarea.it/httpdocs/wp/wp-config.php! WPCACHEHOME must be set in the configuration file.
I checked the wp-config.php file and there actually is the line
define( ‘WPCACHEHOME’, ‘/var/www/vhosts/bed-breakfast-panarea.it/httpdocs/wp/wp-content/plugins/wp-super-cache/’ );
See also: https://prntscr.com/nuclj0
I also tried to set 777 to wp-config.php but the problem remains.
How to solve?
Thanks
Simone
]]>I’m unable to edit the setting or deactivate the plugin.
When trying to deactivate:
Could not remove WPCACHEHOME define from /home/hp3-linc5-nfs2-y/619/1210619/user/htdocs/wp-config.php. Please edit that file and remove the line containing the text ‘WPCACHEHOME’. Then refresh this page.
When trying to edit settings:
Error: Configuration file /home/hp3-linc5-nfs2-y/619/1210619/user/htdocs/wp-content/wp-cache-config.php s missing. Please reload the page.
Warning! Could not update /home/hp3-linc5-nfs2-y/619/1210619/user/htdocs/wp-config.php! WPCACHEHOME must be set in config file.
Warning! /home/hp3-linc5-nfs2-y/619/1210619/user/htdocs/wp-content/advanced-cache.php does not exist or cannot be updated.
If it already exists, please delete the file first.
Make /home/hp3-linc5-nfs2-y/619/1210619/user/htdocs/wp-content writable using the chmod command through your ftp or server software. (chmod 777 /home/hp3-linc5-nfs2-y/619/1210619/user/htdocs/wp-content) and refresh this page. This is only a temporary measure and you’ll have to make it read only afterwards again. (Change 777 to 755 in the previous command)
Refresh this page to update /home/hp3-linc5-nfs2-y/619/1210619/user/htdocs/wp-content/advanced-cache.php
If that doesn’t work, make sure the file /home/hp3-linc5-nfs2-y/619/1210619/user/htdocs/wp-content/advanced-cache.php doesn’t exist:
Open /home/hp3-linc5-nfs2-y/619/1210619/user/htdocs/wp-content/plugins/wp-super-cache/advanced-cache.php in a text editor.
Change the text CACHEHOME to /home/hp3-linc5-nfs2-y/619/1210619/user/htdocs/wp-content/plugins/wp-super-cache/
Save the file and copy it to /home/hp3-linc5-nfs2-y/619/1210619/user/htdocs/wp-content/advanced-cache.php and refresh this page.
I recently migrated this site to a new server using duplicator plugin. Not sure if this has anything to do with the errors but worth pointing out.
Thanks in advance.
]]>After update 1.6.1 became a bug:
WPCACHEHOME must be set in config file.
Solution is:
In the file wp-cache-phase2.php
line 1058 should be:
$tmp_file = tempnam( WP_TEMP_DIR, ‘wpsc’ );
Otherwise sys_get_temp_dir() will get _system_ tmp php folder (like /tmp)
Yes, /tmp from the ROOT you can not reach.
Please correct in the next ver., ASAP!
]]>Warning: include(\WDP\DFS\46\9\5\0\4678437059\user\sites\1099992.site\www\pedsassociates\wp-content\plugins\wp-super-cache/wp-cache-base.php): failed to open stream: No such file or directory in \\WDP\DFS\46\9\5\0\4678437059\user\sites\1099992.site\www\pedsassociates\wp-content\plugins\wp-super-cache\wp-cache.php on line 70
Warning: include(): Failed opening ‘\WDP\DFS\46\9\5\0\4678437059\user\sites\1099992.site\www\pedsassociates\wp-content\plugins\wp-super-cache/wp-cache-base.php’ for inclusion (include_path=’.;C:\php\pear’) in \\WDP\DFS\46\9\5\0\4678437059\user\sites\1099992.site\www\pedsassociates\wp-content\plugins\wp-super-cache\wp-cache.php on line 70
Warning: include_once(\WDP\DFS\46\9\5\0\4678437059\user\sites\1099992.site\www\pedsassociates\wp-content\plugins\wp-super-cache/ossdl-cdn.php): failed to open stream: No such file or directory in \\WDP\DFS\46\9\5\0\4678437059\user\sites\1099992.site\www\pedsassociates\wp-content\plugins\wp-super-cache\wp-cache.php on line 90
Warning: include_once(): Failed opening ‘\WDP\DFS\46\9\5\0\4678437059\user\sites\1099992.site\www\pedsassociates\wp-content\plugins\wp-super-cache/ossdl-cdn.php’ for inclusion (include_path=’.;C:\php\pear’) in \\WDP\DFS\46\9\5\0\4678437059\user\sites\1099992.site\www\pedsassociates\wp-content\plugins\wp-super-cache\wp-cache.php on line 90
On the admin page it also had this error notification:
Warning! WP Super Cache caching was broken but has been fixed! The script advanced-cache.php could not load wp-cache-phase1.php.
The file \\WDP\DFS\46\9\5\0\4678437059\user\sites\1099992.site\www\pedsassociates/wp-content/advanced-cache.php has been recreated and WPCACHEHOME fixed in your wp-config.php. Reload to hide this message.
But my webpage still had those 3 error lines across the top of it. This is not my host but I do have FTP access. It’s a windows server.
]]>Warning! Could not update /home/<Admin name>/public_html/wp-config.php! WPCACHEHOME must be set in config file.
Warning! /home/<Admin name>/public_html/wp-content/advanced-cache.php does not exist ((true)) or cannot be updated.
1. If it already exists, please delete the file first.
2. Make /home/<Admin name>/public_html/wp-content writable using the chmod command through your ftp or server software. ((Or panel)) (chmod 777 /home/<Admin name>/public_html/wp-content) and refresh this page. This is only a temporary measure and you’ll have to make it read only afterwards again. (Change 777 to 755 in the previous command)
3. Refresh this page to update /home/<Admin name>/public_html/wp-content/advanced-cache.php
If that doesn’t work, ((didn’t work)) make sure the file /home/<Admin name>/public_html/wp-content/advanced-cache.php doesn’t exist: ((doesn’t exist))
1. Open /home/<Admin name>/public_html/wp-content/plugins/wp-super-cache/advanced-cache.php$wp_cache_file in a text editor.
2. Change the text CACHEHOME to /home/<Admin name>/public_html/wp-content/plugins/wp-super-cache/ ((see code below))
3. Save the file and copy it to /home/<Admin name>/public_html/wp-content/advanced-cache.php and refresh this page.
Cannot continue… fix previous problems and retry.
But the only mention of WPCACHEHOME in advanced-cache.php
was
if ( false == strpos( $_SERVER[ 'REQUEST_URI' ], 'wp-admin' ) && !$skip_output ) {
echo "<!-- WP Super Cache is installed but broken. The constant WPCACHEHOME must be set in the file wp-config.php and point at the WP Super Cache plugin directory. -->";
}
}
if ( false == defined( 'WPCACHEHOME' ) ) {
define( 'ADVANCEDCACHEPROBLEM', 1 );
} elseif ( !include_once( WPCACHEHOME . 'wp-cache-phase1.php' ) ) {
if ( !@is_file( WPCACHEHOME . 'wp-cache-phase1.php' ) ) {
define( 'ADVANCEDCACHEPROBLEM', 1 );
}
}
I’m guessing if I replaced WPCACHEHOME in that code, it wouldn’t work.
As a half-assed programmer, I’m guessing it needs a line like:
CACHEHOME = /home/<Admin name>/public_html/wp-content/plugins/wp-super-cache/
or
CACHEHOME /home/<Admin name>/public_html/wp-content/plugins/wp-super-cache/
but since I don’t know the syntax and I’m not sure where in advanced-cache.php it can go…
SUGGESTION:
put this in the error message:
Insert this command ((proper command, including path as above)) in /home/<Admin name>/public_html/wp-content/plugins/wp-super-cache/advanced-cache.php$wp_cache_file
in ((this location -after ” code” and bevfore “code”))
(then (do this))
=Tell non programmers EXACTLY what to type & where, or they’ll break something!
I’m going to try both (because one might throw an error, and the other might work…) between
# WP SUPER CACHE 1.2
and
function wpcache_broken_message() {
If that doesn’t work, I’ll stick it somewhere else.
=Tell non programmers EXACTLY what to type & where, or they’ll break something!
Warning: include(/data02/outdoor/public_html/wp-content/plugins/temp-wp-super-cache/wp-cache-base.php): failed to open stream: No such file or directory in /data02/outdoor/public_html/wp-content/plugins/wp-super-cache/wp-cache.php on line 65
Warning: include(): Failed opening ‘/data02/outdoor/public_html/wp-content/plugins/temp-wp-super-cache/wp-cache-base.php’ for inclusion (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /data02/outdoor/public_html/wp-content/plugins/wp-super-cache/wp-cache.php on line 65
Warning: include_once(/data02/outdoor/public_html/wp-content/plugins/temp-wp-super-cache/ossdl-cdn.php): failed to open stream: No such file or directory in /data02/outdoor/public_html/wp-content/plugins/wp-super-cache/wp-cache.php on line 82
Warning: include_once(): Failed opening ‘/data02/outdoor/public_html/wp-content/plugins/temp-wp-super-cache/ossdl-cdn.php’ for inclusion (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /data02/outdoor/public_html/wp-content/plugins/wp-super-cache/wp-cache.php on line 82
Warning: include(/data02/outdoor/public_html/wp-content/plugins/temp-wp-super-cache/wp-cache-base.php): failed to open stream: No such file or directory in /data02/outdoor/public_html/wp-content/plugins/wp-super-cache/wp-cache-phase1.php on line 14
Warning: include(): Failed opening ‘/data02/outdoor/public_html/wp-content/plugins/temp-wp-super-cache/wp-cache-base.php’ for inclusion (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /data02/outdoor/public_html/wp-content/plugins/wp-super-cache/wp-cache-phase1.php on line 14
Warning: require_once(/data02/outdoor/public_html/wp-content/plugins/temp-wp-super-cache/wp-cache-phase2.php): failed to open stream: No such file or directory in /data02/outdoor/public_html/wp-content/plugins/wp-super-cache/wp-cache-phase1.php on line 30
Fatal error: require_once(): Failed opening required ‘/data02/outdoor/public_html/wp-content/plugins/temp-wp-super-cache/wp-cache-phase2.php’ (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /data02/outdoor/public_html/wp-content/plugins/wp-super-cache/wp-cache-phase1.php on line 30
]]>