cancel
Showing results for 
Search instead for 
Did you mean: 

After Successful Installation Magento Getting Blank Gray page for Admin

SOLVED

Re: After Successful Installation Magento Getting Blank Gray page for Admin

Hello,

As per your shared screen shot and as per my understanding, 2 possible scenario.

1. AS per home page screen shot only gray header come, that might be happened because of console errors (static-content not deployed properly).

2. As per customer registration page screen shot, menu area not appear because of you might not install sample data.

 

Please check these 2 possible case's, if these solves your concerns.

Happy to hear you feedback.


@bruno_gamba wrote:

Hello,

After including the line, it's good for the admin screen.
Thanks for this
However I allways have a blank screen when i go to store at the localhost/magento2 adress.
View1.png

If i click on "Create an account" i will have "Luma" and others informations on the screen
View2.png
Could you tell me if it's because i have a magento version without sample ?

Thanks
Bruno.

view1.pngView2.pngview1.pngview1.pngView2.png


 

Re: After Successful Installation Magento Getting Blank Gray page for Admin

Thank You ! 

Re: After Successful Installation Magento Getting Blank Gray page for Admin

THANK YOU Smiley Happy

Re: After Successful Installation Magento Getting Blank Gray page for Admin

Sir after this i got the error:

Fatal error: Namespace declaration statement has to be the very first statement or after any declare call in the script in C:\wamp64\www\magento\vendor\magento\framework\View\Element\Template\File\Validator.php on line 6

 

and there is no space before <?php

 

Re: After Successful Installation Magento Getting Blank Gray page for Admin

@siddhi_chavan I had the same problem and found the issue was that the file was encoded as UTF-8 but needed to be encoded in ANSI.
You can change the encoding using the dropdown directly next to the "Save" button in the "Save As..." window in Notepad.

Re: After Successful Installation Magento Getting Blank Gray page for Admin

@kanhaiya5590 

thanks a lot for your solution, it helps a lot of guys include me. but i meet the issue below when i do your solution.

can you help me? Thanks more than i can say !

Backend always loading,and front meets same issues.

332023234fe8a699968cf399866e89f.png微信图片_20200319115122.png

 

Re: After Successful Installation Magento Getting Blank Gray page for Admin

@kanhaiya5590 

I'm so sorry you cannot see the picture maybe, I upload them again. pls check them . thanks again.

backendbackendfrontfront

Re: After Successful Installation Magento Getting Blank Gray page for Admin


@emily_yang wrote:

@kanhaiya5590 

I'm so sorry you cannot see the picture maybe, I upload them again. pls check them . thanks again.

backendbackendfrontfront


I feel you have console error, can you share console screen as well.

 

Sorry for late reply 

 

Thanks

Re: After Successful Installation Magento Getting Blank Gray page for Admin

Worked perfectly ... thanks

Re: After Successful Installation Magento Getting Blank Gray page for Admin

i dont have space before and after php tag , just after the php tag there is namespace namespace magento\framework\View\Element\Template\File;

 

still i am facing the same problem , the FATAL ERROR , same as it is .