Help - Search - Members - Calendar
Full Version: Comment Not Work, Return "comment Submission Error"
Movable Type Community Forum > Installing and Upgrading > Basic Installation and Setup
WizarKID
hi all,

when trying to post a comment to my blog, I'm greeted with

Comment Submission Error

Your comment submission failed for the following reasons: Invalid request

sad.gif
is it the permission problem?

the server is Windows 2003 + IIS with MT4.2

anyone who can fix the problem for me? thx

btw, my blog link: http://xch.name/blog/
OtherNiceMan
can you post your mt-config (xxxx passwords) and mt check results.
WizarKID
QUOTE (OtherNiceMan @ Aug 24 2008, 09:37 AM) *
can you post your mt-config (xxxx passwords) and mt check results.


sure, my mt-config is:
CODE
################################################################
##################### REQUIRED SETTINGS ########################
################################################################

# The CGIPath is the URL to your Movable Type directory
CGIPath    http://xch.name/mthome/

# The StaticWebPath is the URL to your mt-static directory
# Note: Check the installation documentation to find out
# whether this is required for your environment.  If it is not,
# simply remove it or comment out the line by prepending a "#".
StaticWebPath    http://xch.name/mt-static

#================ DATABASE SETTINGS ==================
#   REMOVE all sections below that refer to databases
#   other than the one you will be using.

##### MYSQL #####
ObjectDriver DBI::mysql
Database xu
DBUser xuchao
DBPassword xxxxxx
DBHost localhost

and the check results goes here:
http://xch.name/mthome/mt-check.cgi
OtherNiceMan
Normally this error is when the comment is not via POST or the posting domain does not match the CGIPath domain or if there is an additional redirect in between.

I see that some posts have comments on them, what has changed since then.
WizarKID
QUOTE (OtherNiceMan @ Aug 24 2008, 12:13 PM) *
Normally this error is when the comment is not via POST or the posting domain does not match the CGIPath domain or if there is an additional redirect in between.

I see that some posts have comments on them, what has changed since then.

so where and how to change the posting domain? I think I don't make any redirect...

actually, I have just moved the blog from a Unix+Apache server to this Win2003+IIS server and the old posts with comments are imported from the old server.
OtherNiceMan
do you have anything like an HTTP 301 redirect from the old server to the new server?
david
It looks like the JavaScript template which publishes the mt.js javascript file on the server needs to be republished and possibly refreshed. The comment form contains a hidden "armor" form field (new with Movable Type 4.2's default templates), but the mt.js file at http://xch.name/blog/mt.js does not contain the necessary code to support the armor field. Without the javascript code to support the armor field in the comment form, Movable Type will reject a comment submission with an "Invalid request" error message.
WizarKID
IT WORKS!!!

thanks david, I just replace the mt.js with the default one and it works now!!! very thanks to you!

OtherNiceMan, anyway, appreciate your help! tongue.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.