People who are having problems with this. I've solved it by making the .htaccess file temporarily writable.
Dries Vints on "W3 Total Cache Error: Files and directories could not be automatically created t"
olly connelly on "[Plugin: W3 Total Cache] s2Member forcing DONOTCACHEPAGE"
This is an issue when logged in only. Is definitely some kind of issue with S2Member because, when that is deactivated, page caching works.
But, with s2Member enabled:-
<!-- W3 Total Cache: Page cache debug info:
Engine: apc
Caching: disabled
Reject reason: DONOTCACHEPAGE constant is defined
Status: not cached
Creation Time: 1.305s
Header info:
Expires: Wed, 11 Jan 1984 05:00:00 GMT
Cache-Control: no-cache, must-revalidate, max-age=0
Pragma: no-cache
Content-Type: text/html; charset=UTF-8
X-W3TC-Minify: On
-->
I've posted up a query at s2M about this but if anyone here can shed some light I'd be grateful.
(For the record, it looks like the DONOTCACHEPAGE constant is called in s2member's no-cache.inc.php file.)
olly connelly on "[Plugin: W3 Total Cache] s2Member forcing DONOTCACHEPAGE"
As was pointed out to me on s2member's forum, "Don't be a dolt!" Well, Philly there was more polite ...
“If you cache pages for logged in users (which are likely to be members) then you are going to serve them to non-members that are not logged in”
Good point.
“I’m not aware of any option which allows a cache to be created for logged in and a separate cache for logged out members.”
** Now that would be nice! **
I saw this in s2's cannily titled no-cache-inc.php, applying to logged in users:-
if (!defined ("DONOTCACHEPAGE"))
define ("DONOTCACHEPAGE", true);
But, as Philly suggested, maybe this is best left alone.
But, but, well, how ruddy frustrating. I’d like to be able to offer a fast site to paying members, as well as to guests. Seems only right! Might there be some kind of workaround?
… Some use of fragment caching, f’rinstance? I see that w3TC supports that now.
Any keywords gratefully received, happy to research and post back anything useful.
Bombdogs on "[Plugin: W3 Total Cache] Multisite - problem with settings per site"
Hi,
It appears that page caching cannot be independently enabled on different sites on the same multisite install.
In the Network Dashboard we have un-ticked "Use single network configuration file for all sites" as we want to configure W3TC on a per site basis.
However page caching seems to be unable to operate independently because of the shared .htaccess file at the root of the multisite install. For example on site 1 we enable page caching and need to put in the "# BEGIN W3TC Page Cache core" rules. Now visit site 2 backend that doesn't have page caching enabled and we see an error saying
remove all lines between and including # BEGIN W3TC Page Cache core and # END W3TC Page Cache core markers.
I know that by and large we'll want page caching enabled, but there are fringe cases where we don't want this to be the case. Is this a known limitation? Will there be any ill effects by leaving the page caching rules in place and ignoring the error on sites where it's disabled?
Thanks,
Paul
Bombdogs on "[Plugin: W3 Total Cache] Multisite - problem with settings per site"
Similar problem for database & object caching. If one site uses either of these you need the relevant db.php & object-cache.php files placed in wp-content. Sites that don't have them enabled show an error...
Execute next commands in a shell:
rm /var/www/html/wordpress-dev/wp-content/db.php
Looks like settings per site is only really possible on the more fine-grain controls. Which caching mechanisms are enabled has to be largely set network wide.
Is there something I'm missing?
Best,
Paul
olenickit on "[Plugin: W3 Total Cache] Minify Messing Mobiles"
Using WPMU, 3.6, Avada responsive theme,
Pages on all mobile browsers starting rendering with weird and inconsistent anomalies. After a lot of wheel-spinning, we finally realized the css was being munged by the Minify feature.
Removed the plugin and now our pages on mobile devices are rendering correctly.
Adios.
geophray on "[Plugin: W3 Total Cache] Theme Dissapeared"
Hi Peter,
Did you follow the last step in that video before activating the CDN feature?
Also, can you provide a link to your site?
akosner on "[Plugin: W3 Total Cache] Cannot activate or uninstall W3 total cache entirely"
I tried to install w3 total cache and i got a fatal memory error on line 251 of functions.php
i then went and manually removed all of the files recommended in a previous post, but i still get these errors in my admin dashboard:
Warning: fopen(/data/20/3/93/149/3093312/user/3447067/htdocs/wp-content/plugins/w3-total-cache/w3-total-cache.php) [function.fopen]: failed to open stream: No such file or directory in /data/20/3/93/149/3093312/user/3447067/htdocs/wp-includes/functions.php on line 3565
Warning: fread() expects parameter 1 to be resource, boolean given in /data/20/3/93/149/3093312/user/3447067/htdocs/wp-includes/functions.php on line 3568
Warning: fclose() expects parameter 1 to be resource, boolean given in /data/20/3/93/149/3093312/user/3447067/htdocs/wp-includes/functions.php on line 3571
what to do to clean it up?
any known issues with the new pagelines dms theme (which i am using on the site)? very light install. not much to conflict with.
westerdaled on "[Plugin: W3 Total Cache] Do I disable W3Total Cache when post editing or updating plugins"
Hi drekaz21
Ok I understand what you mean now. I have been trying out the Page Speed utility - every time I try my score goes up!
The preview laptop view looks a bit small to be real useful other than as you say, indicating whether it page is broken or not.
I think your post will be very useful given the potential issues with W3TotalCache. I myself have nearly finished a post on my blog which a few images so wish me luck The related article you mention is good btw.
maxj on "[Plugin: W3 Total Cache] Validating error"
Hi, I get that error: A charset attribute on a meta element found after the first 512 bytes. when I want to validate my site with http://validator.w3.org/ if I put the plugin OFF everything is like it should. How do I make it work?
ccolotti on "[Plugin: W3 Total Cache] Scheduled database backups no longer working"
I have still yet to upgrade and I was wondering if all these cron issues and scheduled post issues are finally resolved so I can finally upgrade the plugin. Any insight would be great.
Abi أب on "[Plugin: W3 Total Cache] Minify didn't work if WP_PLUGIN_URL set to different domain"
I define WP_PLUGIN_URL in wp-config.php to different domain from my WP_SITEURL.
define('WP_SITEURL', 'http://' . $_SERVER['SERVER_NAME']);
define('WP_HOME', 'http://' . $_SERVER['SERVER_NAME']);
define('WP_CONTENT_URL', 'http://static.example.com/wp-content');
define('WP_PLUGIN_URL', 'http://static.example.com/wp-content/plugins');
The minified CSS and javascript didn't work for files in plugins and themes directory
2app on "[Plugin: W3 Total Cache] Minify and MultiViews"
I have the same problem, this is a quick fix to solve this until the developers create a more user-friendly way (created by diff, which is commonly used for creating patches):
--- MinifyAdminEnvironment.old.php 2013-08-09 15:09:10.442893335 +0200
+++ MinifyAdminEnvironment.php 2013-08-09 15:08:57.342893564 +0200
@@ -533,7 +533,9 @@
$rules = '';
$rules .= W3TC_MARKER_BEGIN_MINIFY_CACHE . "\n";
- $rules .= "Options -MultiViews\n";
+ if (!defined('CUSTOM_W3TC_DISABLE_MULTIVIEWS') || !CUSTOM_W3TC_DISABLE_MULTIVIEWS) {
+ $rules .= "Options -MultiViews\n";
+ }
if ($etag) {
$rules .= "FileETag MTime Size\n";
The file resides in w3-total-cache/lib/W3
If you add define('CUSTOM_W3TC_DISABLE_MULTIVIEWS', true); to your wp-config.php, then it should work.
deweydb on "W3 Total Cache & Mobile Theme Switching"
Short question: How do I make w3 create a separate page cache for each theme that is served?
Long Question:
I've been stumped for a while now on this, and in the end had to disable page caching completely on any site i have that has a mobile theme switcher. Basically what happens is after you clear the cache, if the first visit is mobile, the mobile site gets cached. Then subsequent desktop visits get the mobile site as well. Or vice versa if the first page view after the cache was cleared is from a desktop browser.
AMTS (Any Mobile Theme Switcher) claims to have solved this issue, and after purchasing their pro version, i found out they have not, and the claim is a lie. I have even received a demo site from the plugin creator, and it has the exact same problem, see for yourself here:
http://projects.designerdady.com/dinesh_test
Proof in this screenshot. The three mobile browsers on the left (iOS, Android & Blackberry) all load the desktop site (albiet it is responsive, so it isn't terrible, but it is not loading the correct theme!)
https://dl.dropboxusercontent.com/u/39497/Screen%20Shot%202013-08-09%20at%2012.40.58%20PM.png
There is an old thread here that has long since been closed and become outdated, here:
http://wordpress.org/support/topic/w3-total-cache-switch-between-mobile-themes-and-desktop
The idea would work perfectly except w3 has changed a lot since then, and there is no functions.php file anymore.
Other solutions that i have found involve disabling page caching for mobile by adding a list of user agents to the rejected user agents box in w3 page caching settings. IMHO this is a stupid solution, because now we are just avoiding page caching and circumventing the awesomeness of w3! Furthermore this is mobile, which is already slow enough (slow mobile networks, etc), so we are just giving the mobile users a bad experience.
I'm getting really frustrated, i've been looking everywhere for a solution to this. Any advice would really be appreciated!
deweydb on "W3 Total Cache & Mobile Theme Switching"
mdidesign on "[Plugin: W3 Total Cache] Wordpress 3.6 support?"
Does the developers recognize this thread and are working on a fix (or update for 100% WP 3.6 compatibility? The beta versions were out for a long time for developers to test)
alhaarth on "[Plugin: W3 Total Cache] Conflict with WP DB Driver"
Hi,
I have been attempting to use the WP DB Driver plugin which is the only solution I have been able to find to enable Wordpress to run on php 5.5 due to deprecation of MySql.
This plugin creates a file named db.php in the wp-content folder, as does W3 Total Cache. If database caching is enabled in W3TC, it overwrites this file but even when database caching is disabled, it appears to remove any db.php file that is present in the wp-content folder. Is there any way to prevent this from happening?
Oxhorn on "[Plugin: W3 Total Cache] Render-blocking JavaScript:"
Hello, I too have this issue. I'm seeking to get my Google Page Speed score as close to 100% as possible. Any update on this?
Man2u2uk on "[Plugin: W3 Total Cache] Sidebar Login on Index Page Overruled by Cache, Cookie Not Honored"
Hi,
I'm having exactly the same issue. Did you ever find a workaround?
GibMo on "[Plugin: W3 Total Cache] Due to W3TC postings not showing anymore"
This plugin modifies .htacces file. Recent postings where not displayed on the homepage anymore. Unless you were logged in.
Removing the added code from W3TC cleared this issue.
Therefore I will avoid this plugin!