• Resolved skaur

    (@skaur)


    Hello team,
    We are using your plugin email subscriber and newsletter and custom an form.If user that submit the form is logged in form submit successfully otherwise it throws an error “You do not have permission to add subscriber”. So please provide us an valid solution for this on urgent basis.
    Thanks in advance

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor kishanranawat

    (@kishanranawat)

    Hi there,

    Sorry for the inconvenience you are having with the Email Subscribers plugin.

    Can you let us know the URL of the page for which you are facing the issue? That would help us to understand the cause of the issue.

    Let us know if you have any further queries.

    podrozepokulturze

    (@podrozepokulturze)

    Hello,

    I have the same problem. Each attempt to add an address by a person who is not logged in to the blog throws the error “You do not have permission to add subscriber”.

    My website is at https://www.podrozepokulturze.pl. I am using version 4.6.2 of the plugin.

    Plugin Contributor kishanranawat

    (@kishanranawat)

    Hi @podrozepokulturze,

    Can you let us know if you are using any caching plugin?

    In Email Subscribers, WordPress nonce validation is used to reduce spam subscriptions. Caching sometimes may invalidate the nonce validation.

    To resolve the issue you may need to reduce the cache timeout.

    Here https://www.wpfastestcache.com/tutorial/wordpress-nonce-cache/
    is an example how you can do it in the WP Fastest Cache plugin.

    Hope this helps you. Let us know if you have any further queries.

    Plugin Contributor kishanranawat

    (@kishanranawat)

    Hi there,

    We are glad to inform you that this issue has been fixed in the 4.6.7 version of the plugin. Please update to the latest version and let us know how it goes.

    We are closing this issue for now. Feel free to reopen if the issue still persists.

    Thank you.

    Hi,

    I think this is related and hopefully I’m able to change the behavior. I have version 4.6.7 and looks like the nonce is called via Ajax using wp_ajax_ig_es_get_updated_subscription_nonce every time the class ES_Handle_Subscription is initialized. This is done on every page load. Homepage, etc.

    Normally this would be okay but what this is causing is a Page View count and 1 Unique visitor count for everyone who goes to my homepage. This has nothing to do with my Email subscribers. My hosting site wants to up my plan to the next level based on the number of unique visitors. I Full Page Cache the website on my CDN and those pages use to never reach my hosting provider and never counted it as a Page View / Unique visitor. My hosting provider counts Ajax calls as a page view / unique visitor.

    My question is, is there any way to get the WordPress nonce via Ajax only on the webpage that it is needed and not on every single page. Can I add some custom code in my functions to do this? The two actions I would like to call only when actually it is needed is wp_ajax_ig_es_get_updated_subscription_nonce and wp_ajax_nopriv_ig_es_get_updated_subscription_nonce And not call them on every single page. Is this possible?

    Thanks
    Dana

    Hi kishanranawat,

    Is there a way to only call the AJAX nonce on the page(s) where the users actually subscribe to the newsletter? Currently wp_ajax_ig_es_get_updated_subscription_nonce & wp_ajax_nopriv_ig_es_get_updated_subscription_nonce is called on Every single page. This causes extra overhead and extra page views on my host.

    Thanks
    Dana

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Emails not working’ is closed to new replies.