[wp-hackers] wpblogmail fails when mail contact plugins present

Scot Hacker shacker at birdhouse.org
Mon Jun 26 05:13:37 GMT 2006


I'm the author of wpblogmail, which sends daily or weekly "digest"  
email summaries of activity on a WP blog:

http://www.birdhouse.org/blog/software/wpblogmail/

It's not a plugin, but a cli php script, alongside a WP install. It  
basically does this:

----------
require("$BlogPath/wp-blog-header.php");
the_title_rss();
permalink_single_rss();
the_content_rss('', TRUE, '', 100);
----------

which it spits out to the shell, which then emails it to a list  
address. Works nicely, *except* when the user has a contact form  
plugin installed, *even though* that plugin is not used on the  
homepage of the blog. When either pxsmail or the Dagon form mailer  
plugins are activated and wpblogmail is run, I get this at the top of  
the output, and I can't figure out why. Any idea why these plugins  
are invoked at all in this situation? And is there a way to  
deactivate them while the script runs, or another way around this  
anyone can think of?

<br />
<b>Warning</b>:  session_start(): Cannot send session cookie -  
headers already sent by (output started at /home/username/scripts/ 
wpblogmail/run.php:43) in <b>/home/username/public_html/blog/wp- 
content/plugins/dd-formmail/dd-formmailer-plugin.php</b> on line  
<b>2</b><br />
<br />
<b>Warning</b>:  session_start(): Cannot send session cache limiter -  
headers already sent (output started at /home/username/scripts/ 
wpblogmail/run.php:43) in <b>/home/usernane/public_html/blog/wp- 
content/plugins/dd-formmail/dd-formmailer-plugin.php</b> on line  
<b>2</b><br />

Thanks,
Scot



More information about the wp-hackers mailing list