After adding domain name to magento 2 website, admin panel not working properly.

System: ubuntu 16.04 apache 2, php 7 mysql 5.7

When I didn’t add domain to the droplet, everything works fine. But when I add the domain, the admin panel of the magento 2 website is not working properly. the submenu content is blank after loading.

I am using the CloudFlare to mange the domain, and I simply add a record with the ip address of the droplet. The website is running without any errors. I cannot find any useful information and there is not log for the problem which is showing in the picture below.

The problem is showing in the link below.

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

The problem still cannot be solved… Until now I still cannot figure it out. And the problem only happened on digital ocean.

The issue still there, I cannot find any error in the website. Here is the login and password for the domain. I setup a demo, if there anyone know what is wrong with the droplet, please tell me. Thank you very much!!! Username: admin Password: passw0rd

The error is happening after I update the website with the new domain and I have already updated the URL in the database as well. And then I cleaned the cache. I even make the exactly setup in my local vps, it is working perfect in my local server. Also I made another droplet and set up the LAMP again, the submenu still not showing. After I change the ip back, and clean the cache. The website works fine. I checked all log, and there is no errors.