My command line processqueue cron jobs worked fine under 2.10.4 but after upgrade to 2.10.10 they stopped.
It looks like the parameters are not getting passed. I have the "$commandline_users = array();" set so no user id is needed.
Here is what I get from my old install:
[john]$ /usr/local/apache/php/bin/php -q /home/john/html/xxx/docsold/admin/index.php -p processqueue
PHPlist version 2.10.4 (c) 2000-2009 Tincan Ltd, http://www.phplist.com
Started
Sending in batches of 300 emails
Script stage: 6
Finished, Nothing to do
Finished, All done
Here is new:
[john]$ /usr/local/apache/php/bin/php -q /home/john/html/xxx/docs/admin/index.php -p processqueue
PHPlist version 2.10.10 (c) 2000-2009 Tincan Ltd, http://www.phplist.com
Usage: /home/john/html/lists.bmdc.org/docs/admin/index.php -p page [other parameters]
I can work around this by pointing the cron to my old install but would like to fix this.
here is script:
#!/bin/bash
# script to run PHPlist from commandline. You may need to edit this to make it work
# with your shell environment. The following should work for Bash on Fedora Linux
# but this may vary strongly in other situations. You will need to dig into the
# code to make sure it works for you.
# in commandline mode, access is restricted to users who are listed in the config file
# check README.commandline for more info
# identify the config file for your installation
CONFIG=/home/john/html/lists.bmdc.org/docs/config/config.php
export CONFIG
USER=admin
export USER
# alternatively you can use -c <path to config file> on the commandline
# run the PHPlist index file with all parameters passed to this script
/usr/local/apache/php/bin/php -q /home/john/html/lists.bmdc.org/docs/admin/index.php $*
--
JM
