WordPress.org

Forums

Newsletter
Images not working (10 posts)

  1. Hansii
    Member
    Posted 10 months ago #

    First of all i love the plugin.

    I have only one problem:

    When i upload images they do upload to the server but they don't show up in the newsletter. It only shows a broken image icon like so: http://deklink.info/images/ss.png
    When i check the image URL it says mywebsite.com/undefined

    Can someone help me out please?
    Thanks.

    https://wordpress.org/plugins/newsletter/

  2. Stefano Lissa
    Member
    Plugin Author

    Posted 10 months ago #

    You should look at the source of the email you're composing to find the inserted url of each image. Then copy it on a browser to see if the image is loaded.

  3. cecilehabran
    Member
    Posted 10 months ago #

    Same problem for me.
    Adding an image via url is OK, but not from the wordpress media browser.

    When I look at the source, the url of the image is undefined too (url.com/undefined)

  4. cecilehabran
    Member
    Posted 10 months ago #

    However, the images from posts and custom posts are loaded

  5. Hansii
    Member
    Posted 10 months ago #

    Like is said when i look at the source it say's url.com/undefined

    When i check the media uploader the image is there and it is working fine.

    WHat can i do to remove this problem that many people seem to be having?

  6. Stefano Lissa
    Member
    Plugin Author

    Posted 10 months ago #

    On some WordPress, and I don't know why, the javascript which gets back the image url get an undefined.

    If someone of you can give me an administrative access (stefano@satollo.net) I can try to debug the javascript.

  7. Hansii
    Member
    Posted 10 months ago #

    Ok ik will contact you.

    Another question can i stop the Undelivered Mail Returned to Sender" emails wich i keep getting because there are some false email adresses in my list?

  8. Stefano Lissa
    Member
    Plugin Author

    Posted 10 months ago #

    For each returned email you should delete the corresponding address. Using external services like sendgrid, you can get the bounce detection: they give you a list and you can import the bounced list so newsletter won't contact those address anymore.

  9. jnz31
    Member
    Posted 3 months ago #

    i do have the exact same problem. when i insert an image to a newsmail, the image source is url.tld/undefined
    strange is, it worked a few days ago, now its broken. updated to the newest version (wp & nlp) but still no luck.

    any news on this topic?

  10. jnz31
    Member
    Posted 1 month ago #

    i hacked it on my own

    you need to find file edit.php, it is located in wp-content/plugins/newsletter/emails

    in edit.php replace

    window.send_to_editor = function(html) {
      imgurl = jQuery('img',html).attr('src');
      //jQuery('#upload_image').val(imgurl);
      tinyMCE.execCommand('mceInsertContent',false,'<img src="' + imgurl + '" />');
      tb_remove();
    }

    with

    window.send_to_editor = function( html ) {
      var imgURL = html.match( /src=\"(.*?)\"/ );
      tinyMCE.execCommand( 'mceInsertContent', false, '<img src="' + imgURL[1] + '" />' );
      tb_remove();
    }

Reply

You must log in to post.

About this Plugin

  • Newsletter
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic