[solved] Cron job to processqueue fails--returns login page

Solutions for other advanced phplisters

[solved] Cron job to processqueue fails--returns login page

Postby Guest » 3:22pm, Wed 24 Sep, 2008

PHPList: 2.10.5
cronjob:
Code: Select all
php /home/tom3/public_html/tom/list/admin/index.php  -c/home/tom3/public_html/tom/list/config/config.php -pprocessqueue ;


When the cron job runs, it outputs the login HTML page saying "This document requires you to log in."

The correct user is exported ($USER).

When I change the config.php file to:
Code: Select all
$require_login = 0;

then the index HTML page is output, but the queue still doesn't get processed.

But looking at the index.php file, it should bypass password checking if the $USER is listed as having commandline permission, which it does. But I can't figure out why the cron job doesn't process the queue.

SOLUTION
Found out in viewtopic.php?p=16680#16680 that you have to add another admin (Superadmin doesn't help). When you do that, a special "hidden" configuration page comes up, and you can enable admins to processqueue. It was defaulted to "none," so I changed it to "all" and the cron job started working (with the new admin USER/PASSWORD), like so:
Code: Select all
cd /home/users/public_html/list/admin/; php index.php page=processqueue login=NEWADMINID password=PASS > /dev/null
Guest
 

Re: [solved] Cron job to processqueue fails--returns login page

Postby GazOutEast » 12:09pm, Thu 08 Apr, 2010

Tried this - still doesn't fix it for me (v2.10.10)

See also viewtopic.php?f=24&t=31229&start=0
If it's fixed, I can break it
GazOutEast
PL Geek
 
Posts: 61
Joined: 4:47am, Thu 08 Apr, 2010


Return to Advanced Answers, Howtos, Tips & Tricks

Who is online

Users browsing this forum: No registered users and 2 guests