Antes

  • Stuff?
  • Posts: 52
Cannot read the CSS - Alpha 2
« on January 6th, 2013, 12:36 AM »Last edited on January 6th, 2013, 12:43 AM
I made a clean install today, i didn't have CSS issues at install but after moving to board index (which i didn't get it on Alpha 1)

Opera (12.12) only loads 6 elements from page and source outputs just plain text.

http://wedge.org/css/Wine-Wuthering/member-opera12.1-1354111854.css.gz

http://localhost/Wedge/css/guest-ie10-1352139630.css.gz
http://localhost/Wedge/css/member-opera12.1-1352139630.css.gz

Also changing skins not changing anything.

PHP version: 5.4.3
Apache version: 2.4.2

Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278
When we unite against a common enemy that attacks our ethos, it nurtures group solidarity. Trolls are sensational, yes, but we keep everyone honest. | Game Memorial

Antes

  • Stuff?
  • Posts: 52

Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278

Antes

  • Stuff?
  • Posts: 52

MultiformeIngegno

  • Posts: 1,337

Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278
Re: Cannot read the CSS - Alpha 2
« Reply #6, on January 6th, 2013, 01:41 AM »
Yes, it should take a little longer to get to plain text than SMF would - on a completely fresh install the first time, where it has to generate the cached CSS. It sounds like for some reason, the CSS files are being regenerated too regularly (which would explain the slowdown) and it's not even calling them. I'm still thinking permissions issue with the CSS folder.

MultiformeIngegno

  • Posts: 1,337
Re: Cannot read the CSS - Alpha 2
« Reply #7, on January 6th, 2013, 01:46 AM »
I have set 0774, owner is www-data and group is a group where there are www-data and my FTP user (so I have write access with the FTP client too).

Edit: I also tried with 755, 775 and 777 though

Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278
Re: Cannot read the CSS - Alpha 2
« Reply #8, on January 6th, 2013, 01:50 AM »
Oh shit.

You're not using Apache. All the lovely hard work goes straight out the window with that. The .gz files in the CSS folder must be set to be served in the right format, which is what the .htaccess file in css/ does. I have zero idea how to configure it for nginx or anything else, assuming it's possible.

* Arantor despairs of the support issues this is going to cause.

Antes

  • Stuff?
  • Posts: 52
Re: Cannot read the CSS - Alpha 2
« Reply #9, on January 6th, 2013, 02:17 AM »
Ah then its not a bug. Thanks for the info. I have to configure Apache to read .htaccess as htaccess.txt

Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278
Re: Cannot read the CSS - Alpha 2
« Reply #10, on January 6th, 2013, 02:18 AM »
Well, it is a bug because it's broken out of the box for you ;)

There is a .htaccess file in each of the cache, css and js folders that should be active. If you have to rename it, rename it and everything should work - but that's not a typical configuration for Apache to require htaccess.txt files (not even on Windows)

Dragooon

  • I can code! Really!
  • polygon.com has to be one of the best sites I've seen recently.
  • Posts: 1,841
Re: Cannot read the CSS - Alpha 2
« Reply #11, on January 6th, 2013, 07:44 AM »
Perhaps some sort of alternative php script can be used as a backup for those web servers which are not supported as of now?
The way it's meant to be

Nao

  • Dadman with a boy
  • Posts: 16,079
Re: Cannot read the CSS - Alpha 2
« Reply #12, on January 6th, 2013, 09:14 AM »
For starters there is an admin setting to disable gzipping for cached files.
If you can't take the heat... :eheh:

Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278
Re: Cannot read the CSS - Alpha 2
« Reply #13, on January 6th, 2013, 04:11 PM »
Yes because it's so nice to tell new users "It's not really broken, you just have to go figure out how to get to the amin panel and change this setting"

It should probably be disabled on new installs.

MultiformeIngegno

  • Posts: 1,337
Re: Cannot read the CSS - Alpha 2
« Reply #14, on January 6th, 2013, 04:55 PM »
We should try to create for nginx an equivalent of the htaccess script. Can you post here the relevant portion in htaccess (can't access my FTP and see by myself at this moment)?