Suddenly all new mailpress batch sends are pending...

212 views
Skip to first unread message

Carm

unread,
Jan 2, 2010, 4:11:09 PM1/2/10
to MailPress
I have used mailpress batch send before. It was working until about
December 20.

I have changed no mailpress settings.

Since Dec.20, any time mailpress batch send is used, the email shows
"pending..." and no mailpress batch send log is generated.

I tried deactivating batch send, then reactivating it.

I tried changing the number of emails in a batch.

I and others visit the site numerous times with any 10 minute period.

Still mailpress batch send does nothing.

It is set to 20 emails per batch, and wp-chron every 30 seconds.

With those settings it was working. No settings were changed. It
just stopped working.

Activating and deactivating the plugin makes no difference.

Carm

unread,
Jan 2, 2010, 5:16:06 PM1/2/10
to MailPress
More information:

It seems that wp_chron is not working.

I executed the following PHP script, and all emails were immediately
successfully sent:


function RunMailPressBatch() {

do_action('mp_process_batch_send');

MailPress::mp_die();
}


andré renaut

unread,
Jan 2, 2010, 7:08:24 PM1/2/10
to mail...@googlegroups.com
there is a wp-cron bug in 2.9

2010/1/2 Carm <car...@lawrick.com>
}


--

You received this message because you are subscribed to the Google Groups "MailPress" group.
To post to this group, send email to mail...@googlegroups.com.
To unsubscribe from this group, send email to mailpress+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mailpress?hl=en.





--
Pensez à l'environnement avant d'imprimer ce message.
Please, think about the environment before printing this message.

Carm

unread,
Jan 2, 2010, 10:49:34 PM1/2/10
to MailPress
Ok, cool.

Applied this, and everything's working again.

http://www.semiologic.com/2009/12/21/wp-2-9-three-bugs-and-how-to-fix-them/

Thanks!

Colin

unread,
Apr 11, 2013, 1:38:49 PM4/11/13
to mail...@googlegroups.com
Hi,

I have these exact same symptoms using MP 5.3 and WP 3.5.1. My host does not allow shell execute so I cannot execute the cron file as suggested here https://groups.google.com/forum/?fromgroups=#!topic/mailpress/frntIoBRdfg and I don't know where I can put the function suggested above so that it runs without causing recursion.

I've tried everything in the original post up above as well, and my host hasn't changed anything. Batch mails stopped working on 20 March for no reason - no upgrades to server and nothing to WP or MP.

I'd appreciate any help - many thanks.

Colin

andré renaut

unread,
Apr 11, 2013, 5:17:50 PM4/11/13
to MailPress
looks like your issue is on your hosting package options !


2013/4/11 Colin <cc.ca...@gmail.com>

 
You received this message because you are subscribed to the Google
Groups "MailPress" group.
To post to this group, send email to mail...@googlegroups.com
To unsubscribe from this group, send email to
mailpress+...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/mailpress?hl=en
 
---
You received this message because you are subscribed to the Google Groups "MailPress" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mailpress+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Colin

unread,
Apr 11, 2013, 7:54:27 PM4/11/13
to mail...@googlegroups.com
André,

Thanks for replying. Maybe I wasn't clear: I cannot execute the cron manually only becuase the host won't provide shell access. Cron has executed properly automatically from within Mailpress for over 2 years, but has suddenly stopped. I think something stopped cron at somepoint and everything is now getting backed up. I think I need to use the function Carm has above (which is similar to the one int he link I gave before), but don't know where to put it so it will be called with all variables in scope.

I've tried deactivating and reactivating batch_send but it doesn't work. I've also deleted the pending emails from the SQL database but no joy when I try send new ones.

Any help is greatly appreciated.

Colin

Colin

unread,
Apr 11, 2013, 7:58:19 PM4/11/13
to mail...@googlegroups.com
Sorry I should also add that the emails log says the emails are sent (i.e. "TRUE") but the batch_send log is not changed. ALl of this is exactly as per the first poster's problem. Bizarre if the bug was fixed in WP :(

Colin

unread,
Apr 17, 2013, 8:52:40 AM4/17/13
to mail...@googlegroups.com
I checked with my host and they checked their logs: single emails are picked up fine, but there is no log of batch emails being sent to their server, so the problem is with MP unfortunately. Any ideas how I can restart cron without console access please?

Colin

unread,
Apr 17, 2013, 2:42:53 PM4/17/13
to mail...@googlegroups.com
I tried to run the following inside the PHP widget in the sidebar and it gets as far as "3". Does anyone know how I can get the MailPress variable to be in scope?

Thank you!

<?php

echo '<p>1</p>';

function RunMailPressBatch() {
       
        echo '<p>2</p>';
       
        do_action('mp_process_batch_send');

        echo '<p>3</p>';
       
        MailPress::mp_die();
       
        echo '<p>4</p>';
}

RunMailPressBatch();

?>

Colin

unread,
Apr 17, 2013, 7:39:00 PM4/17/13
to mail...@googlegroups.com
Hi All,

Solved the problem below - the global variable is "MP_". On each refresh of the page this function gets evaluated and the email batch sent as it should. Good so far. De-activating batch_send will send multiple emails for a small mailing list, so the problem is with the add_on/cron. Enabling the batch_send and using WP_cron, the mails stay "Pending..." even though the hook is visible in the WP_cron viewer. I've deactivated and re-actvated the add-on, executed the MP_::MP_die() command numerous times, and deleted old cron hooks that had "next execution" times in the past. Still nothing. I don't have another cron to work with so can't choose "Other". Why would it just suddenly stop working?

Any input gratefully received.

Colin

unread,
May 1, 2013, 5:24:47 PM5/1/13
to mail...@googlegroups.com
Hi

I still have the problem and I see others with possible wp_cron issues. Does anyone have any suggestions please?

Thanks!

Jan Kasal

unread,
May 7, 2013, 8:22:48 AM5/7/13
to mail...@googlegroups.com
Is it possible to deactivate batch_send plugin and preserve the send function with each new post anyway? My provider allows 700 messages/hour which is plenty for me. How to do it?

andré renaut

unread,
May 7, 2013, 12:20:47 PM5/7/13
to MailPress
Hello

The issue might not be the amount of mails, the risk might be to have the php script stopped due to php max execution time


2013/5/7 Jan Kasal <veva...@gmail.com>
--
--
=== Please Donate ! https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=andre%2erenaut%40gmail%2ecom&lc=US&item_name=MailPress&item_number=gg&amount=5%2e00&currency_code=EUR&currency_code=EUR&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHostedGuest ===
 
You received this message because you are subscribed to the Google
Groups "MailPress" group.
To post to this group, send email to mail...@googlegroups.com
To unsubscribe from this group, send email to
mailpress+...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/mailpress?hl=en
 
---
You received this message because you are subscribed to the Google Groups "MailPress" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mailpress+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Jan Kasal

unread,
May 19, 2013, 3:11:03 PM5/19/13
to mail...@googlegroups.com
It had to do something with Cron jobs. I fiddled with the Cron settings within the site hosting company cPanel and it sent all "pending" messages out.


On Saturday, January 2, 2010 4:11:09 PM UTC-5, Carm wrote:

Aleksey Kontsevich

unread,
Sep 16, 2015, 7:17:31 PM9/16/15
to MailPress
Hmmm.... I have same: if I enable batch_send, all messages are pending, nothing are sent. How to solve this? Have latest WP and Mailpress versions.

воскресенье, 19 мая 2013 г., 22:11:03 UTC+3 пользователь Jan Kasal написал:

andré renaut

unread,
Sep 17, 2015, 1:49:15 PM9/17/15
to MailPress
Hello ask your webserver technical support if there was any change in cron since December 20

--
--
=== Please Donate ! https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=andre%2erenaut%40gmail%2ecom&lc=US&item_name=MailPress&item_number=gg&amount=5%2e00&currency_code=EUR&currency_code=EUR&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHostedGuest ===
 
You received this message because you are subscribed to the Google
Groups "MailPress" group.
To post to this group, send email to mail...@googlegroups.com
To unsubscribe from this group, send email to
mailpress+...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/mailpress?hl=en

---
You received this message because you are subscribed to the Google Groups "MailPress" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mailpress+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages