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

redis after v 2.7.2 update

$
0
0

Replies: 0

Hi, after 2.7.2 update I get:

Allowed memory size of 536870912 bytes exhausted (tried to allocate 83886080 bytes) in …/plugins/w3-total-cache/Cache_Redis.php on line 148

Rolled back to 2.7.1 with no error after

php version 8, page cache: disk enhaced, db cache redis, aws ec2

Best


Issue with W3 Total Cache Database Configuration (server becomes unhealthy)

$
0
0

Replies: 1

Dear Support Team,

We have recently started using the W3 Total Cache plugin and are planning to leverage it for multiple purposes, including:

  1. Caching using Redis (on AWS)
  2. Image serving using CDN and S3
  3. Potentially exploring minification in the future (though this is not a current priority).

During our testing, we encountered an issue when using the following configuration in wp-config.php:

define('W3TC_CONFIG_DATABASE', true);

We are experiencing database connection request timeouts in the Apache error log and it makes Instances unhealthy. Additionally, we sometimes see errors such as:

[Thu May 30 21:54:17.642465 2024] [php:error] [pid 31218] [client 192.168.56.208:46768] PHP Fatal error: Uncaught TypeError: mysqli_num_fields(): Argument #1 ($result) must be of type mysqli_result, bool given in /var/www/html/wp-includes/class-wpdb.php:3819
Stack trace:
#0 /var/www/html/wp-includes/class-wpdb.php(3819): mysqli_num_fields()
#1 /var/www/html/wp-includes/class-wpdb.php(786): wpdb->load_col_info()
#2 /var/www/html/wp-content/plugins/w3-total-cache/DbCache_WpdbInjection_QueryCaching.php(218): wpdb->__get()
#3 /var/www/html/wp-content/plugins/w3-total-cache/DbCache_WpdbNew.php(122): W3TC\DbCache_WpdbInjection_QueryCaching->query()
#4 /var/www/html/wp-includes/class-wpdb.php(3099): W3TC\DbCache_WpdbNew->query()
#5 /var/www/html/wp-content/plugins/wordfence/lib/wfConfig.php(292): wpdb->get_results()
#6 /var/www/html/wp-content/plugins/wordfence/lib/wfConfig.php(369): wfConfig::loadAllOptions()
#7 /var/www/html/wp-content/plugins/wordfence/lib/wfConfig.php(529): wfConfig::hasCachedOption()
#8 /var/www/html/wp-content/plugins/wordfence/lib/wfCredentialsController.php(12): wfConfig::get()
#9 /var/www/html/wp-content/plugins/wordfence/lib/wfCredentialsController.php(16): wfCredentialsController::allowLegacy2FA()
#10 /var/www/html/wp-content/plugins/wordfence/lib/wordfenceClass.php(48): wfCredentialsController::useLegacy2FA()
#11 /var/www/html/wp-content/plugins/wordfence/wordfence.php(118): require_once('/var/www/html/w…')
#12 /var/www/html/wp-settings.php(453): include_once('/var/www/html/w…')
#13 /var/www/html/wp-config.php(108): require_once('/var/www/html/w…')
#14 /var/www/html/wp-load.php(50): require_once('/var/www/html/w…')
#15 /var/www/html/healthcheck.php(2): require('/var/www/html/w…')
#16 {main}
thrown in /var/www/html/wp-includes/class-wpdb.php on line 3819

We are currently in the UAT stage and plan to move to production soon. Our instances are part of an autoscaling group, which includes multiple instances.

Could you please help us understand if there is any alternative way to save our settings in the database rather than on the server?
This seems necessary for the configurations to be replicated across new instances scaled by Autoscaling. When we set define('W3TC_CONFIG_DATABASE', false);, we do not encounter any issues, but without setting it to true, our configurations do not save in the database and fail to replicate to new servers.

Thank you for your assistance.

Request failed when uploading to CDN

$
0
0

Replies: 0

Hey there. I’ve been using W3 Total Cache for years but have recently (since a few months ago) not been able to upload directly to S3 when using the “Upload” buttons on the CDN settings page.

When I test the configuration, it passes. The test passes with both Amazon CloudFront Over S3 (what I always use), and with S3 Compatible, but the manual button and cron-scheduled uploading doesn’t. From what I see in the browser console, the status code is showing 🔴 403 Forbidden.

I’m thinking it might be a CORS policy issue, but I have never changed anything with my server (Nginx), website settings, or AWS. Images uploaded in the MEDIA section or in posts seems to upload to S3/Cloudfront just fine. As for the “Unsuccessful transfer queue” — it doesn’t automatically upload, but I can manually send the files to the CDN just fine.

It’s been several months but I just ignored it at the time because I didn’t need to upload files due to not adding more plugins. But now that I’ve added more plugins, things are starting to break as W3 Total Cache tries to serve files where they don’t exist, since they don’t get uploaded.

Any guidance as to what the problem might be would be helpful! Thank you.

  • This topic was modified 5 hours, 2 minutes ago by Tecca.

グローバルナビが展開されない

$
0
0

Replies: 0

W3 Total Cacheをバージョンアップ(バージョン 2.7.2)したら、トップページのグローバルナビが展開されなくなりました。展開できるようご教示いただけますでしょうか?宜しくお願い申し上げます。

It does not show the product page on speed measurement

$
0
0

Replies: 3

Hello, I installed w3tc and when measuring page speed on gtmetrix or google pagespeed something is wrong. I put a link of one product, and on the gtmetrix or pagespeed image you can see the image with all the products. Why does this happen, and does it affect the site’s ranking? Image from gtmetrix.
Thank you in advance.

https://i.postimg.cc/zfBznb9W/gtmetrix.jpg

[url=https://postimg.cc/QF2ZDtNx][img]https://i.postimg.cc/zfBznb9W/gtmetrix.jpg[/img][/url]

  • This topic was modified 18 hours, 56 minutes ago by d1g1.

Unable to optimize images

$
0
0

Replies: 1

HI,
I installed the plugin and after setting it I am now trying to optimize the images with the integrated function.
Unfortunately, every time I try to convert an image it gives me the message “Failed to retrieve a response. Please reload the page to try again”.

I’ve tried several times but since this morning it doesn’t seem to resolve itself.
Does it depend on some of my settings? Or is there a service overhead?

Problem with memcached and SASL authentication

$
0
0

Replies: 1

Hello, we’ve recently moved our website to a new hosting

The new hosting has the same configuration of the older but, on this one, memcached needs SASL authentication

Currently we see this error

The following memcached servers are not responding or not running:

    Database Cache: 127.0.0.1:11211.
    Object Cache: 127.0.0.1:11211.

This message will automatically disappear once the issue is resolved.

But when adding the SASL authentication the warning won’t disappear and the site becomes really slow

The weird thing if we do a basic connection directly with PHP, it works

<?php
    // Connection
    $m = new Memcached('test_pool');
    $m->addServer('127.0.0.1', 11211);

    // Add configuration
    $m->setOption(Memcached::OPT_BINARY_PROTOCOL, true);
    $m->setSaslAuthData("#", "#");

    // Get stats
    echo '<pre>';
    print_r($m->getStats());
    echo '</pre>';

    $m->set('test', 'this is a test');

    var_dump($m->get('test'));
?>

Is anything we may be missing?

Server is on PHP 7.4 as the website is old and can’t update right now, W3C Total Cache is on the last version available

Thanks for your help

Error in Admin UI and logs

$
0
0

Replies: 2

I’m seeing the following error in my Admin panel and in the wordpress logs with the latest wordpress 6.5.4 and W3 Total Cache plugin 2.7.2.

​

component: "Plugin: w3-total-cache"

​

file: "wp-content/plugins/w3-total-cache/PgCache_Plugin_Admin.php"

​

key: "f7642cb1d1e2dd52131711e39f83c489"

​

line: 352

​

message: 'Undefined array key "php_requests_v"'

​

stack: Array(8) [ "WPForms\\ErrorHandler->error_handler()", "W3TC\\PgCache_Plugin_Admin->w3tc_usage_statistics_summary_from_history()", "apply_filters('w3tc_usage_statistics_summary_from_history')", … ]

​​

0: "WPForms\\ErrorHandler->error_handler()"

​​

1: "W3TC\\PgCache_Plugin_Admin->w3tc_usage_statistics_summary_from_history()"

​​

2: "apply_filters('w3tc_usage_statistics_summary_from_history')"

​​

3: "W3TC\\UsageStatistics_StorageReader->get_history_summary()"

​​

4: "W3TC\\UsageStatistics_Plugin_Admin->w3tc_ajax_ustats_get()"

​​

5: "do_action('w3tc_ajax_ustats_get')"

​​

6: "W3TC\\Generic_Plugin_Admin->wp_ajax_w3tc_ajax()"

​​

7: "do_action('wp_ajax_w3tc_ajax')"

​​

length: 8

Images not expanding

$
0
0

Replies: 2

Hi, after installing and enabling W3 Total Cache we noticed that images on blog posts do not expand at click.

We are using standard gutemberg builder, images are set up to expand at click (you can see the square icon on top-righ image corner) but after the first use the image is cached and this not works anymore.

W3TC not setting cache-control header on some files

$
0
0

Replies: 1

Hi @vmarko, been banging my head against the brick wall trying to figure out why W3TC is not setting cache-control header on certain files. For example, see https://swansislandcompany.com/wp-includes/js/zxcvbn.min.js. When I check this file in Chrome developer tools, I can see there’s no cache-control header. But W3TC is configured to add this header to .js files. Here’s the relevant block of code in the nginx.conf file created by W3TC:

location ~ \.(css|htc|less|js|js2|js3|js4)$ {
expires 31536000s;
etag on;
if_modified_since exact;
add_header Pragma "public";
add_header Cache-Control "public";
add_header Referrer-Policy "no-referrer-when-downgrade";
try_files $uri $uri/ /index.php?$args;
}

I’ve checked my nginx config files and there’s no conflicting cache-control directives that I can find anywhere.

What could be the problem here? Thank you.

WordPress caught an error with one of your plugins, W3 Total Cache.

$
0
0

Replies: 2

Hi !

Today wordpress sent me this email.

Is there anything I am supposed to do with W3TC? The site doesn’t seem that disturbed.

Thank you

WordPress has a built-in feature that detects when a plugin or theme causes a fatal error on your site, and notifies you with this automated email.

In this case, WordPress caught an error with one of your plugins, W3 Total Cache.

First, visit your website….

Please contact your host for assistance with investigating this issue further.

…..

When seeking help with this issue, you may be asked for some of the following information:
WordPress version 6.4.4
Current plugin: W3 Total Cache (version 2.7.2)
PHP version 8.1.23

Error Details
=============
An error of type E_ERROR was caused in line 137 of the file /home/mysite/www/wp-content/plugins/w3-total-cache/UserExperience_Remove_CssJs_Page_View.php. Error message: Uncaught TypeError: Cannot access offset of type string on string in /home/mysite/www/wp-content/plugins/w3-total-cache/UserExperience_Remove_CssJs_Page_View.php:137
Stack trace:
#0 /home/mysite/www/wp-content/plugins/w3-total-cache/UserExperience_Remove_CssJs_Extension.php(179): include()
#1 /home/mysite/www/wp-includes/class-wp-hook.php(324): W3TC\UserExperience_Remove_CssJs_Extension->w3tc_userexperience_page(”)
#2 /home/mysite/www/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(”, Array)
#3 /home/mysite/www/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#4 /home/mysite/www/wp-content/plugins/w3-total-cache/UserExperience_Page_View.php(22): do_action(‘w3tc_userexperi…’)
#5 /home/mysite/www/wp-content/plugins/w3-total-cache/UserExperience_Page.php(7): include(‘/home/mysite/…’)
#6 /home/mysite/www/wp-content/plugins/w3-total-cache/UserExperience_Plugin_Admin.php(89): W3TC\UserExperience_Page->render_content()
#7 /home/mysite/www/wp-includes/class-wp-hook.php(324): W3TC\UserExperience_Plugin_Admin->w3tc_settings_page_w3tc_userexperience(”)
#8 /home/mysite/www/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(”, Array)
#9 /home/mysite/www/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#10 /home/mysite/www/wp-content/plugins/w3-total-cache/Root_AdminMenu.php(312): do_action(‘w3tc_settings_p…’)
#11 /home/mysite/www/wp-includes/class-wp-hook.php(324): W3TC\Root_AdminMenu->options(”)
#12 /home/mysite/www/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(”, Array)
#13 /home/mysite/www/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#14 /home/mysite/www/wp-admin/admin.php(259): do_action(‘performance_pag…’)
#15 {main}
  thrown

Never cache pages on multilingual sites

$
0
0

Replies: 2

I’m using the option to not cache some pages, I put this page: membership-join talking about this page how can I place all the pages of other languages, for example: /en/membership-join, /fr/membership-join, etc..

Thanks

Backblaze CDN can’t connect

Very strange issue with cleared settings

$
0
0

Replies: 2

I have very strange issue with the settings of W3 Total Cache

After I change setting at Page Cache -> Adding some pages to clear cache after new article all settings of W3 Total Cache are cleared and I need to start configuring it from scratch

Any ideas what can cause this?

W3 possible lazy load conflict

$
0
0

Replies: 0

Hello,

I installed W3 Total Cache and immediately the header of my website was stretching out and it seemed as though the mobile view was trying to load the desktop view. My website also began to load very slow. So I upon further research it seems that the lazy load feature may have conflicted with the Smush lazy load feature. So I deleted both plugins and restored to earlier version of my website. Unfortunately the issues still remain.

My hosting have no clue how to fix it, I tried installing a different cache plugin but that also now causes it. Elementor support say it looks like a bug that they will get their devs to check, but I should also seek support from W3 Total Cache about what may have gone wrong.

Any ideas at all?

Also just to add, MonstersInsights now has problems loading in my dashboard and states that there is a problem running Javascript on the site.

Many thanks in advance,

Caroline

  • This topic was modified 14 hours, 26 minutes ago by carolinet24.

Slow AJAX Requests

$
0
0

Replies: 0

We’re having an issue with a client’s site where a WP AJAX request is returning the JSON response extremely slowly when W3 is enabled (around 20 seconds). When W3 is deactivated and cache folder deleted, it then takes less than 1 second.

We have tried disabling all the options under W3’s general settings which doesn’t fix the issue, which implies that W3 is still processing things even when all options are disabled, and cache has been fully purged.

It appears to be related to the JSON response including img tags, as when those are removed from the JSON then the response time is quick, even with W3 enabled. As far as we are aware, the only thing in W3 that would effect img tags would be lazy-loading but that’s disabled on our site.

There has been a critical error on this website.

$
0
0

Replies: 1

A few days after the update, the following message appears:

Fatal error: Uncaught Error: Call to undefined function mysqli_report() in /home4/mechgw/public_html/wp-includes/class-wpdb.php:1963 Stack trace: #0 /home4/mechgw/public_html/wp-content/plugins/w3-total-cache/DbCache_WpdbNew.php(100): wpdb->db_connect() #1 /home4/mechgw/public_html/wp-includes/class-wpdb.php(767): W3TC\DbCache_WpdbNew->db_connect() #2 /home4/mechgw/public_html/wp-content/plugins/w3-total-cache/DbCache_WpdbNew.php(221): wpdb->__construct() #3 /home4/mechgw/public_html/wp-content/plugins/w3-total-cache/DbCache_WpdbInjection.php(38): W3TC\DbCache_WpdbNew->default_initialize() #4 /home4/mechgw/public_html/wp-content/plugins/w3-total-cache/DbCache_WpdbNew.php(107): W3TC\DbCache_WpdbInjection->initialize() #5 /home4/mechgw/public_html/wp-content/plugins/w3-total-cache/DbCache_WpdbNew.php(374): W3TC\DbCache_WpdbNew->initialize() #6 /home4/mechgw/public_html/wp-content/plugins/w3-total-cache/DbCache_WpdbInjection_QueryCaching.php(294): W3TC\_CallUnderlying->initialize() #7 /home4/mechgw/public_html/wp-content/plugins/w3-total-cache/DbCache_WpdbNew.php(107): W3TC\DbCache_WpdbInjection_QueryCaching->initialize() #8 /home4/mechgw/public_html/wp-content/plugins/w3-total-cache/DbCache_Wpdb.php(53): W3TC\DbCache_WpdbNew->initialize() #9 /home4/mechgw/public_html/wp-content/db.php(81): W3TC\DbCache_Wpdb::instance() #10 /home4/mechgw/public_html/wp-includes/load.php(675): require_once(‘/home4/mechgw/p…’) #11 /home4/mechgw/public_html/wp-settings.php(131): require_wp_db() #12 /home4/mechgw/public_html/wp-config.php(96): require_once(‘/home4/mechgw/p…’) #13 /home4/mechgw/public_html/wp-load.php(50): require_once(‘/home4/mechgw/p…’) #14 /home4/mechgw/public_html/wp-blog-header.php(13): require_once(‘/home4/mechgw/p…’) #15 /home4/mechgw/public_html/index.php(17): require(‘/home4/mechgw/p…’) #16 {main} thrown in /home4/mechgw/public_html/wp-includes/class-wpdb.php on line 1963

Can anyone help me with this?

i have problem with statistic plugin

$
0
0

Replies: 1

i have problem with statistic plugin, is there metod to disable cache from this plugin and how i can do it

Cache Not Auto Priming

$
0
0

Replies: 0

I am using the free plugin for W3 Total Cache on a development server without a domain name, ie http no SSL.

I have the bare minimum of plugins including Yoast, W3, Advanced Custom Fields and Custom Post Type UI field editor

All up to date, therefore Yoast sitemap which I am using, doesn’t have a priority column.

Despite my settings, my W3 plugin does not appear to be auto priming the page cache:

  • WordPress on Nginx
  • Using disk enhanced for page cache,
  • Defining both a home sitemap_index and a post specific sitemap index, neither get primed unless I visit the page myself.
  • Only specifying one sitemap, as in above, either or.
  • I am expecting and checking to find the pages under /wp-content/cache/page_enhanced/{domain}/

Am I right in assuming that either the Yoast sitemap, or the fact I am running a server ip without Https , is the cause here?

  • This topic was modified 2 hours, 30 minutes ago by mburdett555. Reason: Made it clear I'm not adding multiple sitemaps in the sitemap field

BuddyBoss Platform Pro v2.5.40 Conflict with W3TC

$
0
0

Replies: 1

Hi Guys

I use the BuddyBoss Platform Pro Plugin (BBPRO), they recently released a new version 2.5.40 that is now in conflict with the CDN Testing process in W3TC.

When I run the “Test S3 upload & CloudFront distribution” button in the CDN settings I get “Test Failed” and see the following errors in my debug.log.

PHP Fatal error: Uncaught Error: Call to undefined function GuzzleHttp\Promise\promise_for() in /wp-content/plugins/w3-total-cache/vendor/aws/aws-sdk-php/src/Credentials/CredentialProvider.php:158

Stack trace:

#0 /wp-content/plugins/w3-total-cache/vendor/aws/aws-sdk-php/src/ClientResolver.php(443): Aws\Credentials\CredentialProvider::fromCredentials()

#1 /wp-content/plugins/w3-total-cache/vendor/aws/aws-sdk-php/src/ClientResolver.php(323): Aws\ClientResolver::_apply_credentials()

#2 /wp-content/plugins/w3-total-cache/vendor/aws/aws-sdk-php/src/AwsClient.php(199): Aws\ClientResolver->resolve()

#3 /wp-content/plugins/w3-total-cache/CdnEngine_CloudFront.php(48): Aws\AwsClient->__construct()

#4 /wp-content/plugins/w3-total-cache/CdnEngine_CloudFront.php(205): W3TC\CdnEngine_CloudFront->_init()

#5 /wp-content/plugins/w3-total-cache/Cdn_AdminActions.php(428): W3TC\CdnEngine_CloudFront->test()

#6 /wp-content/plugins/w3-total-cache/Root_AdminActions.php(25): W3TC\Cdn_AdminActions->w3tc_cdn_test()

#7 /wp-content/plugins/w3-total-cache/Generic_Plugin_Admin.php(139): W3TC\Root_AdminActions->execute()

#8 /wp-includes/class-wp-hook.php(324): W3TC\Generic_Plugin_Admin->load()

#9 /wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()

#10 /wp-includes/plugin.php(517): WP_Hook->do_action()

#11 /wp-admin/admin.php(237): do_action()

#12 {main}

thrown in /wp-content/plugins/w3-total-cache/vendor/aws/aws-sdk-php/src/Credentials/CredentialProvider.php on line 158

If I revert the BBPRO plugin back to the previous version (2.5.30), there is no more error. If I deactivate the BBPRO plugin, there is no error.

This is what BBPRO said in their latest Change log.

2.5.40

  • Enhancement: Core – We have added a new namespace (BuddyBossPlatformPro) in the composer library (vendor folder) so if existing plugins use the same composer library, it will work fine with our new namespace
  • Bug: Activity – Read more link was showing an error in the main activity feed and group activity feed

Now, I’m not sure if this is a bug with BBPRO or if the issue lies with W3TC plugin.

Viewing all 19300 articles
Browse latest View live