[solved] cms_stylesheet problem

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
User avatar
aleksanderlech
Forum Members
Forum Members
Posts: 113
Joined: Thu Jan 29, 2009 1:37 pm

[solved] cms_stylesheet problem

Post 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
Last edited by aleksanderlech on Tue Aug 03, 2010 7:41 am, edited 1 time in total.
---------------
olek@miniperfumeria.com
User avatar
aleksanderlech
Forum Members
Forum Members
Posts: 113
Joined: Thu Jan 29, 2009 1:37 pm

Re: cms_stylesheet problem

Post 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
---------------
olek@miniperfumeria.com
Peciura

Re: cms_stylesheet problem

Post by Peciura »

Probably you have .htaccess or  tag "base" in site head.
User avatar
aleksanderlech
Forum Members
Forum Members
Posts: 113
Joined: Thu Jan 29, 2009 1:37 pm

Re: cms_stylesheet problem

Post 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
---------------
olek@miniperfumeria.com
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: cms_stylesheet problem

Post by Rolf »

Hi aleksanderlech,

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

Rolf
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
User avatar
aleksanderlech
Forum Members
Forum Members
Posts: 113
Joined: Thu Jan 29, 2009 1:37 pm

Re: cms_stylesheet problem

Post by aleksanderlech »

Hi ROlf,
just tried your solution, with clearing cache - no change. :(
---------------
olek@miniperfumeria.com
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: cms_stylesheet problem

Post by Rolf »

Do you have a link to this website...
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: cms_stylesheet problem

Post 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...
Jeff
Power Poster
Power Poster
Posts: 961
Joined: Mon Jan 21, 2008 5:51 pm

Re: cms_stylesheet problem

Post by Jeff »

Please paste your config.php file. Also is it the whole stylesheet that isn't working or just the background images?
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: cms_stylesheet problem

Post 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
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
User avatar
aleksanderlech
Forum Members
Forum Members
Posts: 113
Joined: Thu Jan 29, 2009 1:37 pm

Re: cms_stylesheet problem

Post 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
---------------
olek@miniperfumeria.com
User avatar
aleksanderlech
Forum Members
Forum Members
Posts: 113
Joined: Thu Jan 29, 2009 1:37 pm

Re: [solved] cms_stylesheet problem

Post 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
---------------
olek@miniperfumeria.com
Locked

Return to “CMSMS Core”