Blank page on front end, wp_content/debug.log is empty
-
It may save some time to state up front that I have already disabled _all_ plugins and changed the theme to 2019.
=== Original post follows ===
This might be a tough one, or it might be something simple I have overlooked.
I maintain a WordPress based website for a customer. System administration, not content production. The website is hosted on a VPS system where I have root access via sudo. Recently I took steps to upgrade PHP from 5.6 to 7.x.
I take a somewhat conservative approach to system changes, testing WordPress and plugin changes or updates in an Apache Friends XAMPP environment with PHP 5.6 installed on a Windows 7 system. I have a Selenium-based automated test suite that visits all of the front-end pages, and exercises the contact form. This test suite must pass before I update the live site.
I installed Apache Friends XAMPP (32-bit) PHP 7.2 environment on the same Windows 7 system. I enabled WP_DEBUG and WP_DEBUG_LOG, ran the usual tests, and then extracted the unique errors from wp_content/debug.log. These messages were mostly related to a deprecated way of defining and using class constructors, with a few uses of (deprecated) create_function().
I modified the offending source files in the theme and one plugin. I also took this opportunity to replace Fast Secure Contact Form with a different forms plugin.
Another test run and the debug log is clear, and the tests pass. Next step was to take the PHP 7.2 compatible code and database and move it to my PHP 5.6 compatible test environment, and test again. If that passes, then I can take the live site upgrade in two separate steps; first the WordPress changes, then the site PHP changes. Ran the tests; all clear.
Move the files and database to the live site. Connect to the front end, blank white page (WSOD). I can log in to the back end. I enabled WP_DEBUG and WP_DEBUG_LOG, and restarted apache. WSOD. Disabled _all_ plugins, switched theme to 2019. Restart apache. WSOD, and there is still no wp_content/debug.log file!
Now what? To be clear, I am not asking to be told what the bug is that I need to fix. But I would love to receive useful pointers on how/where to look for more clues. Thanks.
- The topic ‘Blank page on front end, wp_content/debug.log is empty’ is closed to new replies.