Page 1 of 1

405 method not allowed on comments

Posted: Sun Oct 16, 2005 12:58 pm
by jorainbo
Hi again,

installation went well so far.

I have chosen the embedded version and included it with:

<!--#include virtual="index.php" -->

My indexpage is called "index.shtml" and is located in the same directory as the serendipity installation.

So far everything works, the blog is embedded in my site-layout and it looks great so far.

If I click on the link "comments" beneath each entry, the commentform shows up.

But as soon as I write a comment and hit "preview" or "submit" I get the following error:

405 Method Not Allowed
The requested method POST is not allowed for the URL /blog/index.shtml.


Everything else seems to work.

If I change the Index-page back to "index.php" everything works, however as soon as I click on "comments" it´s no longer embedded in my layout.

Thanks
Jorainbo

Posted: Sun Oct 16, 2005 3:24 pm
by dma147
hi...
already tried to rename your index.shtml to something like "index2.php" or "main.php" or similar? It could be that your webserver doesn't allow POST requests on shtml files.

Posted: Sun Oct 16, 2005 6:06 pm
by jorainbo
dma147 wrote:hi...
already tried to rename your index.shtml to something like "index2.php" or "main.php" or similar? It could be that your webserver doesn't allow POST requests on shtml files.
Yes, I tried. it kinda work, but I get the following error messages now on the page:

Warning: Cannot modify header information - headers already sent by (output started at /home/www/blog/news.php:5) in /home/www/toto99/blog/index.php on line 19

Warning: Cannot modify header information - headers already sent by (output started at /home/www/blog/news.php:5) in /home/www/toto99/blog/index.php on line 20

then the blog-content which displays correct.

Then errors again:

Warning: Cannot modify header information - headers already sent by (output started at /home/www/blog/news.php:5) in /home/www/toto99/blog/include/functions_config.inc.php on line 235

Warning: Cannot modify header information - headers already sent by (output started at /home/www/blog/news.php:5) in /home/www/toto99/blog/index.php on line 25

Posted: Mon Oct 17, 2005 9:08 am
by garvinhicking
Do not use SSI virtual includes for Serendipity. Either use iframes or PHP includes. Your way of including makes trouble with serendipity sending headers; that is why yuo should use ob_start() in your scripts, and include the s9y framework before any other contnet is sent.

Best regards,
Garvin

Posted: Mon Oct 17, 2005 10:08 am
by jorainbo
garvinhicking wrote:Do not use SSI virtual includes for Serendipity. Either use iframes or PHP includes. Your way of including makes trouble with serendipity sending headers; that is why yuo should use ob_start() in your scripts, and include the s9y framework before any other contnet is sent.

Best regards,
Garvin
I definately don´t want to use iframes, I decided to get rid of my frame-layouts and develop my pages in XHTML so iframes is not a choice.
Iframes also always make troubles with the scrollbars. SO I thought SSI Includes would be a good way, but anyway, I use PHP includes now, but I have these error messages, however I probably made some mistakes, I have just included the index.php and made the news.php my index-file (embedded option on). I will try to use ob_start() in my script.

Thanks for now.

Jorainbo