Needs review
Project:
Mass Mailer
Version:
master
Component:
Code - PHPlist engine
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
30 Nov 2005 at 05:23 UTC
Updated:
8 Aug 2009 at 00:59 UTC
Jump to comment: Most recent file
Comments
Comment #1
killes@www.drop.org commentedI doubt that this applies to massmailer as we use Drupal's cron mechanism not phplist's. Also, I think that setting it to "drupal" will not work in any case. I guess it needs to be set to te respective unix user. Either that owning the files or the one running the process.
Comment #2
mfbWith a fresh install of civicspace-0.8.2, the error I get on admin/massmailer/queue is:
PHPlist version 2.10.2 (c) 2000-2005 Tincan Ltd, http://www.phplist.com
Error: Sorry, You (drupal) do not have sufficient permissions to run phplist on commandline
my phplist_command_line_user was set to N; for some reason:
mysql> select * from variable where name like '%phplist%';
+---------------------------+-------+
| name | value |
+---------------------------+-------+
| phplist_command_line_user | N; |
+---------------------------+-------+
If I run:
mysql> update variable set value='s:6:"drupal";' where name = 'phplist_command_line_user';
I get:
PHPlist version 2.10.2 (c) 2000-2005 Tincan Ltd, http://www.phplist.com
Started
Script stage: 6
Finished, Nothing to do
Finished, All done
But if I change the massmailer settings at admin/settings/massmailer, the phplist_command_line_user is reset to N;
Comment #3
killes@www.drop.org commentedI'll look into it. I am wondering why settign it to "drupal" might do any good, though. It is unlikely that such a user exists on your system.
Comment #4
killes@www.drop.org commentedvariable_set('phplist_command_line_user', $_SERVER["USER"]);
This code is what sets the phplist_command_line_user variable. This code is buggy, as $_SERVER["USER"] is not set for all servers.
Comment #5
killes@www.drop.org commentedHere's a patch, anybody care to test it?
Comment #6
Veggieryan commenteddidnt work for me..
i revisited settings>massmailer and saved...
went back to massmailer>send mail
still get the
PHPlist version 2.10.2 (c) 2000-2005 Tincan Ltd, http://www.phplist.com
Error: Sorry, You (drupal) do not have sufficient permissions to run phplist on commandline
this is on a cpanel shared host.. no shell access... cs .8.2
hmm,
will try that user hack next...
unless someone has a better idea
it will be a great day when i get this one working....
Comment #7
stefanoq commentedI tried setting the variable manually and the error message went away. Instead I get this:
PHPlist version 2.10.2 (c) 2000-2006 Tincan Ltd, http://www.phplist.com
Started
Script stage: 6
Finished, Nothing to do
Finished, All done
Unfortunately, there are messages queued that the script is not finding. Any suggestions?
Comment #8
stefanoq commentedNever mind. Just a problem with the date. THe manual workaround inserting s:6:"drupal" in the variable table works for me!
Comment #9
ToddZ-1 commentedJust to chime in, I just had the exact same "permissions" problem with a new CivicSpace install, and entering s:6:"Drupal"; in the variable table also got my mail going.
Comment #10
gerhard killesreiter commentedCan somebody please try eomting else besides Drupal as the magic codeword? I really do not understand why specifically "Drupal" would make it send mail.
Comment #11
webchickComment #12
Amazon commentedGerhard, the Drupal magic keyword works because we hardcoded that at the unix user in the configuration file.
PHPList then looks for that unix user called Drupal in the variables table, finds it and then runs sucessfully. This is clearly something that needs to be cleaned up.
Kieran
Comment #13
davidallen commentedHow do you 'hard code' / what is the format of the variable insertion of 's:6:"drupal";' into the statement ... variable_set('phplist_command_line_user', ....
Comment #14
Evan Leeson commentedI did this. I reset the variable to s:6:"Drupal"; using PHPMyAdmin. No change in my status. Is there another step I need to take? Some sort of session restart or something? It is getting very frustrating when identical steps have different outcomes.
Comment #15
Amazon commentedYou need to add this to modules/massmailer/engines/phplist/bin/phplist
USER=drupal
export USER
Kieran
Comment #16
PunkCut25 commentedheres the php code I used to set this variable
Comment #17
PunkCut25 commentedMake sure you set the serialized number correctly
s:6:'drupal'
6 characters in drupal
you should set this to a user on your filesystem which as permissions to run php-cli or php
to test this goto your CLI
and type 'php' or 'php-cli'
if both are executed without an access denied error.
Then just set this to
s:$num_of_characters:$your_user_name
Comment #18
stefanoq commentedI figured out that each time I save new massmailer settings it resets the phplist_command_line_user row to 'N;'. Anybody know why?
Comment #19
killes@www.drop.org commentedI've removed that variable_set statement for now. It always works for me without it, but never with it...
Comment #20
dalinThings were working fine for me, then I went to admin/settings/massmailer and now all is kaput.
Changing the variable phplist_command_line_user (and USER in modules/massmailer/engines/phplist/bin/phplist) to either 'drupal', a real user, or "" does not fix things.
How can we get massmailer working again?
Comment #21
killes@www.drop.org commenteddownload the latest version of the module, delete the variable from the variables table and refresh the cache.