ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Problem with comment form

July 15, 2007 7:13am

Subscribe [1]
  • #1 / Jul 15, 2007 7:13am

    iRouge

    17 posts

    Hello

    I’m workin on a redesing for my Website and more or less everything works fine.

    But I have a big problem with the comment form and I just can’t solve if!

    If I will submit a new comment i get a white screen with the following url

    <a href="http://www.rouge.ch/blog/index.php/mac/comments/neues_handy/?ACT=1&RET=http&#x3A&#x2F&#x2Fwww.rouge.ch&#x2Fblog&#x2Findex.php&#x2Fmac&#x2Fcomments&#x2Fneues_handy&#x2F&URI=&#x2Fmac&#x2Fcomments&#x2Fneues_handy&#x2F&PRV=weblog&#x2Fpreview&XID=6244fc6d9dc9ea4d527a6f2fe6019ae7532950b4&entry_id=647&site_id=1&comment=Testeintrag&submit=Submit+Comment">http://www.rouge.ch/blog/index.php/mac/comments/neues_handy/?ACT=1&RET=http://www.rouge.ch/blog/index.php/mac/comments/neues_handy/&URI;=/mac/comments/neues_handy/&PRV=weblog/preview&XID=6244fc6d9dc9ea4d527a6f2fe6019ae7532950b4&entry_id=647&site_id=1&comment=Testeintrag&submit=Submit+Comment</a>

    or I also saw the Message: “Invalid GET Data”

    The code in the template is the following:

    <form id="commentform">
    {exp:comment:form preview="weblog/preview"}
    {if logged_out}
    <input type="text" name="author" id="author" value="{name}" size="22" tabindex="1" />
    <label for="author"><strong>Name</strong></label>
    
    <input type="text" name="email" id="email" value="{email}" size="22" tabindex="2" />
    <label for="email"><strong>Mail</strong> (wird nicht publiziert)</label>
    
    <input type="text" name="url" id="url" value="{url}" size="22" tabindex="3" />
    <label for="url"><strong>Webseite</strong></label>
    {/if}
     {if captcha} <input type="text" name="mcspvalue" id="mcspvalue" value="{captcha_word}" size="22" tabindex="4" />
        <label for="mcspvalue"><small>Bitte das eingeblendete Wort eingeben</small></label>
    {captcha}
    {/if}
    
    
    
    <textarea name="comment" id="comment" cols="100%" rows="10" tabindex="4">{comment}</textarea>
    
    <input name="submit" type="submit" id="submit" tabindex="5" value="Submit Comment" />
    
    
        
            <input type="checkbox" name="subscribe" id="subscribe" value="subscribe" {notify_me} style="width: auto;" />
            <label for="subscribe">Bei neuen Kommentaren benachrichtigen?</label>
        
    {if logged_out}
        
            <input type="checkbox" name="subscribe" id="subscribe" value="subscribe" {save_info} style="width: auto;" />
            <label for="subscribe">Persönliche Informationen zwischenspeichern?</label>
        
    {/if}
    
    {/exp:comment:form}
    </form>

    Can someone please give me a hint or an idea what i have to do? It’s the last issue before a can go live with the new design!

    thank you in advance an greetings form Switzerland

  • #2 / Jul 15, 2007 9:54am

    Robin Sowell

    13255 posts

    What build and version are you running- and is it possible to link to an example page so I can check the rendered code and do a quick test?

    Also- I’m going to shift this over to the ‘Tech’ forum where it’s a bit of a better fit.

  • #3 / Jul 15, 2007 10:14am

    iRouge

    17 posts

    Hi Robin
    Ok, sorry for misposting!
    The rendered Site is here: http://www.rouge.ch/blog/index.php/mac/comments/neues_handy/

    thank you

  • #4 / Jul 15, 2007 10:27am

    Robin Sowell

    13255 posts

    Hm- yep, see exactly what you mean.  I went over to the main page to see if I could find another form- want to see if the return is the same or you run into a problem with that.  Tried the main page search- and I got a mysql error on that.  I THINK that one was due to a bug that has since been fixed.

    So I think the first thing I’d do?  Make sure you’re running the latest build-  Build 20070708.  There have been a number of bug fixes since 1.6 was released.  Now- I haven’t seen a bug related to what’s happening with the comment form, but my next bet would have been possible file corruption during upload.  So- upgrading to the latest build may well take care of that issues as well.

    Build upgrades are quick and easy- mostly a matter of uploading fresh files.  That’s assuming you’re already running a 1.6 version.

    But- make sense?  Go ahead and grab a fresh copy, make sure you’re running the latest version, latest build.  Let’s see if that helps.  (Should on the search, for sure.)

  • #5 / Jul 15, 2007 5:54pm

    iRouge

    17 posts

    Yes exactly, the search story is due to the this bug. I didn’t update to the last built. But I did it at this moment, but no changes. I still got the same probelm.

    I tought more that there is a error in my code because the same procedure in my old design works without a problem as you can test here: http://www.rouge.ch/blog/index.php/vr/comments/neues_handy/ Try to leave a comment and you will see that it works fine.

    The other form i used in the new design is the email form which you can find here:http://www.rouge.ch/blog/index.php/mac/about
    and it seems to work fine

  • #6 / Jul 15, 2007 6:17pm

    Robin Sowell

    13255 posts

    Hm- well, ditch the extra <form id=“commentform”> tags- closing one as well.  The comment tag will generate its own- that could well cause an issue.  See if that helps.

  • #7 / Jul 16, 2007 9:39am

    iRouge

    17 posts

    Bingo! The second <form id> was the problem. Now, everything works fine. Thank you for your assitance!

    Regards from Switzerland

  • #8 / Jul 16, 2007 11:53am

    Robin Sowell

    13255 posts

    Sweet- I should have caught it the first time around.  Glad that did the trick.

  • #9 / Jul 17, 2007 2:44pm

    iRouge

    17 posts

    Yes, bud it’s still a little bit bit weird. In the old theme the second form tag didn’t matter at all.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases