[Resolved] "Wrong email" when subscriber tries to sign up
Hi – I’m trying to use the widget to sign up new subscribers, but when I test it it produces a blank page with only the phrase, “wrong email”, and the email address is not added to the subscribers list. Can you tel me what I can do to fix that?
I need to see the widget to find the problem. Can you give me its address?
Of course! I should have thought of that to begin with!
It’s one our Blog page at https://www.ageassistance.com/blog/
Hi, may be you temporary removed the subscription box, since I’m not able to find it… 🙂
Hi again –
I’m very sorry, you’re right, I did remove it. I have put it back, now it’s in the sidebar on our blog page and blog posts, at the bottom of the sidebar.
Thank you very much for your help. I really like this plugin and I appreciate your help.
Try to set the labels to see if something change.
I am beginning to suspect that this may be a result of conflicts with the theme that I’m using on http://www.AgeAssistance.com, which is the Avada theme. I’m using Avada version 1.0.9
I just had the same problem.
For me, it was the because I have changed the “name” attribute of the “email input” tag.
Could you try with another theme like twenty ?
Hope it’ll help you !
Names of input tag must be left as generated by Newsletter otherwise it is impossible for newsletter to extract subscriber data.
Stefano, if you could look at this proglam again I would certainly appreciate it.
I upgraded to a new version of the theme that I’m using, the Avada theme from Theme-Fusion.net, and it’s still occurring. My website is at http://www.AgeAssistance.com and the subscription form is in the page footer. This upgrading did not do any good in solving the problem.
I disabled all plugins except for the Newsletter plugin. That did not solve the problem either. (Afterwards, I re-enabled all the plugins).
The site runs SSL with https:// URLs. Is the SSL a problem?
Is there anywhere in your code where the phrase “wrong email” is used?
Hi again Stefano:
Since I still need to solve this I did further experimentation and I discovered what is causing this problem.
First, I tried a number of different themes. That didn’t help the problem.
THEN, I disabled SSL on the site. Bingo! That solved the problem.
So now the question is, why is SSL causing this problem? I tried looking at your code in subscription.php and I found the two lines where the code echoes “wrong email” to the screen. Unfortunately, though, I don’t know enough about php to know how to solve the problem. The two locations that I found were:
1. line 115:
if ($email == null) die(‘Wrong email’);
2. line 303:
if (!$newsletter->is_email($_REQUEST[‘ne’])) die(‘Wrong email address.’);
I hope you can tell what’s needed to fix this.
Hi again –
Any chance of fixing this in time for the release of Newsletter 3.1?
Can you address me to the subscription form in your site?
The form is on my site at http://www.AgeAssistance.com in two places: it’s on the footer of every page, using your widget, and it’s also on a standalone subscription page at:
I currently have SSL turned off in order to avoid the problem, but if you’re going to be looking at it I will turn SSL back on in order for you to be able to reproduce the problem. I will do that right now after I send this reply.
I found the problem. When I create the link to the subscription function, I use the wordpress base URL saved on main configuration of wordpress. There your URL is http:// (not https://).
When you enable the SSL, your system intercepts every http:// calls and respond back with a redirect to https://. That creates two problems:
1. a POST request is destroyed by a redirect, so the data is lost
2. the subscription function is called without data and so it raises the error
If you want the full blog in SSL is should be better to use https:// as protocol on wordpress main configuration.
Anyway I can try to create a patch for this problem even if it’s not obvious since change in one part of Newsletter may be it breaks things on other kind of installations.
[ Signature moderated. ]
- The topic ‘[Resolved] "Wrong email" when subscriber tries to sign up’ is closed to new replies.