postmatic / postmatic-social

Lightweight social commenting for WordPress
GNU General Public License v2.0
5 stars 3 forks source link

Problem with email field when used without Postmatic #49

Closed johnpuddephatt closed 8 years ago

johnpuddephatt commented 8 years ago

Having a problem with email values going astray when this plugin is used without Postmatic and a comment is left without connecting/linking to a social network. The problem doesn't occur with Postmatic is enabled.

Steps to reproduce:

• This plugin is installed with twitter login enabled (not tested with other networks) • The wordpress discussion setting 'Users must be registered and logged in to comment' is unchecked • A comment is added without using social login (i.e. just by filling out the name/email/website/comment fields) • the email field clears when submit is clicked • the value in the email field is not stored with the comment, and if the 'Comment author must fill out name and e-mail' discussion setting is checked then an error message is received

Can anyone confirm?

johnpuddephatt commented 8 years ago

Not sure if it's related but does anyone have any idea why the submitted email address is being stored in two different cookies? (or at least is when things are working – in the scenario above neither cookie is created!)

There's the wordress comment_author_email_ one but there's also a pms_comment_author_email_ one too...

johnpuddephatt commented 8 years ago

Ah ok, looks like the pms_comment_author_email_ cookie is used for the postmatic email notifications input. Confusingly (I think) it's being set even if I don't fill that field in...

Vernal commented 8 years ago

Hey John,

I'll try to take a look at that later today. I haven't heard mention of it otherwise.

pms_comment_author_email is used in this case:

Amiright, @cyberhobo?

erscampbell commented 8 years ago

Is this the error you're referring to?

email twitter error

Using the configuration in your post above, I now get this message every time I try to leave a comment without using social login.

johnpuddephatt commented 8 years ago

Yep that's the one, thanks for confirming!

It's a wordpress error – you can get rid of it by unchecking the 'Users must be registered and logged in to comment' setting in Discussion > Settings, but then comments are just saved without an email address.

Vernal commented 8 years ago

Yea, this isn't right. We'll get on it!

cyberhobo commented 8 years ago

Think I got it. We should put out 1.0.1 soon to fix this and #50.

Vernal commented 8 years ago

Awesome. Need to do a version bump as well. Let's try to push it by wed. I've got a few other things to clean up on my end.

On Sun, Dec 6, 2015 at 8:18 PM, Dylan Kuhn notifications@github.com wrote:

Think I got it. We should put out 1.0.1 soon to fix this and #50 https://github.com/postmatic/postmatic-social/issues/50.

— Reply to this email directly or view it on GitHub https://github.com/postmatic/postmatic-social/issues/49#issuecomment-162385011 .

Jason G. Lemieux | Creative Director Vernal Creative and Strategy http://www.vernalcreative.com | New Number - 802.821.4059