I've just installed serendipity but layout is ugly

Having trouble installing serendipity?
ruibo
Posts: 3
Joined: Wed Jan 04, 2006 7:33 pm

I've just installed serendipity but layout is ugly

Post by ruibo »

I've just installed serendpity and tried setting to a different style but it doesn't seem to work. On the admin I clicked the icon to set the style but nothing appears on the front page. Heres the domain if you want to take a look, lineage2adenaguide.com
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

Your stylesheet is not found, so you're getting default HTML rendering. It's pretty ugly. Here's the error I get:

Code: Select all

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<HTML><HEAD>
<TITLE>404 Not Found</TITLE>
</HEAD><BODY>
<H1>Not Found</H1>
The requested URL /serendipity.css was not found on this server.<P>
<P>Additionally, a 404 Not Found
error was encountered while trying to use an ErrorDocument to handle the request.
<HR>
<ADDRESS>Apache/1.3.34 Server at lineage2adenaguide.wowgoldguide.com Port 80</ADDRESS>
</BODY></HTML>
It's possible this is because you're using permalinks when your host doesn't allow them. Could also be your paths. Come to think of it, could be a lot of things.

To start off with, go to your admin and make sure your path configuration is correct. Pay particular attention to the relative path and full path -- these are filesystem paths, not URL paths. Also check the URL: it should be the entire URL to your blog, except the index.php.

Second, check your permalinks. Each permalink should begin with a unique string. You can't use / for any of them. You can't use category/ for two different permalink types.

Finally, under "Appearance and Options", check the URL Rewriting. Try both of the other settings.

If none of this helps, ask again. Include these settings, so we know what we're talking about, and your Serendipity, PHP, and MySQL versions. We'll get it fixed, one way or another.

Good luck!
Judebert
obex
Posts: 2
Joined: Fri Feb 10, 2006 4:21 pm

Post by obex »

HI,

I have exactly the same problem. Only, the site is on my own PC, using Apache on a windowsXP system. I wasn't aware of problems untill a friend told me there was no layout. I followed the advice you gave and I noticed that if I changed URL rewriting to anything else but 'disable' I too have no lay-out anymore, so I guess this is the problem. Also the paths are 100% certain to be correct and the permalinks are still in the default configuration. I didn't change anything like permissions and the documentation tells me that the installation comes with good permissions.

Now I'm looking in my Apache httpd.conf to change allowoverride to All, but after I thougth I did change it, it still didn't work. If I understand the comments in the conf-file correctly, the default should remain at none and for directory www (in my case) all. ?

After that I enabled mod_rewrite and changed url rewrting to using mod_rewrite. Lay-out worked again on my own PC, but not with external pc's.

I totally don't know what else I could do.
I don't now if another problem I have could be related, I'm going to ask that in another thread, but for your information: after installing spartacus, I cannot get a list of sidebar-plugins to install, it fetches the file and all, but it doesn't show it. The other plugin-configuration works fine, only sidebarplugins doesn't.

edit:
php version 5.1.2.2
mysql version 5.0
serendipity version 0.9.1

thanks for your help
obex
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Your URL would help.

My guess is that your URL points to a localhost or so for the stylesheet.

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/
obex
Posts: 2
Joined: Fri Feb 10, 2006 4:21 pm

Post by obex »

I put everything on the server of a friend and now everything works. I haven't figured out why yet, but it works now, so I'll work on his server from now on. thanks for your time
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

Probably just what Garvin said: your blog returned an internal IP address, like 192.168.x.y or 10.x.y.z. When your inside computers tried to access it, no problem. When outside computers try to access it, their routers (locally or at the ISP) refuse to go outside their own nets.

This is a common problem with NAT -- also known as masquerading. It's not enough to source-mangle the IP address of the server: the content has to be mangled too, and firewalls/routers just don't do it. The server must use the gateway IP, or the software has to be set up to use the gateway IP for all its content.

In Serendipity, you do that by changing the "URL to blog" to include the gateway IP.
Judebert
---
Website | Wishlist | PayPal
trishac
Regular
Posts: 5
Joined: Thu May 10, 2007 12:59 am

Same Problem

Post by trishac »

I am also having the same problem. My blog is at http://www.theancientpath.org/serendipity. Any suggestions? I've checked everything you listed above, and everything seems to be in working order. When I view the source, the css is serendipity.css from the main serendipity folder. That file doesn't exist at all. I have a serendipity.css.php file in that folder. Is that it? If not, what shall I do. The zipped files for serendipity didn't have this file at all.

Thanks so much for any information you can provide.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Same Problem

Post by garvinhicking »

Hi trishac!

Please go to your Serendipity Configuration screen http://www.theancientpath.org/serendipi ... _admin.php) and go to the section where you can change "URL Rewriting".

Change that to "None", click "Save" and then your blog should properly work.

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/
trishac
Regular
Posts: 5
Joined: Thu May 10, 2007 12:59 am

Still having problems

Post by trishac »

Thanks so much for the suggestion! Unfortunately, it was originally set to Disable URL Rewriting, so I tried the other two features. But none of the options have changed anything. It seems like I don't have all the files or something. When I click on Open Administration from the main page, the page can't be found. It's looking for admin.php instead of seredipity_admin.php. So as a workaround, I just manually type in the correct path, but this makes me wonder what else is wrong with this build. I just downloaded the latest build two days ago.
Lavene
Posts: 2
Joined: Thu May 10, 2007 8:11 pm

Post by Lavene »

I just installed Serendipity and suffered the same problem: just plain HTML. Came here and tried everything in this thread to no avail.

However, I stumbled across a solution (on my install anyway): Turned out "Configuration --> Appearance and options --> Is embeded" defaults to "Yes". I set it to "No" and everything was just dandy :)

Thought I'd pop in and mention that.

Tina
trishac
Regular
Posts: 5
Joined: Thu May 10, 2007 12:59 am

Getting Closer

Post by trishac »

My default was set to No, so that was no help, but I can't tell you how much I appreciate the suggestion!

Here's the weird thing, I just logged into the administration side to check the setting, the that section looks beautiful! It looks like the administration portion of the blog is finding the CSS. But the regular side still is not finding it. How weird is that?
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

Actually, the admin section doesn't use the same CSS.

Which was set to No? The embedded option, or the URL rewriting option?
Judebert
---
Website | Wishlist | PayPal
trishac
Regular
Posts: 5
Joined: Thu May 10, 2007 12:59 am

Getting Closer

Post by trishac »

The Embedded option was set to No, and the URL rewriting option was originally set to Disable URL Rewriting. I changed the URL rewriting option in order to try the other options. It's now set to disable.
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

Hmmm. Trishac, I just visited your website, and it looks fine. The theme isn't one of my favorites (too sparse), but it's definitely loading the CSS.

Perhaps a browser refresh is in order to clear the cache? You can also try installing the template changer plugin, which sets the CSS to uncached (as I recall).
Judebert
---
Website | Wishlist | PayPal
Lavene
Posts: 2
Joined: Thu May 10, 2007 8:11 pm

Post by Lavene »

Looks fine here too trishac... :)
Post Reply