• Resolved guvenck

    (@guvenck)


    Hello,

    This great plugin does exactly what I needed and it works fine on my website, except one thing: No messages are showing after Send Link button is clicked. The wheel is being shown and hidden but no messages of any kind.

    The email is being sent without problems, the subscription is recorded.

    I checked the elements on the page and there is no message element either. In browser’s network section, I can see that admin-ajax.php produces a json like this:

    {“type”:”exists”,”message”:”
    <span class=\”dae-shortcode-register-error\”>
    An email with the download link has already been sent to this email address.<\/span>”}

    My page’s background has #ffffff color and message color is #dd1111, so it is not a problem of colors being the same.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter guvenck

    (@guvenck)

    I checked again and I have no element with class ‘dae-shortcode-register-message’ – which should display the message.

    as in download.js line 81:
    form.parent().find( ‘.dae-shortcode-register-message’ ).html( dataObj.message );

    Plugin Author mkscripts

    (@mkscripts)

    Hi,

    Nice to hear you like our plugin, thank you.

    Is the element with class “dae-shortcode-register-message” also not present before clicking the Send Link button? Do you use a page builder to place the shortcode on a page? Or are you using a plugin that could affect the HTML of the shortcode? You could disable one plugin at a time to see if this fixes your problem.

    You could also check for JavaScript errors when you inspect the elements in your browser.

    Kind regards,
    Team Download After Email

    Thread Starter guvenck

    (@guvenck)

    Hello, thanks for your reply.

    I updated my theme to latest version.

    I checked the “source” and the element <p class=”dae-shortcode-register-message”></p> is there when the page is loaded, right after the </form> tag.

    It is still there when I click the Send Link button. The wheel turns for a few seconds, but the dae-shortcode-register-message element is not populated.

    Strangely, although it is in the loaded source, it is not present in the DOM, hence the

    form.parent().find( ‘.dae-shortcode-register-message’ ).html( dataObj.message );

    does not work.

    I check the Network tab and I see that admin-ajax.php returns correct json.

    {“type”:”success”,”message”:”
    <span class=\”dae-shortcode-register-success\”>
    An email has been sent with the download link.<\/span>”}

    I use WPBakery Page Builder. The shortcode is inside a text box. Everything works fine except this message problem ??

    I can send you a URL if you would like to check the problem.

    Plugin Author mkscripts

    (@mkscripts)

    Hi,

    You’re welcome. Okay, since the element <p class=”dae-shortcode-register-message”></p> is present in the source code, the element is probably being removed by an external source. For example, with JavaScript it’s possible to remove an element from the DOM (this does not affect the source HTML). The easiest way to find out which source this is is to disable a plugin (or your theme) and see if it fixes the problem.

    Kind regards,
    Team Download After Email

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Messages are not showing’ is closed to new replies.