template is gone [white]

Having trouble installing serendipity?
verbatim
Regular
Posts: 43
Joined: Sat Mar 12, 2005 10:53 pm

template is gone [white]

Post by verbatim »

when i install there is no template at all. the link to 'Open login screen' is normally http://www.mysite.com/index.php?/admin but now when i nstall a blog it is http://www.mysite.com/admin

only when i manually type the admin address and click on the configuration link twcie does the template properly appear and the open login screen link work properly.


Why is this...

Just curious
mgroeninger
Regular
Posts: 546
Joined: Mon Dec 20, 2004 11:57 pm
Contact:

Post by mgroeninger »

Without looking at the site, it sounds like URL rewriting is turned on...

Especially if
http://www.mysite.com/index.php?/admin
has become
http://www.mysite.com/admin
verbatim
Regular
Posts: 43
Joined: Sat Mar 12, 2005 10:53 pm

it says url rewriting is off

Post by verbatim »

but thanks for the reply.
mgroeninger
Regular
Posts: 546
Joined: Mon Dec 20, 2004 11:57 pm
Contact:

Post by mgroeninger »

Mind giving us a little more info? Or perhaps an installation to look at?

IIS can do something similar to this (because $_SERVER['REQUEST_URI'] is not set), but I believe there was a patch to 0.8.1 which corrects this.
verbatim
Regular
Posts: 43
Joined: Sat Mar 12, 2005 10:53 pm

Post by verbatim »

sorry for not replying sooner.

you were right, it was the url rewrite section....

Many thanks
toontastic

Post by toontastic »

Sorry for posting a question in a question but I thought it was related. I had this same problem when I installed for the first time yesterday (I have since unistalled and I'm in the process of installing again) are you saying that the URL rewrite doesn't work as yet or does something need to be done to make it work and make the screen not appear white ?

Thanks in advance.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Toontastic, the URL rewrite only works if you have configured your Apache properly (AllowOverride All for the serendipity directory) or have installed mod_rewrite.

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/
toontastic

Post by toontastic »

I don't have control over the server, but I assume it does work (the apache rewrite) as I use the SMF message board and that uses the same technique to rewrite the URLs and I've had no problems with that. Maybe the htaccess file was wrong on mine ?
toontastic

Post by toontastic »

Well the problem still seems to be happening so I'm assuming the apache info is wrong or I need that mod. I might as well try the mod first so does anyone have any information about where I can get it ? Thanks for all the help.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Mod_rewrite is a apache tool that needs to be installed by the server admin.

What is the URL to your SMF message board and your blog? I'd like to see the rewriting that's used.

Also please tell me the contents of your .htaccess file in your blog directory.

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/
toontastic

Post by toontastic »

The message board is at http://www.newcastle-online.com/newnufcforum1/index.php (the home of the script is at www.simplemachines.org) as you can see it seems to work ok on there. Please excuse the menu along the top it's still being tested and we're struggling to get the CSS right for the menu.

The blog is at www.newcastle-online.com/nufc_news I've got it set to no for the url rewrites so it looks like it works at the minute but the URLs aren't search engine friendly.

The .htaccess file is whatever the blog has changed it to itself as I've just set it as 777 and let the blog change it.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

On your forums I cannot see rewritten URLS, can you give me an example? http://www.newcastle-online.com/nufcshop/ and most other menu items do not work and give a 404 error.

Please tell me the contents of your .htaccess, not the permissions :)

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/
toontastic

Post by toontastic »

Oops forgot it was in maintance mode so you wouldn't have been able to see anything other than the links along the top :) Yeah the top links don't work yet.

An example of a link :

http://www.newcastle-online.com/newnufc ... ,14.0.html

I know I only gave the permissions :) What I was saying is whatever the program creates is what is in .htacess. I'll do it again though and then send you whats in the .htaccess file.

Right done that and I checked the file and it said:
# BEGIN s9y
ErrorDocument 404 /nufc_news/index.php
DirectoryIndex /nufc_news/index.php
php_value session.use_trans_sid 0
php_value register_globals off

RewriteEngine On
RewriteBase /nufc_news/
RewriteRule ^archives([/A-Za-z0-9]+)\.html index.php?url=/archives/$1.html [L,QSA]
RewriteRule ^([0-9]+)[_\-][0-9a-z_\-]*\.html index.php?url=$1-article.html [L,NC,QSA]
RewriteRule ^feeds/(.*) index.php?url=/feeds/$1 [L,QSA]
RewriteRule ^unsubscribe/(.*)/([0-9]+) index.php?url=/unsubscribe/$1/$2 [L,QSA]
RewriteRule ^approve/(.*)/(.*)/([0-9]+) index.php?url=approve/$1/$2/$3 [L,QSA]
RewriteRule ^delete/(.*)/(.*)/([0-9]+) index.php?url=delete/$1/$2/$3 [L,QSA]
RewriteRule ^(admin|entries)(/.+)? index.php?url=admin/ [L,QSA]
RewriteRule ^archive$ index.php?url=/archive [L,QSA]
RewriteRule ^categories/([0-9]+) index.php?url=/categories/$1 [L,QSA]
RewriteRule ^(index|atom|rss|b2rss|b2rdf).(rss|rdf|rss2|xml)$ rss.php?file=$1&ext=$2
RewriteRule ^plugin/(.*) index.php?url=plugin/$1 [L,QSA]
RewriteRule ^search/(.*) index.php?url=/search/$1 [L,QSA]
RewriteRule ^(serendipity\.css|serendipity_admin\.css) index.php?url=/$1 [L,QSA]
RewriteRule ^authors/([0-9]+) index.php?url=/authors/$1 [L,QSA]
RewriteRule ^index\.(html?|php.+) index.php?url=index.html [L,QSA]
RewriteRule ^htmlarea/(.*) htmlarea/$1 [L,QSA]
RewriteRule (.*\.html?) index.php?url=/$1 [L,QSA]

<Files *.tpl>
deny from all
</Files>

<Files *.sql>
deny from all
</Files>

<Files *.inc.php>
deny from all
</Files>

<Files *.db>
deny from all
</Files>

# END s9y
Thanks again
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Okay, thank you for that information.

The links that your forum creates are in fact NOT Apache Errorhandling URLs. They use a "PATH_INFO" feature, which is different from our method (it has its advantages and disadvantages).

That means, your server does not support Apache Errorhandling, and your server does not support mod_rewrite.

You need to go to your s9y configuration and set URL Rewriting to "None" then. Or you need to contact your sysadmin and tell him to install mod_rewrite or make your s9y directory "AllowOverride All".

After changing this, your htaccess should only look like this:

Code: Select all

# BEGIN s9y
DirectoryIndex /nufc_news/index.php
php_value session.use_trans_sid 0
php_value register_globals off

<Files *.tpl>
    deny from all
</Files>

<Files *.sql>
    deny from all
</Files>

<Files *.inc.php>
    deny from all
</Files>

<Files *.db>
    deny from all
</Files>

# END s9y
Good luck and have fun,
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/
toontastic

Post by toontastic »

Ahh right, thanks for all the help, I'll see if I can get the server guys to sort this out for me.
Post Reply