Skip to content

Missing backend + no css #1484

New issue

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

Closed
drbn opened this issue Jul 14, 2015 · 8 comments
Closed

Missing backend + no css #1484

drbn opened this issue Jul 14, 2015 · 8 comments
Labels
Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development

Comments

@drbn
Copy link

drbn commented Jul 14, 2015

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)"

@ghost
Copy link

ghost commented Jul 14, 2015

Check the page using a browser inspector like Firebug for Firefox. See where the page is calling CSS and JS from and make sure the path exists.

There are at least two possibilities: a) Apache web server rewrites are not enabled; b) You specified the wrong backend-frontname (or Magento base URL) during installation.

Rewrites: http://devdocs.magento.com/guides/v1.0/install-gde/prereq/apache.html#install-ubuntu-apache-rewrites

@SKovbel
Copy link

SKovbel commented Jul 14, 2015

Or pub/static/.htaccess was removed

@drbn
Copy link
Author

drbn commented Jul 14, 2015

shouldn't i find the files like styles-m.css or logo.svg when i do a find in the magento2 folder ?
I'll check if rewriting is enabled (would i need to reinstall if it wasn't on ?)

@drbn
Copy link
Author

drbn commented Jul 14, 2015

I found the problem. I had to change AllowOverride none to All in the httpd.conf for the document root. Thank you all for helping.

<Directory "/var/www/html">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named explicitly --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.4/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride All

#
# Controls who can get stuff from this server.
#
Require all granted

@ghost
Copy link

ghost commented Jul 14, 2015

Yes, that's correct and no you don't have to reinstall, just restart Apache (for the benefit of someone who might see this).

@sshrewz sshrewz added PS Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development labels Jul 14, 2015
@vrann
Copy link
Contributor

vrann commented Jul 16, 2015

@drbn assuming the problem is solved, closing the issue. Feel free to reopen if you had new details.

@vrann vrann closed this as completed Jul 16, 2015
@SKovbel
Copy link

SKovbel commented Jul 18, 2015

I got the same error under Windows 8.1, boken theme after instalation
It was solved as commenting line in app/etc/di.xml

@tarwin
Copy link

tarwin commented Dec 16, 2015

I had the same problem on Windows 10. SKovbel's solution fixed it, but I'm not sure what the consequences will be.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development
Projects
None yet
Development

No branches or pull requests

5 participants