templates aren't displayed

Skinning and designing Serendipity (CSS, HTML, Smarty)
Post Reply
manuelr
Regular
Posts: 5
Joined: Fri Sep 30, 2011 8:54 am

templates aren't displayed

Post by manuelr »

Good morning

I have problems with changing the template of my blog. No matter which template i choose in my admin panel the blog is displayes blank. You just see the text in a different font and a blank white backround. The 'bulletproof' template is the only one that works without any problems.

Would be glad if someone could help me
thanks

Manuel
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: templates aren't displayed

Post by garvinhicking »

Hi!

What's your URL? After changing templates, did you refresh your browser's cache (Shift-F5)?

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
manuelr
Regular
Posts: 5
Joined: Fri Sep 30, 2011 8:54 am

Re: templates aren't displayed

Post by manuelr »

I can't give you an URL because the blog runs just a local network. I installed sy9 on my virtual machine (ubuntu).

I refreshed the cache and the templates are displayed on my vm's browser, very good. but when i try to call up the blog on my not-vm's browser the blog is still displayed blank. Just bulletproof works.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: templates aren't displayed

Post by garvinhicking »

Hi!

Hm, hard to say without further details. Maybe you configured the URL to the blog wrongly so that your non-vm browser cannot access the storage properly?

Use Firebog/LiveHTTPHeaders to inspect what URL is called for the CSS and the images, and then call them manually to see why the request does not properly return content.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
cartoonman23
Posts: 1
Joined: Wed Oct 19, 2011 8:15 am

Re: templates aren't displayed

Post by cartoonman23 »

Hi Manuel!

I had the same issue and have been beating my head against a brick wall until I finally discovered the solution. I recommend trying the below steps as it worked for me.

1. Go to the Templates folder and open the folder of the template you are trying to display (i.e. Andreas 06, etc.)
2. Open the file named "index.tpl"
3. Replace the line:

<link rel="stylesheet" type="text/css" href="style.css" />

With this one:

<link rel="stylesheet" type="text/css" href="{$serendipityHTTPPath}templates/andreas06/style.css" />

I hope this helps!

Thanks,

Brian
Don Chambers
Regular
Posts: 3652
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Re: templates aren't displayed

Post by Don Chambers »

Brian - appreciate you offering advice to help a fellow serendipity user... are you sure you found this line in your template file??:

Code: Select all

<link rel="stylesheet" type="text/css" href="style.css" /> 
This line does not exist in the andreas06 template, but the following line does exist and should correctly provide the path to the appropriate stylesheet:

Code: Select all

<link rel="stylesheet" type="text/css" href="{$head_link_stylesheet}" />
=Don=
scionseo
Regular
Posts: 13
Joined: Fri Aug 26, 2011 7:44 am

Re: templates aren't displayed

Post by scionseo »

I am having similar problems with my site: http://bit.ly/sO63dI

I have not made any significant adjustments to the configuration of the template, but I do not have access to a front-end template, and in some situations the back-end template is missing. Also, I can not make these adjustments because the template I would like to use (blogger-tabacco) does not have an index.php file in the template folder. I adjusted the index.php file in the templates_c folder in accordance with cartoonman's suggestions, and this did not change anything.

This problem seems to come up a lot when I am using Serendipity, and it does not appear to be related to any specific changes or templates. Can someone please point me in the right direction?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: templates aren't displayed

Post by garvinhicking »

Hi!

Seems your server cannot properly resolve the CSS URL.

The easiest thing to do would be to enable "URL Rewriting" in your s9y configuration, can you try if that works?

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
scionseo
Regular
Posts: 13
Joined: Fri Aug 26, 2011 7:44 am

Re: templates aren't displayed

Post by scionseo »

I enabled Apache Mod_rewrite and Apache error handling and neither fixed the problem. Could you suggest something else which may help me fix the problem? I am a big fan of Serendipity. I would like to use it for all of my future sites, but I have had this same problem with three sites in a row. Each one has been triggered by a random adjustment in the back-end configuration.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: templates aren't displayed

Post by garvinhicking »

Hi!

That is really odd. What webserver are you using, do you know that? Apache?

When you use mod_rewrite, can you please post your .htaccess?

I think you changed your permalink paths and removed the "archives" pattern and probably some others. Serendipity requires distinct url paths for each permalink, you cannot set them empty - please try to see if re-adding a path there helps in the problem.

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
scionseo
Regular
Posts: 13
Joined: Fri Aug 26, 2011 7:44 am

Re: templates aren't displayed

Post by scionseo »

Garvin,

I can not thank you enough for how helpful you have been in my experience using Serendipity. We have a reseller hosting account set up with innohosting. It uses Apache version 2.2.19, PHP version 5.3.8, Perl version 5.8.8, and cPanel version 11.30.4.6. The root directory is /home/blowout/.

Here is a link to my .htaccess file: *edited*. I have adjusted it in my unsuccessful attempts to fix the problem once you brought it to my attention, but I changed it back to the original settings. I had not touched it prior to my problems. Thank you again!
Last edited by scionseo on Mon Oct 31, 2011 6:38 am, edited 1 time in total.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: templates aren't displayed

Post by garvinhicking »

Hi!

So you mean reverting the permalink paths back to the original didn't fix the issue?

Can you tell which path/permalink setup you have in your s9y installation?

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
scionseo
Regular
Posts: 13
Joined: Fri Aug 26, 2011 7:44 am

Re: templates aren't displayed

Post by scionseo »

I was able to fix the issue through further testing my permalink paths. Thank you for all your help!
Post Reply