Help - Search - Members - Calendar
Full Version: Mt Upgrade Corrupted Commenting System
Movable Type Community Forum > Using Movable Type > Commenting System
bradnelson
After upgrading to MT4, my commenting system quit working. It would return an error anytime someone tried to comment. I messed around with the coding, and ended up copy-and-pasting the default commenting script into my archive template. This, however, still does not work. Anytime I try to post a comment, I get "Comment Submission Error Your comment submission failed for the following reasons: Invalid request"

I'm not super HTML or PHP savvy, and knew just enough to get my site designed the way I wanted. So I'm really stumped as to what is causing the problem. You can go to this page and test my commenting system. I've also posted my entire template script here for you to review. Any help is appreciated!
OtherNiceMan
This can be a few things

Using GET instead of POST (looked at source, not the case).
Mismatched URL: Are you using any URL rewriting or redirects? So of the previous links use www.bradnelson.com while others are using bradnelson.com
bradnelson
I've been adding and removing various parts of the code and testing it (replacing my stuff with the default templates). My commenting script works just fine set inside the default page template, but if I stick the commenting module inside my custom page template, it errors. So something outside of the commenting form seems to be throwing it off.
OtherNiceMan
I don't know if this helps http://forums.sixapart.com/index.php?showt...st&p=265202
bradnelson
QUOTE (OtherNiceMan @ Oct 21 2008, 12:29 PM) *


Shouldn't the JavaScript all be current from the MT4.2 install? That being said, I don't see any occurrence of "armor" in the mt.js file.
OtherNiceMan
Yes you should be using the mt.js that matches your version.

If armor is missing from for js file then that could be the problem.
bradnelson
Well, if I use the default MT template, I have no problems. But something in my custom template is throwing it off. I've tried adding and removing various parts of it in and out of the default template and can't pin it down.

EDIT:
Well, I discovered that the problem lies in my CSS file. Due to the simplistic design I'm using, the only thing I'm using CSS for is to set hyperlink attributes. While the CSS works just fine for this, it is corrupting the commenting system. When MT pulls the default CSS file, it works. When it pulls mine, it doesn't. Here is mine:

QUOTE
A:link { Color:336699; Text-Decoration:None;}
A:active { Color:000000; Text-Decoration:None; }
A:visited { Color:336699; Text-Decoration:None;}
A:hover { Color:000000; Text-Decoration:Underline;}


Why is this happening? And how do I have to change it?
OtherNiceMan
I don't know, why it would be happening. CSS only affects the presentation of the page, no the functionality.

If you use the default templates, but your own stylesheet do you see the problem?
bradnelson
Running the default template but with my stylesheet does not work.

It's behaving as if there is something in the default stylesheet that is required for the comments to function, which doesn't make sense. Unless there is a formatting issue with my stylesheet.
OtherNiceMan
Can you post your stylesheet and I'll stick on my test system.

I take it you are use classic blog?
bradnelson
Stylesheet

Again, all I was using my stylesheet for was to dictate link formatting.
OtherNiceMan
Can I just check that only those 4 lines are in your css file, with no other css files or styles applied?

At the moment I have created a blog on my test system accepted all the defaults, pasted the CSS in at the bottom of the stylesheet, rebuilt but have not been able to reproduce.
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-2009 Invision Power Services, Inc.