>>>- Make sure PHP error reporting is cranked up.  If you don't want to
>>>bother with the support desk, install the Debugger plugin
>>
>>
>> Once I'd cleared up a minor problem with the configured language the
>> debugger is silent. I only get the "Could not move/copy file. File not
>> attached", nothing else.
>
> You can go into src/compose.php and remove the @ sign from these lines
> (somewhere after line 1300):
>
>      // FIXME: we SHOULD prefer move_uploaded_file over rename because
>      // m_u_f works better with restricted PHP installes (safe_mode,
> open_basedir)
>      if ([EMAIL PROTECTED]($_FILES['attachfile']['tmp_name'], $full_localfilename))
> {
>              if
> ([EMAIL PROTECTED]($_FILES['attachfile']['tmp_name'],$full_localfilename))
> {
>                  return true;
>                  }

I've tried removing thse two @s and even with the debug plugin enabled I
get no more than the normal "Could not move/copy file. File not attached"
error.


>>>- Make sure you try it first with 777 permissions on you attachments
>>> dir.
>>
>>
>> It's been 777 for some time.
>>
>>
>>>- Otherwise, not sure I can offer anything else, perhaps someone else
>>>has ideas
>
> Does your host run php in safe mode?  Do you have directory hashing set
> up in the SM config?

php_info() in a script in the same directory as SquirrelMail indicates
safe mode is off:

safe_mode
 Off Off
safe_mode_exec_dir
 no value no value
safe_mode_gid
 Off Off
safe_mode_include_dir
 no value no value

I'm not sure what directory hasing is but in my configuration I have:

General Options
....
4.  Directory Hash Level        : 0


Also, support tell me that "The default php temporary directory is /tmp,
which has full read/write permissions for all users." . Which I assume is
used in the absense of "upload_tmp_dir" being set.

Thanks,
Geoff


-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
--
Posting Guidelines: http://squirrelmail.org/wiki/wiki.php?MailingListPostingGuidelines
squirrelmail-users mailing list
List Address: [EMAIL PROTECTED]
List Archives: http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.user
List Archives:  http://sourceforge.net/mailarchive/forum.php?forum_id=2995
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

Reply via email to