View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0015336||phpList 3 application||Attachments||public||18-09-09 13:51||21-06-18 14:00|
|Summary||0015336: when processing queues PHPlist does not attach the file uploaded, it attaches the file only in test messages|
|Description||I can regularly upload the file during message preparation and when I send me a test message, I receive it correctly.|
However, when the same message is queued for delivery, no attachments is being sent. Messages are received without attachments and as administrator I receive error messages stating:
Error, when trying to send message xx the attachment
yyyyy could not be found
|Additional Information||PHPList 2.10.10 running on Linux centos-5-x86 virtual machine.|
Sequence of event I tried:
- I uploaded the file to be attached: 0803_NI_DAQ_USB_6821.gif
- I checked it is the correct attachments repository configured, diectory /tmp, outside the web space, which has the following permission:
tmp <dir> Sep 18, 2009 02:04:52 PM drwxrwxrwt root root
- Two files are actually there created by PHPlist after upload:
0803_NI_DAQ_USB_68219EnYwd 0.00 kb Sep 18, 2009 02:04:52 PM -rw------- apache apache
0803_NI_DAQ_USB_68219EnYwd.gif 12.22 kb Sep 18, 2009 02:04:52 PM -rw-r--r-- apache apache
- I noticed that PHPlist web space is using in using a different account:
admin.php 8.95 kb Jun 19, 2009 11:42:24 AM -rw-r--r-- joomlaftp psacln
I therefore thought that some permissione problem could be an issue, so I tried to set CHMOD 777 on the two files uploaded, but the end result is still the same:
file is attached in test messages, but when queued it is not attached and I get the message:
Error, when trying to send message 58 the attachment
0803_NI_DAQ_USB_6821.gif could not be found
I also notices that if the queues are processed manually, they attachments are sent correctly.
Instead, if the queues are processed periodically through a cron job, the attachments are NOT sent.
||As a workaround, I moved the attachments repository inside the web space in a new directory owned by the web space account (joomlaftp) with CHMOD 777|
and you're sending the queue with a cron?
sounds like a permissions problem, and the alert email is telling you about it, so afaict it's all ok. Eventually, we can't know whether we have access to the attachments at send time.
||Yes, using cron job.|
marking for documentation, as it's mostly a configuration issue to be aware of
-> make sure that the commandline user has access to the attachment repository
the phpList functionality is fine, as it sends out an alert for not having access to it, which should help to discover the issue when it happens. Apart from that, there's little we can do.