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

Programmatically add cookies to cookie group

$
0
0

Replies: 1

Hi,

Is there a way to programmatically add cookies to an existing cookie group? Perhaps a function that can be used?

While the Cookie Groups option solve the problem I have with pop-ups that are designed to set a cookie when dismissed, the ‘problem’s is that the pop-ups also have a dynamic cookie name which is often different, and it’s a bit of a pain to go and manually add it to a cookie group each time.

Thanks in advance.

  • This topic was modified 3 hours, 8 minutes ago by Michael Ott.

site speed

$
0
0

Replies: 0

Hello . as i know W3 Total Cache plugin’s function is to increase and improve website performance. i have Cloudflare activated on my website do i need this plugin too? and how to use it. do i need to just install plugin. or do i need to optimize some stuff manually after installing and what ?
thanks everyone in advance

Trying to access array offset on value of type null

$
0
0

Replies: 6

Hi, I upgraded PHP to 7.4.5 and suddenly i get this error which I haven’t seen before.

Notice: Trying to access array offset on value of type null in plugins/w3-total-cache/Util_Environment.php on line 187

I’ve tried to look up a solution online but couldn’t find one. Why is this happening? Has it anything to do with the php version or is it related to something else? Would be really grateful for a response.

Error facebook sharing

$
0
0

Replies: 1

Hi folks,

facebook sharing is not working properly. The tag og:image isn’t recognized.

We tried the option Rejected user agents in Advanced Page Cache and User Agent Groups too:
facebookexternalhit
facebookexternalhit/1.1
facebookexternalhit/1.0

But, not working.
If we disable minify option, works fine.

Warning error for W3TC in Ads Plugin

$
0
0

Replies: 0

Hi, I am using “Ads for WP – Advanced Ads & Adsense Solution for WP & AMP
By Magazine3” for displaying ads.

I am trying to use “user targeting” to display ads at separate locations on the desktop & mobile.

But I got this warning message:

Warning: You are using WP3 Total Cache plugin, if you want User Targeting for ‘Device Type’ to work perfectly we recommend you to enable Mobile Support of your cache plugin.

Do I have to worry about this?
How can I enable the “Mobile Support” option?

Purge W3TC after cPanel Cron job

$
0
0

Replies: 1

Article scheduling stopped working for me and wordpress listed a Missed Shedule error, so I turned off WordPress Cron jobs via wp-config.php and created a Cron job on the server via cPanel. It works, but now the W3TC does not know that the scheduled article has been published and will not clear the cache after its publication, which means that it will not be displayed immediately to the unlogged users (before I used WordPress Cron job and it worked ok, W3TC deleted the cache and the article was displayed immediately).
Please do you have a solution? Run clearing cache at the exact time, or add another task to cPanel Cron jobs? thank you

W3TC is breaking my website with HTML minification

$
0
0

Replies: 0

Hello! This is indeed a great plugin. I want a help from you guys, my problem is when I enable HTML minification, it breaks my website’s design. Below I have kept the screenshots of the settings and its output.

https://ibb.co/k5Y974G – W3TC Settings

https://ibb.co/DDJRHLW – Output

The original output looks like this

https://ibb.co/thzyzZp

Thanks!

Enqueue CSS and JS

$
0
0

Replies: 1

How to enqueue this CSS and JS file

I am replacing all enqueued plugins and themes url with my cdn url

/wp-content/cache/minify/2b2cc.css
/wp-content/cache/minify/defbc.css
/wp-content/cache/minify/ef833.js


.htaccess not being updated with new settings even if write enabled

$
0
0

Replies: 2

we have w3 total cache setup on our staging and production sites. I noticed on our production site that even if the compatibility tool says we could write into the .htaccess file, which w3 total cache did during initial install, any future settings changes don’t get applied to the .htaccess file. only wp-content/w3tc-config/master.php gets updated. I don’t have an issue in staging with this so what i do right now is i update and test in staging, then copy the .htaccess file changes from staging to production.

What neccessary settings or modules do i need to get this functioning properly?

thanks

[NSFW] Wrong display for tablet or desktop

$
0
0

Replies: 0

Hello, when I activate the W3 settings I have problems with my retrotube theme by wp-script. This shows the mobile or tablet version of the theme, instead of desktop.
I previously had wp-rocket installed and had the same problem. But it was solved with this plugin: https://docs.wp-rocket.me/article/140-wrong-display-mobile-tablet-desktop

Now I don’t know how to solve it with W3. Can you help me please?

Minified CSS/JS files are not served via Generic Mirror CDN

$
0
0

Replies: 6

Hi,
I have configured a Generic Mirror CDN to host static files(like photos/CSS/JS) from my site. And it works for photos and some of the static files.

However, the minified CSS/JS files are being 301 redirect to the source host.
Looks like:
visit cdn.domain.com/wp-content/cache/minify/6ce94.css,
it will be 301 redirect to http://www.domain.com/wp-content/cache/minify/6ce94.css

Only this folder has the problem. I put a test file (1.js) in the root folder, and it works fine.

The options in my W3 total cache are:
CDN: Enable
CDN Type: Generic Mirror
Host minified CSS and JS files: Enable
Minify: Enable
Rewrite URL structure: Enable

How could I solve this?
Thanks for helping.

Cloudfare extension has old domain, can’t update

$
0
0

Replies: 1

I changed my website domain name and moved it to a new server. All is working well except W3TC cannot communicate with Cloudfare giving messages like

Failed to purge CloudFlare cache: Authentication error

The Cloudfare extension shows the wrong zone, it shows my old domain. I try to reauthorize, but I am not given the option of changing the domain name, only the API key.

How can I fix this?

I have deactivated, deleted (all files) and reinstalled W3TC but the settings somehow remain.

  • This topic was modified 9 hours, 15 minutes ago by mazunga.

Issue with wp-db.php

$
0
0

Replies: 0

Hi,

I have the following issue: All my not logged in visitors get to see this error message:

Warning: mysqli_num_fields() expects parameter 1 to be mysqli_result, bool given in /homepages/7/d249885565/htdocs/XXXXXXXXXX.com/wp-includes/wp-db.php on line 3351

Logged in users don’t get the error message.

As soon as I deactivate W3’s database cache, the error message disappears. But hence, I can’t use the database cache anymore.
Probably important: I recently updated MySQL to the newest version. Hence, my db definitely changed and I’m pretty sure that the issue didn’t happend before the MySQL update.
Question: I’m a total amateur, so… You can see this number “d249885565” in the error message/link. Is that supposed to be the db number? Because it isn’t. Did that number not update when I created a whole new database? Do I have to/can I fix this manually by just changing the numbers?

——-

I by the way also have a problem with W3’s minifying HTML & XML: That issue happened like two years ago already (circa). As soon as I enable minifying HTML & XML, every single site of my website turns blank. No error message, nothing. There was another thread regarding this issue and I was not the only one. We were told it’ll be fixed in the next version, but until today: no chance on activating this.

I also read the very same about my newest database cache issue: “Will be fixed in the next version.”
So I hope there’s a solution for it. Other than that, I’m very happy with this amazing plugin. Thanks in advance. Stay healthy and have a nice day.

  • This topic was modified 16 hours, 20 minutes ago by Kenika.

Issues when publishing elementor pages

$
0
0

Replies: 0

Hello,

I have been using w3 total cache for over a year now and have been having this issue but just been dealing with it.

So when I go and edit a wordpress page using elementor, it loads fine. When I have then done my changes and click publish and then view the page, the page loads but is broken as it doesn’t look correct and the styling is off. To solve this, I just purge all cache and then the page loads fine.

Would love to know what is causing this issue.

*I am not using minify

Thanks in advance

Kind Regards
Thomas

  • This topic was modified 14 hours, 7 minutes ago by thomasboulle.

W3TC & Cache Enable Conflict Issue – Webp?

$
0
0

Replies: 0

Hi,
I tested “Webp express” plugin to convert all my images to webp on a local site.

and I wanted to use the “cached version WebP image support” of “Cache Enabler” Plugin to improve the loading time.

I have a question,
Does using “Cache Enabler” with W3TC cause any conflict?

Here is a screenshot of the settings of “cache enabler” plugin,
https://ibb.co/9tg3gMf

Everything is at default options, and what I am concerned about is the cache expiry time, because even if keep it as default, it might be set to “0” right?

  • This topic was modified 13 hours, 16 minutes ago by qph9697.

How can I create a custom Rewrite Structure

4 requests additional being made after activating W3TC

$
0
0

Replies: 0

Hey there! I’m having an issue. I’m wondering if it’s something that’s natural or I really need to worry about. When I checked my site on GTMetrix with W3TC deactivated, this is the result:
https://postimg.cc/rKK9yqPx

And when I checked my site on GTMetrix with W3TC activated (Just activated, configured nothing), this is the result:
https://postimg.cc/xJ6KYZG6

Can you please tell me if it is normal or not. And if not how to solve it?

W3 Total cache caches filters

$
0
0

Replies: 0

Hello,

I am experiencing an issue where after enabling W3 Total Cache for my website, the filters are being cached.

For example I am browsing some products, doing some filters etc then I move to another page with different products clicks one filter and the filters from previous page comes up (they are not even related to the current page products e.g. page with earings displays filters for bracelets and vice versa)

I am using WOOF – Products Filter for WooCommerce as a filter plugin.
https://pl.wordpress.org/plugins/woocommerce-products-filter/

Moreover, I tried the solution from:
https://docs.woocommerce.com/document/woocommerce-product-search/faq/
“Filters and issues with widgets using W3 Total Cache”
I did not help me.

Regards,
Łukasz Włodkowski

“Never cache pages that use these custom fields”

$
0
0

Replies: 0

Does this option require using name-value pairs? Like, can’t I just have it exclude pages that have certain custom field, regardless of its value?

Optimize .HTACCESS for Minified Script AH00125 AH00121 Apache Debug Mode

$
0
0

Replies: 0

Hello i’am implemented the original .htacces’s W3TC Configuration for more than 7 month.

# BEGIN W3TC Minify cache
<IfModule mod_mime.c>
    AddType text/css .css_gzip
    AddEncoding gzip .css_gzip
    AddType application/x-javascript .js_gzip
    AddEncoding gzip .js_gzip
</IfModule>
<IfModule mod_deflate.c>
    <IfModule mod_setenvif.c>
        SetEnvIfNoCase Request_URI \.css_gzip$ no-gzip
        SetEnvIfNoCase Request_URI \.js_gzip$ no-gzip
    </IfModule>
</IfModule>
<IfModule mod_expires.c>
    ExpiresActive On
    ExpiresByType text/css M10713600
    ExpiresByType application/x-javascript M10713600
</IfModule>
<IfModule mod_headers.c>
    Header set Vary "Accept-Encoding"
</IfModule>
# END W3TC Minify cache
# BEGIN W3TC Minify core
<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /wp-content/cache/minify/
    RewriteCond %{HTTP:Accept-Encoding} gzip
    RewriteRule .* - [E=APPEND_EXT:_gzip]
    RewriteCond %{REQUEST_FILENAME}%{ENV:APPEND_EXT} -F
    RewriteRule (.*) $1%{ENV:APPEND_EXT} [L]
    RewriteRule ^(.+\.(css|js))$ /index.php [L]
</IfModule>
# END W3TC Minify core

After i move to unmanaged VPS, i found this configuration make error

[Mon May 18 00:10:15.806084 2020] [core:error] [pid 28361] [client 114.125.100.87:52499] AH00125: Request exceeded the limit of 10 subrequest nesting levels due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace., referer: ...

Then i set to LogLevel debug in httpd.conf
This problem come

[Mon May 18 03:54:08.450949 2020] [core:debug] [pid 5046] core.c(3848): [client 139.0.199.184:49631] AH00121: r->uri = /wp-content/script/gzip/xxxxxx.v1.min.js_gzip_gzip_gzip_gzip_gzip_gzip_gzip_gzip_gzip_gzip, referer: ~

I resolved the issue
Using this configuration

<IfModule mod_headers.c>
    # Serve gzip compressed CSS files if they exist 
    # and the client accepts gzip.
    RewriteCond "%{HTTP:Accept-encoding}" "gzip"
    RewriteCond "%{REQUEST_FILENAME}\.gz" -s
    RewriteRule "^(.*)\.css" "$1\.css\.gz" [QSA]

    # Serve gzip compressed JS files if they exist 
    # and the client accepts gzip.
    RewriteCond "%{HTTP:Accept-encoding}" "gzip"
    RewriteCond "%{REQUEST_FILENAME}\.gz" -s
    RewriteRule "^(.*)\.js" "$1\.js\.gz" [QSA]

    # Serve correct content types, and prevent mod_deflate double gzip.
    RewriteRule "\.css\.gz$" "-" [T=text/css,E=no-gzip:1]
    RewriteRule "\.js\.gz$" "-" [T=text/javascript,E=no-gzip:1]

    <FilesMatch "(\.js\.gz|\.css\.gz)$">
      # Serve correct encoding type.
      Header append Content-Encoding gzip

      # Force proxies to cache gzipped & 
      # non-gzipped css/js files separately.
      Header append Vary Accept-Encoding
    </FilesMatch>
</IfModule>

This script was created by Mattias Greniad, i test the script work in Apache 2.4
I just implemented the script for my custom per-compiled file using 7z software to create static .gz. The error resolved by its script.

Can w3TC, analyze the .htaccess script and also W3TC can make the plugin more compatible with other server management (i am using direct admin)

Thanks

Viewing all 19292 articles
Browse latest View live


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