Re: Trouble with attachment

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>>>>>>  I still my trouble with attachment.
>>>>>
>>>>> Still?  You may want to reference any previous threads about the
>>>>> issue.
>>>>>
>>>>>> When I attach a file that's working but when I remove the file I have
>>>>>> the
>>>>>> folling error :
>>>>>>
>>>>>> Warning: filesize(): Stat failed for
>>>>>> /var/spool/squirrelmail/attach/GAWMNA7NwMTIbEq1y06EW63SS4SuojjN
>>>>>> (errno=2
>>>>>> -
>>>>>> No such file or directory) in /var/www/squirrelmail/src/compose.php
>>>>>> on
>>>>>> line 1240
>>>>>>
>>>>>> The file is deleted in the directory but it's still appear in the
>>>>>> list
>>>>>> on
>>>>>> the compose windows.
>>>>>>
>>>>>> I though this trouble will be solve with the squirrelmail last
>>>>>> version
>>>>>> but
>>>>>> not...
>>>>>
>>>>> No one else has reported this issue, it works for the rest of us
>>>>> apparently, so there is no reason to think that the code would
>>>>> magically change just for you without you telling us what the problem
>>>>> is.
>>>>>
>>>>>>From the sound of it, it's not a problem removing the file from disk,
>>>>> but that SM seems to think it's still there - as if the unset() of the
>>>>> attachment didn't work.  For starters, apply this patch to
>>>>> src/compose.php and show the output it generates when you delete an
>>>>> attachment.  You can apply the patch manually by finding the code
>>>>> lines referenced here and adding the lines prefixed with the + sign
>>>>> (two of them).
>>>>
>>>> Below the result :

<snip>

>>> Thanks.  So, as you can see, the unset() call seems to do nothing.
>>> Why don't you try copying the 2nd debug line and putting a copy of it
>>> immediately after the unset call, a couple lines up and see what you
>>> get (three debug lines should be in the code now).
>>
>> I don't undestand where I have to paste this 3nd debug line

The output you last sent wasn't clear to me.  Please try this:

@@ -585,12 +585,15 @@
     }

     if (isset($delete) && is_array($delete)) {
+sm_print_r($delete, $composeMessage);
         foreach($delete as $index) {
             if (!empty($composeMessage->entities) &&
isset($composeMessage->entities[$index])) {
                 $composeMessage->entities[$index]->purgeAttachments();
                 unset ($composeMessage->entities[$index]);
+sm_print_r('##################################################################',
'UNSET entities[' . $index . ']', $composeMessage);
             }
         }
+sm_print_r('==================================================================',
$composeMessage);
         $new_entities = array();
         foreach ($composeMessage->entities as $entity) {
             $new_entities[] = $entity;

>>> AFTER you post back the results from that, put this line immediately
>>> following the third debug line:
>>>
>>> unset($composeMessage->entities[0]);
>
> OK, it's works with this line...
>
>
>>>
>>> And see if that helps.
>>>
>>> What I'm trying to play with is if there is some strange scope issue,
>>> but really, there shouldn't be any scope problems, as this code is
>>> straight forward.  The unset() just plain does not work on your system
>>> is what it looks like to me, and that's not a SquirrelMail issue as
>>> far as I can tell.  What PHP version are you running?  Did you compile
>>> it yourself?  Does it have anything unusual about it?
>>
>> PHP :
>>
>> php-gd-4.3.4-1.7.C30mdk
>> libphp_common432-4.3.4-4.28.C30mdk
>> php-pear-4.3.4-3.3.C30mdk
>> php-ini-4.3.4-1mdk
>> apache2-mod_php-2.0.48_4.3.4-1mdk
>> php-ldap-4.3.4-1mdk
>> php-xml-4.3.4-1mdk
>> php-imap-4.3.4-1.5.C30mdk
>> php-cli-4.3.4-4.28.C30mdk
>> php-xmlrpc-4.3.4-1.1.C30mdk
>> php-mysql-4.3.4-1mdk
>>
>> It's not recompiled, it's distro version. I don't think I have special
>> configuration maybe something in my php.ini ?
>>
>>
>>

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
-----
squirrelmail-users mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-users@xxxxxxxxxxxxxxxxxxxxx
List archives: http://news.gmane.org/gmane.mail.squirrelmail.user
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

[Index of Archives]     [Video For Linux]     [Yosemite News]     [Yosemite Photos]     [gtk]     [KDE]     [Cyrus SASL]     [Gimp on Windows]     [Steve's Art]     [Webcams]

  Powered by Linux