Page 1 of 1

[solved] cms_stylesheet problem

Posted: Fri Jul 23, 2010 6:06 am
by aleksanderlech
Hi guys!

After installing new website on 1.8 version, I showed it to my customer and everything was ok. Then I changed root url and corresponding variables in config.php according to production website address - it was like http://www.websitename.com/some_directory and was changed to http://www.customerswebsiteaddress.com

And then stylesheets stopped working. Page source shows it's grabbed from tmp/cache, but trying to display shows 403 error. I changed all rights to 777, not helped.

I wonder why it was working at address with subdir and stopped working with new address?

heres code snippet from not working page:

Code: Select all

<link rel="stylesheet" type="text/css" href="http://www.customerswebsiteaddress.com/tmp/cache/reset_1279703677.css" media="all"/>
<link rel="stylesheet" type="text/css" href="http://www.customerswebsiteaddress.com/tmp/cache/Goczol_1279796699.css" media="screen"/>
<link rel="stylesheet" type="text/css" href="http://www.customerswebsiteaddress.com/tmp/cache/Accessibilityandcross-browsertools_1242204174.css" media="screen"/>
here's same from working page:

Code: Select all

<link rel="stylesheet" type="text/css" href="http://www.websitename.com/some_directory/tmp/cache/reset_1279703677.css" media="all"/>
<link rel="stylesheet" type="text/css" href="http://www.websitename.com/some_directory/tmp/cache/Goczol_1279796699.css" media="screen"/>
<link rel="stylesheet" type="text/css" href="http://www.websitename.com/some_directory/tmp/cache/Accessibilityandcross-browsertools_1242204174.css" media="screen"/>
Where should I look for solution?

Greeting
Aleksander

Re: cms_stylesheet problem

Posted: Sat Jul 24, 2010 5:24 am
by aleksanderlech
Yes I did - before and after changing address. No luck.

Rolling back to address like http://www.websitename.com/some_directory makes stylesheet working immediately.


Aleksander

Re: cms_stylesheet problem

Posted: Sat Jul 24, 2010 7:13 am
by Peciura
Probably you have .htaccess or  tag "base" in site head.

Re: cms_stylesheet problem

Posted: Mon Jul 26, 2010 5:16 am
by aleksanderlech
Hi guys,
no .htaccess file, and yes - base tag is there.

Tried to turn it off with

Code: Select all

{metadata showbase=false}
  in template code but no luck.

Aleksander

Re: cms_stylesheet problem

Posted: Sat Jul 31, 2010 11:20 am
by Rolf
Hi aleksanderlech,

Did you try change umask to 000 in Default Settings?
It might be a FileOwner problem

Rolf

Re: cms_stylesheet problem

Posted: Sun Aug 01, 2010 4:58 am
by aleksanderlech
Hi ROlf,
just tried your solution, with clearing cache - no change. :(

Re: cms_stylesheet problem

Posted: Sun Aug 01, 2010 9:42 am
by Rolf
Do you have a link to this website...

Re: cms_stylesheet problem

Posted: Sun Aug 01, 2010 5:00 pm
by Dr.CSS
Sounds to me like you set this up in a sub folder then with out moving it to the root folder you are trying to get it to look like it is in the root...

Just move all folders/files into the root, make the changes to config.php and you should be good...

Re: cms_stylesheet problem

Posted: Sun Aug 01, 2010 6:00 pm
by Jeff
Please paste your config.php file. Also is it the whole stylesheet that isn't working or just the background images?

Re: cms_stylesheet problem

Posted: Mon Aug 02, 2010 5:09 pm
by Rolf
Hi aleksanderlech,

Just looked at your site.
The site looks fine when using the {stylesheet} tag.
- No .htaccess in the root of the site, no pretty_url.
When using {cms_stylesheet} the layout is gone.
- The stylesheets are created in the /tmp/cache/ folder.
- The link to the stylesheets are in the templates.
So far, so good.

But opening the new stylesheet directly, I get an Error 403 - Forbidden.
Even when I open ww w.website.pl/tmp where a dummy index.html is, I also get an Error 403.

I think you better talk to your webhost.
The CMSMS part is imho working like it should be, but it looks like the host blocks the tmp folder.

Regards, Rolf

Re: cms_stylesheet problem

Posted: Mon Aug 02, 2010 5:11 pm
by aleksanderlech
Hi Rolf,
the same came to my mind today bacuse of those 403 errors.
I'll talk to them.

Thank you for your time.

Greetings
Aleksander

Re: [solved] cms_stylesheet problem

Posted: Tue Aug 03, 2010 7:42 am
by aleksanderlech
I have just talk to my provider. They are blocking web access to /tmp dir, so I have to use old {stylesheet} notation.

Thank you all guys for your time.

Greetings
Aleksnder