Page 1 of 1

Comment Posting Fails Silently

Posted: Mon May 11, 2009 2:24 am
by Eiki
First, thanks for the great software and for this convenient and well-designed forum system. My issue is probably stupid simple, but I'm at wit's end so here goes: new comments can't be posted on my s9y 1.4.1 install at http://www.eikimartinson.com . Attempting to post a comment fails completely silently -- the page reloads but nothing at all happens.

The template is one of my own making (not quite done with it yet), but I know that's not the problem as I've tried it with the default template with the same results.

I've tried turning the spamblock plugin off, but that had no effect. Interestingly, with or without the plugin the captcha still appears (it also still appears if I keep the spamblock plugin but disable captchas) -- this behavior may be the result of laziness in my template, though.

There is nothing in my php error or warning logs; I have error reporting turned to the highest (most verbose) setting for php.

It's possible this is related to a not-quite entirely upgraded database -- I have the same database on a local machine running s9y 1.3.1, and THAT setup can accept comments. Are there any changes to the schema that need to get made?

Any ideas? I appreciate any help you can give me!

Re: Comment Posting Fails Silently

Posted: Mon May 11, 2009 9:12 am
by garvinhicking
Hi!

That's a quite nice template you've got there!

I just checked your site, and what came to my attention was that the form URL was:

Code: Select all

http://www.eikimartinson.com/?url=archives/52-Cast-Iron-Tilapia.html#feedback
however, to get URL rewriting to work properly, it should actually be:

Code: Select all

http://www.eikimartinson.com/index.php?url=archives/52-Cast-Iron-Tilapia.html#feedback
Can you check your s9y configuration if you've got the "indexFile" option maybe set to an empty string? If so, insert "index.php" there...

HTH,
Garvin

Re: Comment Posting Fails Silently

Posted: Mon May 11, 2009 5:31 pm
by Eiki
Hi Garvin!

Thanks for your speedy response and for your kind words. I checked indexFile, it is set to 'index.php' -- but now that I think of it I do have some custom (non-serendipity) stuff in my .htaccess; maybe that is fouling things up here. My next step will be to look into that. Thanks again!

--Eiki

Re: Comment Posting Fails Silently

Posted: Mon May 11, 2009 9:14 pm
by Eiki
Indeed, .htaccess did contain the following misguided attempt at SEO:

Code: Select all

RewriteCond %{THE_REQUEST} (index.php) [NC]
RewriteRule ^(.*)index.php$ http://www.eikimartinson.com/$1 [R=301]
This was intended to prevent search engines indexing http://www.eikimartinson.com and http://www.eikimartinson.com/index.php separately. I commented these lines out, restarted apache, and sure enough, commenting works. PHP output did correctly contain index.php (thanks for getting me on the right track with your last comment) but the rewrite rule was getting in the way.

Thanks again!