Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress

Andrew Folts
Andrew Folts
14,238 Points

Suddenly getting a 404 error on style.css?? [SOLVED]

This is driving me nuts!!!

Randomly, styles from style.css just stopped working on my Wordpress site.

I checked the console, and it gives me a 404 error for style.css.

What's crazy is my theme is still active (which means Wordpress IS loading style.css, because you need it to even have a theme in the first place).

What the hell is going on here?

Andrew Folts
Andrew Folts
14,238 Points

I found the cause in case anyone has the same problem...

Somehow permissions got changed on style.css in FTP, which was preventing the browser from accessing the file. Once I changed it back, everything went back to normal.

Sue Dough
Sue Dough
35,800 Points

FTP is not safe. Look into SFTP and SSH.

Also I will leave this here:

find . -type d -exec chmod 755 {} \;  # Change directory permissions rwxr-xr-x
find . -type f -exec chmod 644 {} \;  # Change file permissions rw-r--r--