• Resolved theamila

    (@theamila)


    Hey everyone,

    I can’t submit any Comments on our Blog (https://blog.mila.com) . If i fill out the form and click “Submit”, theres this error message:

    ERROR: please fill the required fields (name, email).

    But it makes no sense, since i filled out all the required fields. I don’t know where to look in the code and i’m a beginner at php and all that stuff..Can someone help?

Viewing 5 replies - 1 through 5 (of 5 total)
  • hy theamile,

    do u use a plugin for the commenting?

    if not, paste your current code here -> https://pastebin.com/ and post the link to the code so i can review it.

    Kind regards,

    Larsen

    Thread Starter theamila

    (@theamila)

    i didn’t see or find a plugin (except contact form 7, but i don’t know how and where it is linked to the comments, if it is linked at all).

    here is the link for the comments.php file: https://pastebin.com/ZYKBKh6n
    (we use a customized theme)

    in case you need some other files, you can telll me (theres also some code in the single-post.php for displaying the comment form, but i don’t think that it is relevant for the problem)

    greetings,
    thea

    Hy Thea,

    Try this:

    <div class="row">
                                                            <div class="col-xs-12 col-sm-12 col-md-4">
                                                                            <div class="form-group">
                                                                                    <label for="Name">Name*</label>
                                                                                    <input name="author" type="text" class="form-control" id="author">
                                                                            </div>
                                                                    </div>
                                                                    <div class="col-xs-12 col-sm-12 col-md-4">
                                                                            <div class="form-group">
                                                                                    <label for="Email">E-mail*</label>
                                                                                    <input name="email" type="email" class="form-control" id="email">
                                                                            </div>
                                                                    </div>
    
                                                                    <div class="col-xs-12 col-sm-12 col-md-4">
                                                                            <div class="form-group">
                                                                                    <label for="Website">Website</label>
                                                                                    <input name="url" type="url" class="form-control" id="url">
                                                                            </div>
                                                                    </div>
                                                            </div>

    I have changed the id of the name field to author.
    i also added a name attribute to all three fields.

    Let me know if that doesn’t work, i will come up with something else.

    Kind regards,

    Larsen

    Thread Starter theamila

    (@theamila)

    Hey Larsen ??
    it worked!! Thank you really much!

    Greetings,
    Thea

    Hy Thea,

    Great!
    Good luck.

    Kind regards,

    Larsen

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘ERROR on Comments’ is closed to new replies.