I have a client who needed me to set up a test environment locally to test patches for his site before I moved them to production.

I created a new WordPress install on XAMPP (windows machine) and copied the files from the site, the admin area works but the front end only shows a white screen, no errors.

I then installed the theme on a clean Linux server install of WordPress and the theme worked.

What am I missing? Is there a difference that WordPress would know between the 2 servers?

  • 1
    Whitescreen is just hidden problems - do you have WP_DEBUG turned on? do your logs on the xampp server have any errors? Dec 18, 2017 at 18:24
  • No errors, I have enabled every log, and disabled all plugins.
    – Top-Bot
    Dec 18, 2017 at 21:53
  • how about using a default twenty-x theme? what versions of PHP are your two servers running? does visiting backend /wp-admin/ instead of just the front end load? do normal .php hello world scripts run on xampp? have you turned off rewrites / rule out htaccess error? do homeurl and siteurl match for their respective servers? Dec 18, 2017 at 21:55
  • The default theme works, all scripts work normally. The url match and the admin area does load.
    – Top-Bot
    Dec 18, 2017 at 22:00
  • well if admin loads and front page white screens, then it's 100% the theme or a plugin. Historically I found it to be a theme/plugin with bad code, either php shorthand tags or php code that doesn't work on older php version (simple things like having a function inside of empty() function). The site white-screens because of a fatal error, I'm disbelieved your Apache error logs would show nothing. Dec 18, 2017 at 22:06


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.