Grey Admin screen after installing Magento 2 on a windows localhost


I’m hoping someone can help.

I’m trying to install Magento 2 on windows 7 localhost and running into an error - grey screen.

I keep finding this fix -

The question is -
I’m struggling to understand the path as I cannot find it to alter the code.


It just doesn’t seem to exist on my xampp/ htdocs

I’m pretty new to this so maybe someone could write a dummies guide to executing this fix.

Thanks for looking!

I never had any success with Magento 2 in a Windows localhost environment. Everytime I fixed one thing, something else would get in my way. Magento 2 is complicated enough as it is without adding these kind of variables to the mix.

Anyway, I don’t think the post you linked is relevant to your issue. The post says that a file needs editing (which it still might need), but in your case the file is simply missing. To me this suggests an installation issue. This might be one of many files that you’ve identified as missing.

But let’s assume for a moment that the Validator.php is in fact the only file that’s missing. You can get a copy of that missing file from Magento.

P.S. If you want to develop locally, due to costs or whatever, then I’d recommend learning how to use a VirtualBox. That way you can actually run a Ubuntu Server on a Windows machine. Therefore you’d be developing in an environment that mirrors the real thing - Rather than a simulation. It’s something worth adding to your developer toolkit.

1 Like

Thanks for your reply.

I’m just playing with magento for the time being so was hoping to run it via xampp on windows.

I think I’ll head off down the virtualbox route as you suggest which makes sense.

Thanks again :+1:

1 Like