- Saved searches
- Use saved searches to filter your results more quickly
- Missing backend + no css #1484
- Missing backend + no css #1484
- Comments
- Missing css, js files after Magento 2 install
- 2 Answers 2
- Saved searches
- Use saved searches to filter your results more quickly
- Missing backend + no css #1484
- Missing backend + no css #1484
- Comments
- No CSS and backed files after installation [duplicate]
- 2 Answers 2
Saved searches
Use saved searches to filter your results more quickly
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing backend + no css #1484
Missing backend + no css #1484
Comments
I followed the installation guide except for the sample data.(Apache 2.4.6,PHP 5.6.10,Red Hat 7)
I was able to run the setup with all css and images.It didn’t give me any errors during the setup and it installed successful but than the trouble came. The frontend is missing js and css and the backend is just giving a 404.
Also i tried to do a find in the server for the missing js but i couldn’t find it. What can i check/redo ?
172.31.64.13 — — [14/Jul/2015:17:02:22 +0200] «GET /magento2/ HTTP/1.1» 200 18707 «-» «Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)»
172.31.64.13 — — [14/Jul/2015:17:02:22 +0200] «GET /magento2/pub/static/frontend/Magento/blank/nl_NL/mage/calendar.css HTTP/1.1» 404 264 «http://172.30.0.222/magento2/» «Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)»
172.31.64.13 — — [14/Jul/2015:17:02:22 +0200] «GET /magento2/pub/static/frontend/Magento/blank/nl_NL/css/print.css HTTP/1.1» 404 260 «http://172.30.0.222/magento2/» «Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)»
172.31.64.13 — — [14/Jul/2015:17:02:22 +0200] «GET /magento2/pub/static/frontend/Magento/blank/nl_NL/css/styles-l.css HTTP/1.1» 404 263 «http://172.30.0.222/magento2/» «Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)»
172.31.64.13 — — [14/Jul/2015:17:02:22 +0200] «GET /magento2/pub/static/frontend/Magento/blank/nl_NL/requirejs/require.js HTTP/1.1» 404 267 «http://172.30.0.222/magento2/» «Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)»
172.31.64.13 — — [14/Jul/2015:17:02:22 +0200] «GET /magento2/pub/static/frontend/Magento/blank/nl_NL/css/styles-m.css HTTP/1.1» 404 263 «http://172.30.0.222/magento2/» «Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)»
172.31.64.13 — — [14/Jul/2015:17:02:22 +0200] «GET /magento2/pub/static/frontend/Magento/blank/nl_NL/images/logo.svg HTTP/1.1» 404 262 «http://172.30.0.222/magento2/» «Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)»
::1 — — [14/Jul/2015:17:02:28 +0200] «OPTIONS * HTTP/1.0» 200 — «-» «Apache/2.4.6 () PHP/5.6.10 (internal dummy connection)»
::1 — — [14/Jul/2015:17:02:29 +0200] «OPTIONS * HTTP/1.0» 200 — «-» «Apache/2.4.6 () PHP/5.6.10 (internal dummy connection)»
172.31.64.13 — — [14/Jul/2015:17:06:44 +0200] «GET /magento2/admin HTTP/1.1» 404 212 «-» «Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)»
172.31.64.13 — — [14/Jul/2015:17:06:51 +0200] «GET /magento2/admin/ HTTP/1.1» 404 213 «-» «Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)»
The text was updated successfully, but these errors were encountered:
Missing css, js files after Magento 2 install
I try to install Magento 2 and I have a problem with css and js loading (they are missing). There are a lot of topics about this problem and it seems that the last step of the solution is to run php bin/magento setup:static-content:deploy command (rebuild the static content). Ok, but how? I have no access to the terminal at my host (actually I don’t know too much about it, I just use Magento as an average user). Is there a way to run this command inside Magento? What are the steps to run it? The installation is in a sub directory not in site root.
2 Answers 2
There is no way to deploy static-content from within the frontend or admin of Magento 2.
At the least, your hosting company should be able to run this command for you.
- Need SSH credentials & access to your server
- Login to server using SSH via terminal, putty, etc.
- Navigate to Magento 2 root install directory using CLI
- Run this command:
php bin/magento setup:static-content:deploy
No, you don’t have any other options for deploying content from the admin. You need to deploy static content from the Magento root directory only then you will be able to see CSS and js. Open your Magento 2 root directory and run the below commands: For Windows users- php bin/magento setup:static-content:deploy
For linux users- /opt/lampp/bin/php bin/magento setup:static-content:deploy
Another method is using ssh. For that, you need to login to Cpanel. Through command prompt login to the server using ssh credentials. Then navigate through Magento 2 root directory and run the same commands as given above.
Saved searches
Use saved searches to filter your results more quickly
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing backend + no css #1484
Missing backend + no css #1484
Comments
I followed the installation guide except for the sample data.(Apache 2.4.6,PHP 5.6.10,Red Hat 7)
I was able to run the setup with all css and images.It didn’t give me any errors during the setup and it installed successful but than the trouble came. The frontend is missing js and css and the backend is just giving a 404.
Also i tried to do a find in the server for the missing js but i couldn’t find it. What can i check/redo ?
172.31.64.13 — — [14/Jul/2015:17:02:22 +0200] «GET /magento2/ HTTP/1.1» 200 18707 «-» «Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)»
172.31.64.13 — — [14/Jul/2015:17:02:22 +0200] «GET /magento2/pub/static/frontend/Magento/blank/nl_NL/mage/calendar.css HTTP/1.1» 404 264 «http://172.30.0.222/magento2/» «Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)»
172.31.64.13 — — [14/Jul/2015:17:02:22 +0200] «GET /magento2/pub/static/frontend/Magento/blank/nl_NL/css/print.css HTTP/1.1» 404 260 «http://172.30.0.222/magento2/» «Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)»
172.31.64.13 — — [14/Jul/2015:17:02:22 +0200] «GET /magento2/pub/static/frontend/Magento/blank/nl_NL/css/styles-l.css HTTP/1.1» 404 263 «http://172.30.0.222/magento2/» «Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)»
172.31.64.13 — — [14/Jul/2015:17:02:22 +0200] «GET /magento2/pub/static/frontend/Magento/blank/nl_NL/requirejs/require.js HTTP/1.1» 404 267 «http://172.30.0.222/magento2/» «Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)»
172.31.64.13 — — [14/Jul/2015:17:02:22 +0200] «GET /magento2/pub/static/frontend/Magento/blank/nl_NL/css/styles-m.css HTTP/1.1» 404 263 «http://172.30.0.222/magento2/» «Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)»
172.31.64.13 — — [14/Jul/2015:17:02:22 +0200] «GET /magento2/pub/static/frontend/Magento/blank/nl_NL/images/logo.svg HTTP/1.1» 404 262 «http://172.30.0.222/magento2/» «Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)»
::1 — — [14/Jul/2015:17:02:28 +0200] «OPTIONS * HTTP/1.0» 200 — «-» «Apache/2.4.6 () PHP/5.6.10 (internal dummy connection)»
::1 — — [14/Jul/2015:17:02:29 +0200] «OPTIONS * HTTP/1.0» 200 — «-» «Apache/2.4.6 () PHP/5.6.10 (internal dummy connection)»
172.31.64.13 — — [14/Jul/2015:17:06:44 +0200] «GET /magento2/admin HTTP/1.1» 404 212 «-» «Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)»
172.31.64.13 — — [14/Jul/2015:17:06:51 +0200] «GET /magento2/admin/ HTTP/1.1» 404 213 «-» «Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)»
The text was updated successfully, but these errors were encountered:
No CSS and backed files after installation [duplicate]
The installation went fine, no errors. I activated also rewriting mode for Apache2. But I found no CSS files: The inspector shows: The folder /pub/static has no version folder. UPDATE: Also I have no backend when I go to localhost/admin . I didn’t delete pub/static after my installation. When I run sudo php bin/magento setup:static-content:deploy I get error :
[BadMethodCallException]
Missing required argument $alternativeSources of Magento\Deploy\Model\Deploy\LocaleDeploy.
Based on my knowledge, it is not an issue, please goto system > configuration > general > web > change the secure and unsecure urls from https to http
2 Answers 2
First check if your css is loaded, your website -> right click and select view page source or just press ctrl+u. There you’ll find your style.css . Check if it is showing this style.css and the right url. Click on it, see if it is loading ok.
For this problem to happen, There are three reasons I know of:
1.) There might be an issue because of System Cache. Clean the cache from the backend or go to magentoroot/var/ and delete the contents of the cache and session folder.
2.) There can be issue with the file permission of your css File. In this case just type the following command in terminal, sudo chmod 777 -R /magentoroot/ (update file permissions after Magento creates these new static files. They are not owned by www-data, so they will give 404.)
3.) Lastly, there could be something wrong with the url in your core_config_data table of your database, which I think you have already checked.
4.) Flush your navigator cache : Ctrl+Shift+R