Can someone help me debug why – when I attempt to process the phplist queue via the cli – I get no output at all?
I’m attempting to process the phplist queue with the following command:
[maltfield@ose ~]$ sudo su -s /bin/bash apache -c "/usr/bin/php /var/www/html/phplist.opensourceecology.org/public_html/lists/admin/index.php -c /var/www/html/phplist.opensourceecology.org/config.php -p processqueue" [maltfield@ose ~]$
As you can see from the above output – there is no output. I’ve also confirmed that the queue is not being processed silently.
Fwiw, I have error reporting enabled with the following line on the public_html/lists/admin/index.php file:
$er = error_reporting(1);
I also have verbosity turned on via the config.php file:
Moreover, I have defined MANUALLY_PROCESS_QUEUE & set $commandline_users in my config.php file:
// set this to 0, if you set up a cron to download bounces regularly by using the // commandline option. If this is 0, users cannot run the page from the web // frontend. Read README.commandline to find out how to set it up on the // commandline define('MANUALLY_PROCESS_BOUNCES', 1); // we set MANUALLY_PROCESS_QUEUE to 0 so that the "Process the Queue" button // will disappear from the WUI as the queue is processed via cron define('MANUALLY_PROCESS_QUEUE', 0); // whitelist of users that are permitted to execute bin/phplist for cli control $commandline_users = array( "apache" );
I have traced the end of the execution to the line in index.php where it include the ‘languages.php’ script https://github.com/phpList/phplist3/blob/3a3e9eaf5796353b67e94535a9e20de8ceb489e3/public_html/lists/admin/index.php#L100
I further traced the end of the execution to the line “@session_start();” in the languages.php file
After that session_start() line, I cannot get a simple echo command to produce any output on the cli.
The only other description I’ve found about this issue was on the old forums from 2012. It had no responses.
Here’s some info about my system:
[root@ose admin]# cat /etc/redhat-release CentOS Linux release 7.4.1708 (Core) [root@ose admin]# uname -a Linux ose.opensourceecology.org 3.10.0-693.2.2.el7.x86_64 #1 SMP Tue Sep 12 22:26:13 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux [root@ose admin]# sudo su -s /bin/bash apache -c "/usr/bin/php -v" PHP 5.6.33 (cli) (built: Jan 14 2018 08:07:11) Copyright (c) 1997-2016 The PHP Group Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies with Xdebug v2.5.5, Copyright (c) 2002-2017, by Derick Rethans [root@ose admin]# [root@ose admin]# cat /var/www/html/phplist.opensourceecology.org/VERSION # file that keeps track of the latest tag in cvs and the corresponding version # this automates publishing a new version, when it's tagged # if you don't understand this, don't worry. You don't need this file VERSION=3.3.1 DEVVERSION=3.3.2 [root@ose admin]#
What does this “session_start()” call do?
Please help me debug why this session_start() line is breaking my ability to process the queue via the cli for a cron job.