WSOD on IIS
-
Hi,
I know its IIS and its stupid to put WordPress on it but….
I’ve configured W3TC (database cache, page cache, minify) on this site and its completely crashed, just the WSOD and nothing else.
I’ve tried manually removing the plugin and still the same problem?
Any help would be hugely appreciated.
Thanks
The page I need help with: [log in to see the link]
-
Did you also remove the
wp-content/advanced-cache.php,wp-content/db.phpandwp-content/object-cache.phpfiles?Could you check the error logs and browser console logs for errors so we can help figure out what the problem is exactly?
Hi,
Yes I removed all those files apart from object-cache.php which didn’t exist. I also removed db.php which I believe is for DB caching?
Console log shows nothing and I’m trying to get access to the error logs now.
Thanks
That’s correct.
object-cache.phpexists if you enabled object caching (which you did not, but I just wanted to be sure).db.phpdefines the database caching andadvanced-cache.phpallows W3 Total Cache to cache pages. Those files include a reference to W3 Total Cache classes, so if you didn’t remove them, you’d get errors on non-existent classes.Also check your
wp-config.phpfile for anything likedefine('WP_CACHE',true);. This should be false or removed from the file, since you’re not caching anything anymore.If you cannot access the logs for some reason, you can also add
define('WP_DEBUG',true);to yourwp-config.phpfile. If you still don’t see anything when visiting the website, adddefine('WP_DEBUG_LOG',true);to yourwp-config.phpfile too. If you visited the website, you should see thewp-content/debug.logfile appear, which might contain the errors you have.Hi,
Yes I’ve already removed
define('WP_CACHE',true);from wp-config.phpI’ve added
define('WP_DEBUG_LOG',true);and ‘define('WP_DEBUG', true);But as the site isnt even loading, no log files are created.
I’ve uploaded a text.html file which loads fine. However a test.php file with
phpinfo();will not load.Thanks for your help
Could you share your
.htaccessfile so I can check if that file is correct?Hi,
This is a windows IIS server so doesn’t have .htaccess
It uses IIS and web.config file which I understood did not get affected by W3TC
I have no experience with IIS servers, so sorry for that 😉
Maybe @fistfullofcrisco knows how to deal with this?
Actually i believe w3tc supports IIS. Or, at least it did.
Questions:
1. I know w3tc provides its own /wp-content/plugins/w3-total-cace/ini/web.config that one should use to help configure w3tc correctly and so i am curious if w3tc (unlikely) or maybe you added some or all of its contents into your existing web.config which could be confusing your server.
2. I know w3tc generates empty index.html and/or index.php files in some areas (to prevent showing empty directory listings) and so i wonder if, when you attempt to access your site, IIS is defaulting to viewing these empty pages. I will have more to say in #5.
3. You mentioned manually deleting the plugin but did you also delete: /wp-content/w3tc-config, and /wp-content/cache? Since you already deleted the actual plugin directory deleting these two remaining directories is more for cleanliness. Also, i am just curious if something is trying to access the w3tc’s old cache directory.
4. Does it show the WSoD even when attempting to access your WP admin page or does it only happen when accessing the public front-end?
5. Can you pop up your browser’s developer tools and visit one of these WSoD pages and see what the returning HTTP code is (under the ‘Network’ tab)? Is it reporting a 5## error e.g. 500 or 504? If not, then what is the return code?
6. Dumb question, but i assume you restarted IIS so as to flush out its own server cache from volatile memory?
Thanks
Hello @iprogress,
Have you managed to resolve the issue? Please give us a feedback so you can close the topic and mark it as resolved.
Best regards,
Marko
The topic ‘WSOD on IIS’ is closed to new replies.