Contribute  :  Support  :  Downloads  :  Forum  :  Links  :  Polls  :  Calendar  :  Directory  :  Advanced Search  
Geeklog The Ultimate Weblog System
Welcome to Geeklog
Friday, May 16 2008 @ 12:20 AM EDT
   

Emailing Geeklog Topics

GeeklogHi folks,

Using Geeklog 1.3.4 which I'm thoroughly impressed with, however there's just one feature I've not managed to make work correctly as yet - and that's the Emailing Topics for User option, I've setup CRON to run the 'emailgeeklogstories' script as php (which I've corrected the paths etc in) but when the job executes on it's daily rotation I'm emailed the following error from CRON:

#!/usr/local/bin/php -q
Warning: Cannot add header information - headers already sent by
(output started at
/path-to-geeklog/public_html/email.php:2) in
/path-to-geeklog/system/lib-sessions.php on line 150
Warning: Cannot add header information - headers already sent by
(output started at
/path-to-geeklog/public_html/email.php:2) in
/path-to-geeklog/system/lib-sessions.php on line 162

(the paths in the real error are correct, but changed here to path-to-geeklog).

email.php is the modified version of the emailgeeklogstories script (the only modification being the path to geeklog) and it's in the public_html folder for the geeklog installation, the line in my crontab looks like this:

0 20 * * * lynx -dump http://geeklog-url/email.php

(again, geeklog-url is actually my domain name in the crontab ;) ).

Anybody have any ideas? Sorry about the lengthy post - I'm too lame to work this one out for myself, though ;)

Story Options

Emailing Geeklog Topics | 1 comments | Create New Account
The following comments are owned by whomever posted them. This site is not responsible for what they say.
Reply
Authored by: nobdee on Tuesday, June 25 2002 @ 05:13 PM EDT
You see the line #!/usr/local/bin/php -q at the beginning of emailgeeklogstories?

Move it below the <?php tag


Cheers