Page 1 of 2
Static Page problems
Posted: Sun Mar 27, 2005 5:19 am
by n2ition
Okay, I'm feeling like an idiot right now as I can't seem to get the static plugin to work. I have created the page & titled it "about". I have tried to access it by typing the url as well as creating a link but keep getting a 404 Error.
Here is a copy of my
screen shot
I have included the rewrite code in the .htaccess file but can't get the page to show typing the full or rewritten url.
Any help would be much appreciated.
Re: Static Page problems
Posted: Sun Mar 27, 2005 10:26 pm
by garvinhicking
That's really strange. The URL
http://n2ition.com/serendipity/index.ph ... age]=about should normally do!
Could you try if it works when selecting the 'default' template instead of your custom one? And please post your .htaccess file here, it maybe interfering.
Which version of the static page plugin are you using?
Regards,
Garvin
Posted: Mon Mar 28, 2005 4:16 am
by n2ition
This is getting stranger...now all of a sudden (without me doing anything) it is finally showing the page. However, the text is showing below the data area (below everthing in fact). I tried switching to a different template (default as you suggested) and the same problem occurs.
The rewritten url (/static/about) is still giving me a 404 error but to be honest I can live without that aspect assuming the rest of the plugin works.
Heres a copy of the .htaccess file
Code: Select all
# BEGIN s9y
DirectoryIndex /serendipity/index.php
php_value session.use_trans_sid 0
php_value register_globals off
RewriteEngine On
RewriteBase /
RewriteRule ^static/(.*) index.php?serendipity[subpage]=$1
<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
I am using v0.3 of the plugin.
Thanks for any help you can give.
Posted: Mon Mar 28, 2005 7:40 am
by n2ition
Situation has been resolved...it turns out somehow I had an old copy of the code. I downloaded the latest cvs version and it is working just fine. I still can't get the short URL to work but it is probably an issue with mod_rewrite which I know NOTHING about or even where to start.
Static page problem
Posted: Thu Apr 14, 2005 11:01 am
by Jr Prod
Hi,
I'm using Serendipity v.0.7-beta3 and I'm using the latest StaticPage Plugin.
I followed the instructions found on "
http://www.romulus23.de/s9y-plugins/staticpage-en" but I'm not able to make it work...
If I try the address :
http://www.fosenbauer.com/blog/static/contact.html it just shows the usual blog entries and not the static page.
So, I've got a few questions :
1) what is the Permalink ? Can I just put every URL I want ? Or do I have to use a specified URL like "
http://www.yourblog.com/index.php?seren ... =pagetitle"
2) does the plugin create automatically a static page or do I have to create the folder "static" and than create a page "contact.html" (actually I did, but it just loaded the simple page outside the blog).
Thanks a lot... Oh, the print screen is here :
Thanks !
Re: Static page problem
Posted: Thu Apr 14, 2005 12:03 pm
by garvinhicking
You need to use Serendipity 0.8.
Regards,
Garvin
Posted: Thu Apr 14, 2005 12:09 pm
by Jr Prod
Ah, OK. Well, tomorrow is the D day, so I'll install it tomorrow afternoon...
Second little question : I'm using the skin (theme) Serendipity v2.3 from Tom Sommer (update 12/8.2004) - will it still be available under S9Y 0.8 ? Because as now everything will work with css...
Thanks a lot !
Posted: Thu Apr 14, 2005 12:38 pm
by garvinhicking
Yes, we have ported the default theme from Tom to the new version; the frontend by default will not change
Regards,
Garvin
Posted: Mon Apr 18, 2005 10:38 am
by Jr Prod
Hi,
sorry to be so dumb, but I still have the same problem
I'm using the newest S9Y version now (0.8)and I have the newest static page plugin. But it still doesn't work.
http://www.fosenbauer.com/blog/static/contact.html just shows me the page without the S9Y formatting,,, Why ?
Subsidiary question : once it will work, is it possible to rename the page to *.php (and to change also the permalink to *.php) ? Or would it work if I put some php in the *.html page ?
Thanks a lot, and sorry to ask all those questions. I don't understand why is it so easy to install for everybody and not for me...
Thanks!
Posted: Mon Apr 18, 2005 11:14 am
by garvinhicking
Hi!
Can you post a screenshot of the configuration section of your static page plugin? I think there's something wrong in the way you've setup the plugin.
Renaming the page to .php is not possible, no. And no, you cannot move PHP into the plugin. You need to create your own plugin to execute PHP code. Example plugins for that exist as 'serendipity_event_externalphp' in the plugins repository.
Best regards,
Garvin

Posted: Mon Apr 18, 2005 11:56 am
by Guest
Hi again,
thanks yor your quick answer. Here are the screenshots :
Staticpage plugin :

-
From my FTP program - the contact.html file is created in the
www.fosenbauer.com/blog/static folder...

What's wrong ?
And thanks for the hint concerning the php nugget...

Posted: Mon Apr 18, 2005 11:58 am
by Jr Prod
Sorry, forget to sign...
Regards,
Jr Prod
Posted: Mon Apr 18, 2005 12:46 pm
by garvinhicking
Hehe
The problem is, the static pages are maintained virtually. By creating an actual FILE in the directory actually overrides any content.
You do not need to create any files. Just paste all your content from the prepared file into the textarea on the plugin configuration.
Serendipity will then virtually serve that file, just like it virtually serves files from your /archives/3-entry.html folder. Those files also don't really exist
The URL shorthand names needs to be set to 'contact' only, not a full path.
Best regards,
Garvin
Posted: Mon Apr 18, 2005 1:33 pm
by Jr Prod
Hum... thanks...
2 options :
1) my server doesn't support that (not possible, because the rest of S9Y work well)
2) i'm too stupid to use this feature,,,
- I deleted the "static" directory (and the contact.html page)
- i pasted the HTML code in the plugin's textarea
- i changed the config as you said (e.g. the screenshot)
And it still doesn't work...
http://www.fosenbauer.com/blog/static/contact.html shows the usual blog entries but not that f*#" page...
Could someone shoot me, please ?

Posted: Mon Apr 18, 2005 1:43 pm
by garvinhicking
My guess is that you did not enter the absolute HTTP path in the permalink, but entered an HTTP URL instead.
Because, calling the shorthand BC-URL
http://www.fosenbauer.com/blog/index.ph ... e]=contact works fine.
I suggest to set your HTTP Permalink to /blog/static/contact.html.
BTW: You may not paste HTML content with <body> and <html> contents. Those are already emitted by Serendipity.
Regards,
Garvin