Viewing 15 replies - 1 through 15 (of 17 total)
  • Plugin Author Stefano Lissa

    (@satollo)

    I need to see the widget to find the problem. Can you give me its address?

    Stefano.

    Thread Starter tcolling

    (@tcolling)

    Of course! I should have thought of that to begin with!

    It’s one our Blog page at https://www.ageassistance.com/blog/

    Thanks!

    Plugin Author Stefano Lissa

    (@satollo)

    Hi, may be you temporary removed the subscription box, since I’m not able to find it… ??

    Stefano.

    Thread Starter tcolling

    (@tcolling)

    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.

    Plugin Author Stefano Lissa

    (@satollo)

    The form seems correct, you only need to change the labels from the subscription panel of Newsletter. But probably that won’t solve the problem it seems that something is blocking the exection of the javascript control.

    Try to set the labels to see if something change.

    Stefano.

    Thread Starter tcolling

    (@tcolling)

    I am beginning to suspect that this may be a result of conflicts with the theme that I’m using on https://www.AgeAssistance.com, which is the Avada theme. I’m using Avada version 1.0.9

    Are there known issues with the Avada theme when using the Newsletter plugin? I have been told by another plugin developer that they have encountered conflicts with the Avada theme due to some javascript issue(s).

    I just had the same problem.

    For me, it was the because I have changed the “name” attribute of the “email input” tag.
    You have to make sure, the name is “ne” (or like in the javascript function associated).

    I tried to suscribe on your newsletter and I don’t find any javascript error. Did you change something in the newsletter source code ?

    Could you try with another theme like twenty ?

    Hope it’ll help you !

    Plugin Author Stefano Lissa

    (@satollo)

    Names of input tag must be left as generated by Newsletter otherwise it is impossible for newsletter to extract subscriber data.

    Stefano.

    Thread Starter tcolling

    (@tcolling)

    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 https://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?

    Thanks,
    Tim

    Thread Starter tcolling

    (@tcolling)

    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.

    Thanks!

    – Tim

    Thread Starter tcolling

    (@tcolling)

    Hi again –

    Any chance of fixing this in time for the release of Newsletter 3.1?

    Thanks,
    Tim

    Plugin Author Stefano Lissa

    (@satollo)

    Hi, the PHP code that checks the email is only a protection since the check should be made by javascript… this is strange.

    Can you address me to the subscription form in your site?

    Stefano.

    Thread Starter tcolling

    (@tcolling)

    The form is on my site at https://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:

    https://www.ageassistance.com/senior-care-newsletter-subscription/

    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.

    Thanks,
    Tim

    Thread Starter tcolling

    (@tcolling)

    SSL is back on now.

    Plugin Author Stefano Lissa

    (@satollo)

    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 https:// (not https://).

    When you enable the SSL, your system intercepts every https:// 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. ]

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘"Wrong email" when subscriber tries to sign up’ is closed to new replies.