Quantcast
Channel: WordPress.org Forums » [W3 Total Cache] Support
Viewing all 19291 articles
Browse latest View live

Page caching disables access by ip

$
0
0

Replies: 1

Hello,

I am trying to run a script as follows
serverip/~username/somephpscript.php

I run it like this, because it takes long to load (and otherwise we timeout due to things like cloudflare)
i have narrowed the problem down to w3 caching (specificly page cache)

If i go to my script with w3 caching active, it redirects me to
domain/~username/somephpscript.php

This happens when i turn page caching on, is there a way to prevent this/exclude it?
i tried adding “somephpscript.php” to “Never cache the following pages:” but this did not solve it.


Enabling minify removes Elementor images

$
0
0

Replies: 1

Hi all, I have been trying to improve my site score and to hopefully in turn improve page speeds and I decided to test minify locally so I enabled it but all of the images that were added from Elementor were greyed out instead, is there a fix for this?

  • This topic was modified 5 hours, 33 minutes ago by fluiddesk.

Content Security Policy settings

$
0
0

Replies: 1

Hello,

W3TC has an option “Content Security Policy”. What should I have to add on these empty boxes to make it work? Can you please help?

Cannot Remove Plugin Without Breaking Site

$
0
0

Replies: 0

Hello, I am finding it impossible to remove this plugin without breaking the WordPress site. I have tried everything and as soon as I turn off Object Caching in Version 0.14.1 of the W3 Total Cache plugin all of the pages on my website turn into white pages and only the admin login page works. I tried many different approaches including clearing out the cache folder, clearing the .htaccess file, disabling the plugin, disabling all of the other caching options first, disabling WP caching in the wp-config.php file, etc. Nothing works on my site including the default theme until I re-enable the object cache.

How do I remove this plugin without breaking the site? I have disabled it in the past using previous versions for troubleshooting purposes and it did not break the site.

W3 Total cache no muestra loading.gif de plugin a3 lazy load

$
0
0

Replies: 0

W3 Total cache doesn’t show the A3 Lazy Load plugin animation called “Loading.gif” this makes trying to load the gif of a 404 slow down the loading of the page quite a bit. I thought the last update of W3 Total Cache would solve this problem but it still happens, if I disable W3 Total Cache the loading.gif animation loads perfectly, please fix it, I attach photos and the url of the web page where it happens… Thank you.

https://ibb.co/HFfzJyJ
https://ibb.co/yY7CmDg
https://bit.ly/2TTaHHm

REST API caching stopped working properly after Transfer to a new domain

$
0
0

Replies: 0

I use wp-json in my website. I have REST routes that depends on query parameters

https://example.com/wp-json/book/bycategory?category=category1
https://example.com/wp-json/book/bycategory?category=category2
https://example.com/wp-json/book/bycategory?category=category3
https://example.com/wp-json/book/bycategory?category=category4

Each of the above REST routes returns different results, which is the expected behaviour.

I have a licence key for PRO version for my website example.com, and caching is enabled for REST API links.

Yesterday, I moved my website to example.net. After I moved my website, all of my rest apis with the same path and different query parameters return the same result.

All of the routes
https://example.net/wp-json/book/bycategory?category=category1
https://example.net/wp-json/book/bycategory?category=category2
https://example.net/wp-json/book/bycategory?category=category3
https://example.net/wp-json/book/bycategory?category=category4

Returned the result that was expected from the first route /wp-json/book/bycategory?category=category1. I think what happened is that after I moved to another domain, all the four routes resulted were served from the cache of the first route.

I solved this issue temporarily by disabling cache for routes.

How can I fix this issue(Need to enable caching for REST API)?

Also after I moved to a new domain, I started receiving a message telling me that The W3 Total Cache license key is not active for this site. You can switch your license to this website following this link.

When I click on “this link” link, I get a message that says “Email with a link for license reset was sent to you”, but I don’t get any email from W3 Total Cache.
How can I change to the new domain?

  • This topic was modified 1 hour, 28 minutes ago by abozanona.

MULTISITE BROKEN for all sites after W3 Total Cache installation

$
0
0

Replies: 0

Installed W3 Total cache on Ubuntu instance of Amazon E2C.

Settings activated:

PAGE CACHE: Disk – enhanced
MINIFY: Enabled – auto mode
OPCODE CACHE: Zend opcache
DATABASE CACHE: Enabled – METHOD: Disk
OBJECT CACHE: Enabled – METHOD: Disk
UX: Lazy loading

At the beginning all sites of multisite were broken giving error connection to database, after a reboot and some wait the sites where the plugin wasn’t installed came back, even if they are painfully slow, but the site where the plugin was installed is still unreachable with an error 500. What is your diagnosis of the issue and your suggested troubleshooting?

Browser cache function and gzip compression

$
0
0

Replies: 0

Hi Marko,

I’m not an IT man…

I have a shared hosting SSL(https) website
I have a server side gzip compression enabled by Apache mod_deflate module.

Should I enable ‘Browser cache’ function in W3TC, (or that HTTP compression makes the same stuff as server side gzip)?

For first I wish to enable ‘Page cache’ and ‘Browser cache’ functions only.

Thanks in advance!


Is W3TC HTML Minifier Loaded Despite Being Disabled?

$
0
0

Replies: 2

Hi

This is an issue that first came up 7 months ago and @vmarko mentioned back then that a fix would be pushed, see: https://wordpress.org/support/topic/cannot-exclude-page-with-infinite-scroll-ajax-on-it/

Was that fix ever pushed? Because I am again encountering what appears to be the same issue.

Namely I have W3TC’s HTML minification disabled in the settings and have Autoptimize HTML minification enabled.

Then I have a page where something is not working as it should.

If I disable AOs HTML minification it works. But if I deactivate W3TC entirely and leave AOs HTML minifcation enabled it also works.

So it looks to me like W3TC is still loading its HTML minifier despite me having it unchecked in W3TCs settings and AO is then, as before, still using your minifier instead of its own?

PHP Warning: preg_match(): Compilation failed: -PgCache_ContentGrabber.php on li

$
0
0

Replies: 1

Hello,

I post this ticket because I replied on a resolved ticket of @manni79 and @vmarko
I posted already in another thread, but because the other thread is general resolved, I think it is not pushed anymore and nobody will find it:
https://wordpress.org/support/topic/error-preg_match-compilation-failed-pgcache_contentgrabber-php-on-line-920/?loggedout=true

I have the same error after upgrading my install of W3 Total Cache to version 0.14.1 on:
WordPress version 5.4.1
Server architecture Linux 4.19.113-combell x86_64
PHP version 7.4.6 (Supports 64bit values)
I am facing the following error:
PHP Warning: preg_match(): Compilation failed: quantifier does not follow a repeatable item at offset 0 in /data/sites/web/URL/www/wp-content/plugins/w3-total-cache/PgCache_ContentGrabber.php on line 952′
PHP Warning: preg_match(): Compilation failed: quantifier does not follow a repeatable item at offset 0 in /data/sites/web/URL/www/wp-content/plugins/w3-total-cache/PgCache_ContentGrabber.php on line 952′

I have the following “Never cache the following pages” settings:
wp-.*\.php
index\.php

Question is: how to solve this?

I see also periodically my site is going down for a minute of so.

Thanks in advance,

Best Regards,
Staf

white screen of death – WSOD caused by W3 Total Cache

$
0
0

Replies: 1

hello,

i notice that one page on my site appear as WSOD and no content shows. after checking i found that the w3 caused this.i turned it off and the page workes just fine.
how do i fix it ?
please help

W3 Total Cache: PHP Warning: stristr(): Empty needle…

$
0
0

Replies: 1

Hello,

I keep getting this error:

AH01071: Got error ‘b/Minify/Minify/IgnoredCommentPreserver.php on line 42PHP message: PHP Warning: stristr(): Empty needle in /var/www/vhosts/…/httpdocs/wp-content/plugins/w3-total-cache/lib/Minify/Minify/IgnoredCommentPreserver.php on line 42PHP message: PHP Warning: stristr(): Empty needle in /var/www/vhosts/…/httpdocs/wp-content/plugins/w3-total-cache/lib/Minify/Minify/IgnoredCommentPreserver.php on line 42PHP message: PHP Warning: stristr(): Empty needle in /var/www/vhosts/…/httpdocs/wp-content/plugins/w3-total-cache/lib/Minify/Minify/IgnoredCommentPreserver.php on line 42PHP message: PHP Warning: stristr(): Empty needle in /var/www/vhosts/…/httpdocs/wp-content/plugins/w3-total-cache/lib/Minify/Minify/IgnoredCommentPreserver.php on line 42PHP message: PHP Warning: stristr(): Empty needle in /var/www/vhosts/…/httpdocs/wp-content/plugins/w3-total-cache/lib/Minify/Minify/IgnoredCommentPreserver.php on line 42PHP message: PHP Warning: stristr(): Empty needle in /var/www/vhosts/…/httpdocs/wp-content/plugins/w3-total-cache/lib/Minify/Minify/IgnoredCommentPreserver.php on line 42PHP message: PHP Warning: stristr(): Empty needle in /var/www/vhosts/…/httpdocs/wp-content/plugins/w3-total-cache/lib/Minify/Minify/IgnoredCommentPreserver.php on line 42PHP message: PHP Warning: stristr(): Empty needle in /var/www/vhosts/…/httpdocs/wp-content/plugins/w3-total-cache/lib/Minify/Minify/IgnoredCommentPreserver.php on line 42’

I have HTML Minify enable and I am not using other plugin to minify, please what should be the cause and fix of the error?

Thanks

Ignore cache jQuery,

Are css and JS embed location still available?

$
0
0

Replies: 1

ON my sites I noticed that the order for embed css and JS location stopped working.
I placed in the footer <!– W3TC-include-css –> , but it loads exact after <html> tag

W3TC option grayed out

$
0
0

Replies: 1

Let me start by saying I’ve read all of the redis posts in this forum and have followed the instructions in the FAQ and yet the redis option is still grayed out.

(BTW, the FAQ shows two colons between the host and port, I expect it should only be one)

I’ve created an instance of Azure Redis which I’m attempting to use. I’ve enabled it to allow non-SSL connections on 6379.

The db-config.php file in the /wp-contnet/plugins/w3-total-cache.ini folder contains:

define( ‘W3TC_CONFIG_CACHE_ENGINE’, ‘redis’);
define( ‘W3TC_CONFIG_CACHE_REDIS_SERVERS’, ‘my-redist-host-fqdn:6379’ );
define( ‘W3TC_CONFIG_CACHE_REDIS_PERSISTENT’, true );
define( ‘W3TC_CONFIG_CACHE_REDIS_DBID’, 0 );
define( ‘W3TC_CONFIG_CACHE_REDIS_PASSWORD’, ‘my-actual-password’ );

From an SSH console I executed: curl -v telnet://my-redist-host-fqdn:6379 and the connection succeeded.

I tried deactivating/activating the plugin and even tried two colons between the host and port, and yet the redis option remains grayed out for both page cache and object cache.

What am I missing?


Expires header lifetime does not stick

$
0
0

Replies: 1

Hi,
We have set the CSS & JS Expires header lifetime to 2592000
We clear the cache

On first visit, GTMERIX reports A (90) for Leverage browser caching
Then we redo the report right away, and GTMERIX reports F (0) for Leverage browser caching

Reporting that we are back to 17 hours 5 minutes

Any clue?
Thanks

attachment-sitemap1.xml/_index_ssl.xml_old

$
0
0

Replies: 1

Hi

Wordfence is flagging this as malicious / critical: wp-content/cache/page_enhanced/www.mysite.co.uk/attachment-sitemap1.xml/_index_ssl.xml_old

Can this be ignored?

Thank you
Keith

Failed to load resource error in conjunction with autoptimize

$
0
0

Replies: 1

I have already resolved this issue, but I wanted to bring it to your attention in case you have another / better solution.

We recently switched hosts and shortly after started getting the following errors in relation to my autoptimize files:

Failed to load resource: the server responded with a status of 403 ()

Refused to apply style from ‘https://emriver.com/wp-content/cache/autoptimize/css/autoptimize_37c952cdd3200b0518a7dfc174ae1bfe.css’ because its MIME type (‘text/html’) is not a supported stylesheet MIME type, and strict MIME checking is enabled.

I’ve seen this error in the past when enabling or disabling plugins and it was usually resolved by clearing my cache, via W3 Total Cache. But clearing the cache no longer seems to be working. I thought it might be related to my browser cache, but clearing my browser cache also did not resolve the issue.

Solution:

We were able to fix the problem by removing these lines from our htaccess file:

# RewriteCond “%{DOCUMENT_ROOT}/wp-content/cache/page_enhanced/%{HTTP_HOST}/%{REQUEST_URI}/_index%{ENV:W3TC_SSL}%{ENV:W3TC_PREVIEW}.html%{ENV:W3TC_ENC}” -f
# RewriteRule .* “/wp-content/cache/page_enhanced/%{HTTP_HOST}/%{REQUEST_URI}/_index%{ENV:W3TC_SSL}%{ENV:W3TC_PREVIEW}.html%{ENV:W3TC_ENC}” [L]

Please let me know your thoughts on this issue and if there might be something else going on that I missed.

  • This topic was modified 4 hours, 23 minutes ago by partynoparty.

Updated & Saved W3 Cache settings and now cannot access site!

$
0
0

Replies: 0

I am an amateur at troubleshooting, and was looking to improve the load time of the site by ensuring my plugin settings were where they should be. I turned on a setting, hit save & purge cache (as I don’t think the latter has ever been done for the site). It reported an error, and I can no longer log in to the backend, and received this message “There has been a critical error on your website. Please check your site admin email inbox for instructions.” I don’t necessarily have access to this email, but use a different login. Help! I have no idea where to go from here. Thank you!

  • This topic was modified 17 hours, 34 minutes ago by charlsimps. Reason: added error message and new tag

New media uploads to WP not copying to S3 CDN

$
0
0

Replies: 0

I’ve got my CDN setup with S3 and successfully used W3TC to copy the uploads directory to S3, but it seems that NEW files uploaded via the WordPress dashboard are not getting copied over to S3.

Here are my “Advanced” settings:
Only purge CDN manually – Checked
Disable CDN on SSL pages – Unchecked
Use CDN links for the Media Library on admin pages – Unchecked
Add CORS header – Checked
Disable CDN for the following roles – Unchecked
Disable CDN on the following pages: empty
Automatically upload minify files – Checked (unable to change)
Export changed files automatically – Checked
Auto upload interval: 60 seconds
Re-transfer cycle interval: 60seconds
Re-transfer cycle limit: 100
wp-includes file types to upload: *.css;*.js;*.gif;*.png;*.jpg;*.xml

Theme file types to upload: *.css;*.js;*.gif;*.png;*.jpg;*.ico;*.ttf;*.otf,*.woff,*.less

File types to import: empty

Custom file list: {wp_content_dir}/uploads/avatars/*
{plugins_dir}/wordpress-seo/css/xml-sitemap.xsl
{wp_content_dir}/custom/OLD-images/*
{plugins_dir}/wp-minify/min*

Rejected user agents: empty
Rejected files:{uploads_dir}/wpcf7_captcha/*
{uploads_dir}/imagerotator.swf
{plugins_dir}/wp-fb-autoconnect/facebook-platform/channel.html
{wp_content_dir}/custom/OLD-images/*.mp4
{wp_content_dir}/custom/OLD-images/*.wmv
{wp_content_dir}/custom/OLD-images/*.avi

Set cookie domain to “domain.com” – Unchecked (although, I’ve tried enabling this several times, but after saving and page reload, it is unchecked).

I had assumed that the media files would be automatically uploaded to S3 immediately following upload to the WordPress dashboard, but that doesn’t seem to be happening. Also, if “Auto upload interval” does what I would expect it does (automatically checks for new media files and uploads them to S3), then that does not appear to be working correctly.

Viewing all 19291 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>