• Hi

    For some reason, some of my newsletter recipients lists are not being built. When I want to create the recipient list, the progress gets stuck at 0%.

    The ajax response is the following: {error: “”, n_done: 0, n_tot: 36, perc: 0}, and it is being refreshed every second or so. The only other ajax message I can see is the WP heartbeat.

    I’m using the plugin jointly with Polylang, as the newsletter are sent according to the language. Most of the time, the english newsletter do no cause any issue, it is only the ones using other languages.

    I’ve tried deactivating/reactivating the plugin without any success, and even tried to create other newsletter to try it.

    Any investigation idea ?

    Thanks

    https://www.ads-software.com/plugins/alo-easymail/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi,

    I just now was also having the same issue as you. Here’s how I fixed it:

    I added the following code to my theme’s functions.php file:

    function my_easymail_ajaxloop_recipient_limit ( $limit ) {
        return 5000; // set here the number of recipients added per ajax call
    }
    add_filter( 'alo_easymail_ajaxloop_recipient_limit', 'my_easymail_ajaxloop_recipient_limit' );

    All credit for this goes to the helpful theme author.

    I was trying to build a list of ~20,000 subscribers. It was simply taking forever, but with this quick fix, it only takes a moment to create the list of recipients. I can probably even increase it to even more than 5,000 (and probably will in the future), but for the meantime, 5,000 worked just fine for me. Also, I’m not on shared hosting.

    How many subscribers are you trying to add to the list, and what kind of hosting are you on (Shared/VPS/Dedicated)?

    One more thing… (make sure max_execution_time is high enough)

    The past day or so, I was trying to create a list with ~21,000 recipients. However, it was not working. It was slowing down my entire WordPress site. Then, when I tried disabling Ajax, upon saving the newsletter, I would just get a white screen.

    Finally, I looked at the error log and found the problem–the max execution time: PHP Fatal error: Maximum execution time of 30 seconds exceeded in /../wp-content/plugins/alo-easymail/functions/alo-easymail-recipients.php on line 68" while reading upstream

    I increased my max_execution_time and things are working again like they should.

    Thread Starter ZEPsikopat

    (@zepsikopat)

    Hi

    I actually overlooked your answer. However this does not solve my issue at all, it the recipient list build keeps stalling.

    I’m not even adding a huge amount of e-mail, only 44…

    It might be related to a Polylang issue though, as the list is not built for members using a different languauge than English.

    Plugin Author eventualo

    (@eventualo)

    Did you try disabling temporary Polylang and then create a newsletter and generate the recipient list?

    Thread Starter ZEPsikopat

    (@zepsikopat)

    Hello
    Tried without Polylang, and it is still stuck.

    Plugin Author eventualo

    (@eventualo)

    Hi, have you tried disabling all other plugins and switched to a default theme?

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Recipient list is not being built’ is closed to new replies.