|
Post by bluefoo on Aug 10, 2009 11:09:15 GMT -5
Greetings all, hopefully just a quick question.
I've got a greymatter install that I've upgraded from 1.7.3 to 1.8.2 and in this process comments have broken.
Its producing the following error message reliably:
No valid information was given.
Now this can only come from gm-comments.cgi and appears when newcommentbody, newcommentauthor and gmsearch are all empty.
I've checked the template and it includes:
<input name="newcommentauthor" size="30" type="text" class="text" />
and
<textarea cols="25" name="newcommentbody" rows="10" class="text">
And just to be sure I added a gmsearch:
<input name="gmsearch" type="hidden" value="no" />
However I still get this error message.
I quickly edited gm-comments.cgi to add a bit of perl to dump the $IN hash to a file and this never dumps anything.
I've checked and Gm_Web is the 1.8.2 version.
So can anyone guess why this form isn't submitting correctly?
If more details (full templates, chunks of file etc) are wanted they can be provided.
thanks in advance.
|
|
|
Post by Carlos Phelps on Aug 12, 2009 23:40:49 GMT -5
Do you have a url of a page I could try the comment feature to see what going on?
|
|
|
Post by bluefoo on Aug 13, 2009 4:49:19 GMT -5
|
|
|
Post by Carlos Phelps on Aug 13, 2009 23:35:32 GMT -5
It appears you have improperly nested comments in your HTML starting at line 217 on the page the link was for, see following code section:
<!-- <td> <script type="text/javascript"> <!--// function commentEmoticon(code) { var cache = document.newcomment.newcommentbody.value;
document.newcomment.newcommentbody.value = cache + " " + code; document.newcomment.newcommentbody.focus(); } //-->
Fix this and it should work.
|
|
|
Post by bluefoo on Aug 16, 2009 17:35:20 GMT -5
It appears you have improperly nested comments in your HTML starting at line 217 on the page the link was for, see following code section: <!-- <td> <script type="text/javascript"> <!--// function commentEmoticon(code) { var cache = document.newcomment.newcommentbody.value;
document.newcomment.newcommentbody.value = cache + " " + code; document.newcomment.newcommentbody.focus(); } //-->
Fix this and it should work. Thanks for that, I put that in to try and determine if the emoticon code was causing errors. I've sorted the commenting out to make sure the emoticon code is now cleanly commenting however this behaviour persists and adding comments is still impossible.
|
|
|
Post by Carlos Phelps on Aug 16, 2009 21:09:13 GMT -5
The code section was not a correction, it was just to show you where the problem was.
|
|
|
Post by bluefoo on Aug 18, 2009 2:36:08 GMT -5
Thanks, however having the emoticon code included or cleanly commented out doesn't seem to affect the issue that comments cannot be posted as gm-comment.cgi appears to receive null data.
Do you suspect the issue is in the templates? Should I try resetting these back to the 1.8.2 defaults?
|
|