Forum Replies Created

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter mwheelermindbox

    (@mwheelermindbox)

    I still get a 500 error when changing cdn.enabled to false and cdn.engine back to stackpath2, which are the only changes I made between the plaugin and site working and 500 errors on every page.

    Thread Starter mwheelermindbox

    (@mwheelermindbox)

    @vmarko Thanks for continuing to look into this. As mentioned nothing is being written to the error logs for reasons I have not been able to determine. The server is provisioned and managed by Trellis (roots.io/trellis) and error logs usually, but in my experience not always, work properly with that. It sure would be helpful in troubleshooting if I could get error logging to work….

    Since production is a series of load balanced servers the config does need to be stored in the database, but staging is a single server, so I can set that to use a file for config for debugging this problem. When I do that it looks like all my settings are writing to the w3tc-config/master.php file though I’m not sure how since I haven’t found them in the wp_options table. In any case, here’s what is written to master.php when I activate the plugin:

    https://gist.github.com/myquealer/0fa1dce0aafd254646762c5bc92355f3

    Activating the plugin throws a 500 error, as does every page until I force the plugin to be deactivated by renaming the w3-total-cache directory in the plugins directory.

    Thread Starter mwheelermindbox

    (@mwheelermindbox)

    Marko,

    W3TC_CONFIG_DATABASE is true. I had assumed that was referring to saving it in memcached, but now realize it’s probably saving the config in the MySQL database. I’ve checked wp_options before for option_name like ‘%w3%’ and it returns nothing, so I guess the option name is different or the table it uses is different.

    I cannot export the settings since the site returns a 500 error on every page if the plugin is active.

    Thanks,
    Mike

    Thread Starter mwheelermindbox

    (@mwheelermindbox)

    Hmmm, even after doing a flush_all on Memcached to delete everything in there, I still get a 500 error on every page when activating the plugin.

    Thread Starter mwheelermindbox

    (@mwheelermindbox)

    The only file in w3-config is index.html because I am storing the config in memcached because there are three servers behind a load balancer and they all need to use the same config.

    How do I clear the memcached config?

    To remove the plugin I renamed the w3-total-cache in the plugins directory to w3-total-cache-bak. Loading the plugins page in WP-Admin then causes WordPress to disable the plugin because it isn’t where expected. If I remove the object-cache.php file I can then rename the plugin directory back to w3-total-cache and the site works. Obviously I should also remove advanced-cache.php and db.php if W3TC is not activated.

    If I disable every other plugin and just enable W3TC I still get a 500 error on every page load with the current configuration in memcached that I have been unable to change or delete. To be able to get anywhere and troubleshoot this, I need to be able to delete the memcached config. I’ve tried memcached at the command line and listed the keys in all the albs, but didn’t see anything that was obviously the config for W3TC. Lots of objects, some minified data, some page caches, nothing that looks like config based on the key names.

    Thread Starter mwheelermindbox

    (@mwheelermindbox)

    Marko,

    Thanks for the followup. I am using memcached for all the config and caching (because our WordPress is on autoscaling servers behind a load balancer), so I don’t think the cache or w3tc-config folders are being used. With the config being stored in memcached, and me not knowing the key it’s stored under I haven’t figured out a way to delete it.

    On the live site we are using the MediaCloud plugin to store images on S3. We are not using that on our staging environment, and I have replicated the 500 error from turning on CDN in W3TC on staging. Our staging environment is not behind a load balancer and is using 127.0.0.1 memcached, rather than a remote server like production.

    How do I clear the config in memcached? How do I setup W3TC to use S3 as a CDN?

    Thanks

    Thread Starter mwheelermindbox

    (@mwheelermindbox)

    @virgial Thanks for following up. I’ve been out for a couple weeks or would have followed up sooner. Everything looks OK to me in terms of WordPress files. The site in question is using Trellis, which changes the hierarchy of WordPress files a bit, but everything works normally (usually).

    I noticed another user mentioned the same issue recently and you linked to 1.5 of the plugin. I tried that and it looks to have solved the problem! Thanks again for your help and your plugin!

    Mike

Viewing 7 replies - 1 through 7 (of 7 total)