Blank page when using NGINX with no nginx.conf
-
I am just writing to report an issue that I have been debugging for the last couple days.
For some reason, after we updated the version from version 2.3.12 to version 2.7.0 we started to get blank pages in our wordpress website.
We isolated the issue to the w3-total-cache plugin. It happened after version 2.4.0
The cause is that the plugin is opening a ob_start inside an ob_callback – causing the page to go blank without notice.
The file that is doing this is Util_WpFile -> write_to_file -> self::request_filesystem_credentials
I’ll build the stack trace myself:
Generic_Plugin.php:53 -> ob_start(callback here) <- IMPORTANT!!!!!!
Minify_Plugin.php -> $minify_environment->fix_on_wpadmin_request
Util_Rule.php:332 -> Util_WpFile::write_to_file
An ob_start there, and, since we are inside an ob_callback already – the site crashes.
You guys might want to check that, and if you need more context, just let me know. I’ll be more than glad to help.
The root cause is that we don’t have the nginx.conf in our repository (but we do have it in our nginx config), so when the plugin went ahead and tried to create a file or something like that, it started an ob_start inside the ob_callback that you guys have for the minify plugin, crashing the site.
The solution is to add the nginx.conf into the repository, even tho, depending on your nginx config, you might just not use it.
- The topic ‘Blank page when using NGINX with no nginx.conf’ is closed to new replies.