By Ming Fang
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. http://nas.fmfreedom.com/sample/shot1.png
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!
The problem still cannot be solved… Until now I still cannot figure it out. And the problem only happened on digital ocean.
Hi @mingfang
You need to update your base_url in the database and then clear the cache.
Have a look at these two answers:
https://magento.stackexchange.com/questions/134245/base-url-change-magento2-1
https://mage2.pro/t/topic/22
Please make sure you’ve made a backup of the database before doing such commands. I would even recommend doing a snapshot in the control panel of DigitalOcean, so you can restore the entire server in case something goes wrong.
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.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.