WordPress comments doomed :-(

Im developing my own wp theme, actually almost finished dev. it, and cant seem to make the darn comments to work.

My problem is that, when a user tries to submit a comment, a error page is received 500: ERROR: please fill the required fields (name, email).
If i log in with my user/pass and submit a comment, it magically works.
If I disable from the dashboard ‘Comment author must fill out name and e-mail‘, comments are submited, but only the comment text, and not the author name, or email, and the same goes for notifications. It seems like the author and email are not being passed through.
I tried using <?php comments_template(); ?> tag, without any comments.php present, and it still wont work; copy/pasted comments.php and twentyeleven_comment() from functions.php from twentyeleven theme and nothing, same error.

I’m sure its a theme related problem, because if I revert back to twentyeleven theme, comments work properly, every input fileds gets submitted.

Also tried:

wp reinstall

deactivate all plugin/reactivate/even removed all

checked the dashboard to enable/disable comments in settings, and in every post settings

Thanks for the suggestion cybershot , I was going to use a framework if I didn’t manage to solve this issue.
However, after spending some hours looking for code missing commas :), I FINALLY managed to figure it out.

The problem was in header.php, where i was calling for a global.js with some custom jq functions of my own. After commenting out that line, comments worked like charm; I renamed the file to another name, and no more problems with comments what so ever.

Maybe wordpress uses another file with the same name, or simply doesn’t like the name, I frankly don’t know.

Tips

What now? I have some ideas for you.

Go explore CodePen!

As a front end designer and developer, you should have an account on CodePen so you can save your snippets, present your ideas, and engage with the rest other front end folk. I'd encourage you to go PRO as well, to unlock the full power of CodePen.

Get the newsletter!

You should sign up for the CSS-Tricks newsletter. It's a clean copy of all the blog posts each week, combined together, right to your inbox. If email isn't your thing, there is an RSS feed, iTunes, and lots of other ways to subscribe.

Listen to ShopTalk!

Subscribe to The Lodge!

The Lodge is a members-only, ad-free video learning area here on CSS-Tricks. Just like the free screencasts, but organized into four large complete series. Membership is also the #1 best way to support CSS-Tricks.

We can do the real footer now.

Site Links

Colophon

CSS-Tricks* is created, written by, and maintained by Chris Coyier. It is built on WordPress, hosted by MediaTemple, and the assets are served by MaxCDN. The fonts are Source Sans and Source Code Pro. It is made possible by viewers like you who subscribe to The Lodge and through advertising for products and services I like.