Page 2 of 2

Re: Missing Template images and style

Posted: Sun Oct 30, 2011 4:31 pm
by rinbarrett
I switched to another template, thinking it might be have something to do with the template I've been using. That didn't change anything so I switched back to my custom template.

That's amazing - I don't see any of those errors. I added the code you suggested to the .htaccess, but it changed nothing.

Is it possible, that some other ecommerce site within the codetwists tree is causing this? The blog is located at: http://www.codetwists.com/Blog but there's a relatively new osCommerce store that someone else is working on at http://www.codetwists.com/NoBrainer. I know it has its own .css, .htaccess, etc. I wouldn't have thought that would have an effect on Blog, but could it?

Rin

Re: Missing Template images and style

Posted: Sun Oct 30, 2011 4:55 pm
by Timbalu
rinbarrett wrote:I don't see any of those errors. I added the code you suggested to the .htaccess, but it changed nothing.
No thats not a public error, its is a header error, like the connection transfer chat between server and browser.
rinbarrett wrote:Is it possible, that some other ecommerce site within the codetwists tree is causing this? ... I know it has its own .css, .htaccess, etc. I wouldn't have thought that would have an effect on Blog, but could it?
I dont know how this could be, but possibly through the htaccess, as the ecommerce has a main stylesheet called stylesheet.css just like the serendipity one, which does not actually exist and is build by Serendipity Blog system on request.

You should ask the one if it is possible to investigate this and maybe change the css name (and tied rules in the htaccess). I also just saw that there must be a redirect or something to http://www.nobrainer-deals.com/, right?

Re: Missing Template images and style

Posted: Sun Oct 30, 2011 5:07 pm
by rinbarrett
Yes, NoBrainer is a redirect. It belongs to a friend who asked if I could host the website in my CodeTwists account. I'll have to ask about the stylesheet name. It should be easy to change. I would think that if s9y were grabbing the wrong stylesheet there would be some kind of style rather than none at all.

Re: Missing Template images and style

Posted: Sun Oct 30, 2011 5:12 pm
by Timbalu
No, S9y is not grabbing the wrong one - it is wellformed and has properly run through serendipity system - but some (htaccess) Rule tells /Blog/ to send it as a 404 not found, which may have to do with /nobrainers/ htaccess...

Addition:
Well, I am sorry..., this same name thing isn't true at all, as serendipitys stylesheet is called serendipity.css as ever! But it still may have to do with some htaccess rule in nobrainer.

Re: Missing Template images and style

Posted: Sun Oct 30, 2011 11:27 pm
by rinbarrett
The .htaccess file from NoBrainer:

Code: Select all

<Files *.php>
Order Deny,Allow
Deny from all
</Files>
There is another one for the Admin, but it simply password restricts access.

Rin

Re: Missing Template images and style

Posted: Mon Oct 31, 2011 4:15 am
by rinbarrett
I installed Firebug so I could watch what loaded and was able to see the 404 on serendipity.css. It was weird because the file was actually shown in Firebug to be there with content. So I copied the content and created a serendipity.css and put it in the Blog root. I then commented out the lines in the .htaccess that referred to it.

Problem solved.

Rin

Re: Missing Template images and style

Posted: Mon Oct 31, 2011 8:10 am
by Timbalu
Curious solution! :P This may help you out some time, indicating you change nothing on your system that has to do with building styles. But you definitely should think of installing a parallel blog running on PHP/MySQL 5 and Serendipity 1.6.

Re: Missing Template images and style

Posted: Mon Oct 31, 2011 10:28 am
by rinbarrett
Sometime when I get time, I'll do that. Thanks for helping me work through this. I learned a bit and appreciate the help!

Rin