[Tickets #15103] sending linked attachment gives error

noreply at bugs.horde.org noreply at bugs.horde.org
Fri Apr 15 09:59:20 UTC 2022


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: https://bugs.horde.org/ticket/15103
------------------------------------------------------------------------------
  Ticket             | 15103
  Created By         | spaarder at hotmail.nl
  Summary            | sending linked attachment gives error
  Queue              | IMP
  Version            | 6.2.27
  Type               | Bug
  State              | Unconfirmed
  Priority           | 1. Low
  Milestone          |
  Patch              |
  Owners             |
------------------------------------------------------------------------------


spaarder at hotmail.nl (2022-04-15 09:59) wrote:

When sending an attachment that is so large that it will be sent as a  
linked attachment, the following error occurs:

Apr 15 11:42:53 cloudserver2 HORDE: [imp] Error: Object of class  
DOMElement could not be converted to string in  
/usr/share/horde/imp/lib/Compose.php:2934
Apr 15 11:42:53 cloudserver2 HORDE: Stack trace:
Apr 15 11:42:53 cloudserver2 HORDE: #0  
/usr/share/horde/imp/lib/Compose.php(1541):  
IMP_Compose->_linkAttachments()
Apr 15 11:42:53 cloudserver2 HORDE: #1  
/usr/share/horde/imp/lib/Compose.php(811):  
IMP_Compose->_createMimeMessage()
Apr 15 11:42:53 cloudserver2 HORDE: #2  
/usr/share/horde/imp/lib/Ajax/Application/Handler/Common.php(540):  
IMP_Compose->buildAndSendMessage()
Apr 15 11:42:53 cloudserver2 HORDE: #3  
/usr/share/php/Horde/Core/Ajax/Application.php(175):  
IMP_Ajax_Application_Handler_Common->sendMessage()
Apr 15 11:42:53 cloudserver2 HORDE: #4  
/usr/share/horde/services/ajax.php(61):  
Horde_Core_Ajax_Application->doAction()
Apr 15 11:42:53 cloudserver2 HORDE: #5 {main} [pid 7653 on line 74 of  
"/usr/share/php/Horde/ErrorHandler.php"]

The problem is in line 2931 of Compose.php, where the problem seems to  
be that $body is uninitialized.
Inserting:
         $body="";

at line 2924 seems to solve the problem.






More information about the bugs mailing list