<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="https://dev.horde.org/themes/horde//default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>Error when editing message</title> 
  <pubDate>Sat, 04 Apr 2026 12:52:34 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/13991</link> 
  <atom:link rel="self" type="application/rss+xml" title="Error when editing message" href="https://bugs.horde.org/ticket/13991/rss" /> 
  <description>Error when editing message</description> 
 
   
   
  <item> 
   <title>While editing a message if we upload an attachment and we tr</title> 
   <description>While editing a message if we upload an attachment and we try to click on the link of the attachment, we get this error message:

A fatal error has occurred
No es poden visualitzar les dades adjuntes.
( Translation: You can&#039;t visualize the attachment)


1. IMP_Compose_View-&gt;composeAttachPreview() /var/www/horde/imp/view.php:45

Details
The full error message is logged in Horde&#039;s log file, and is shown below only to administrators. Non-administrative users will not see error details.

IMP_Exception Object
(
    [details] =&gt; 
    [logged] =&gt; 1
    [_logLevel:protected] =&gt; 0
    [message:protected] =&gt; No es poden visualitzar les dades adjuntes.
    [string:Exception:private] =&gt; 
    [code:protected] =&gt; 0
    [file:protected] =&gt; /var/www/horde/imp/lib/Compose/View.php
    [line:protected] =&gt; 54
    [trace:Exception:private] =&gt; Array
        (
            [0] =&gt; Array
                (
                    [file] =&gt; /var/www/horde/imp/view.php
                    [line] =&gt; 45
                    [function] =&gt; composeAttachPreview
                    [class] =&gt; IMP_Compose_View
                    [type] =&gt; -&gt;
                    [args] =&gt; Array
                        (
                            [0] =&gt; 1
                            [1] =&gt; 1
                            [2] =&gt; 
                        )

                )

        )

    [previous:Exception:private] =&gt; 
    [xdebug_message] =&gt; &lt;tr&gt;&lt;th align=&#039;left&#039; bgcolor=&#039;#f57900&#039; colspan=&quot;5&quot;&gt;&lt;span style=&#039;background-color: #cc0000; color: #fce94f; font-size: x-large;&#039;&gt;( ! )&lt;/span&gt; IMP_Exception: No es poden visualitzar les dades adjuntes. in /var/www/horde/imp/lib/Compose/View.php on line &lt;i&gt;54&lt;/i&gt;&lt;/th&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;th align=&#039;left&#039; bgcolor=&#039;#e9b96e&#039; colspan=&#039;5&#039;&gt;Call Stack&lt;/th&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;th align=&#039;center&#039; bgcolor=&#039;#eeeeec&#039;&gt;#&lt;/th&gt;&lt;th align=&#039;left&#039; bgcolor=&#039;#eeeeec&#039;&gt;Time&lt;/th&gt;&lt;th align=&#039;left&#039; bgcolor=&#039;#eeeeec&#039;&gt;Memory&lt;/th&gt;&lt;th align=&#039;left&#039; bgcolor=&#039;#eeeeec&#039;&gt;Function&lt;/th&gt;&lt;th align=&#039;left&#039; bgcolor=&#039;#eeeeec&#039;&gt;Location&lt;/th&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&#039;#eeeeec&#039; align=&#039;center&#039;&gt;1&lt;/td&gt;&lt;td bgcolor=&#039;#eeeeec&#039; align=&#039;center&#039;&gt;0.0001&lt;/td&gt;&lt;td bgcolor=&#039;#eeeeec&#039; align=&#039;right&#039;&gt;239856&lt;/td&gt;&lt;td bgcolor=&#039;#eeeeec&#039;&gt;{main}(  )&lt;/td&gt;&lt;td title=&#039;/var/www/horde/imp/view.php&#039; bgcolor=&#039;#eeeeec&#039;&gt;../view.php&lt;b&gt;:&lt;/b&gt;0&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td bgcolor=&#039;#eeeeec&#039; align=&#039;center&#039;&gt;2&lt;/td&gt;&lt;td bgcolor=&#039;#eeeeec&#039; align=&#039;center&#039;&gt;0.0342&lt;/td&gt;&lt;td bgcolor=&#039;#eeeeec&#039; align=&#039;right&#039;&gt;2199216&lt;/td&gt;&lt;td bgcolor=&#039;#eeeeec&#039;&gt;IMP_Compose_View-&gt;composeAttachPreview(  )&lt;/td&gt;&lt;td title=&#039;/var/www/horde/imp/view.php&#039; bgcolor=&#039;#eeeeec&#039;&gt;../view.php&lt;b&gt;:&lt;/b&gt;45&lt;/td&gt;&lt;/tr&gt;
</description> 
   <pubDate>Tue, 19 May 2015 07:48:15 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/13991#t88107</link> 
  </item> 
   
  <item> 
   <title>So what&#039;s the bug?  You haven&#039;t proven that the message data</title> 
   <description>So what&#039;s the bug?  You haven&#039;t proven that the message data is actually being saved (i.e. your configuration is correct).  That&#039;s exactly the kind of message you should be receiving if the attachment data is not being saved correctly.</description> 
   <pubDate>Wed, 15 Jul 2015 06:34:15 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/13991#t88386</link> 
  </item> 
   
  <item> 
   <title>&gt; So what&#039;s the bug?  You haven&#039;t proven that the message da</title> 
   <description>&gt; So what&#039;s the bug?  You haven&#039;t proven that the message data is 
&gt; actually being saved (i.e. your configuration is correct).  That&#039;s 
&gt; exactly the kind of message you should be receiving if the attachment 
&gt; data is not being saved correctly.

Our current installed versions are: Horde 5.2.8, IMP  6.2.11 

If the editing message is saved as a draft then all attached files are saved.

If I go to Draft folder and I select the message then I can see all the attached files and these files can be downloaded or displayed by horde.

The error message appears with some file types just in editon mode, i.e. pdf, doc, png, jpg, but they can be displayed from a saved draft message.

So it appears this problem is caused by  compose message form

https://server/horde/imp/dynamic.php?page=compose&amp;buid=14092&amp;mailbox=RHJhZnRz&amp;type=resume&amp;token=whtkI_Z-D4Epp17lX9R-nkF&amp;uniq=1461339533663

Some other extensions can be displayed in edition mode without any problem, i.e. txt, csv, sh.

The error message is always the same:

&quot;A fatal error has occurred
Could not display attachment data.

1. IMP_Compose_View-&gt;composeAttachPreview() /var/www/horde/imp/view.php:45

Details
The full error message is logged in Horde&#039;s log file, and is shown below only to administrators. Non-administrative users will not see error details.

IMP_Exception Object
(
    [details] =&gt; 
    [logged] =&gt; 1
    [_logLevel:protected] =&gt; 0
    [message:protected] =&gt; Could not display attachment data.
    [string:Exception:private] =&gt; 
    [code:protected] =&gt; 0
    [file:protected] =&gt; /var/www/horde/imp/lib/Compose/View.php
    [line:protected] =&gt; 54
    [trace:Exception:private] =&gt; Array
        (
            [0] =&gt; Array
                (
                    [file] =&gt; /var/www/horde/imp/view.php
                    [line] =&gt; 45
                    [function] =&gt; composeAttachPreview
                    [class] =&gt; IMP_Compose_View
                    [type] =&gt; -&gt;
                    [args] =&gt; Array
                        (
                            [0] =&gt; 1
                            [1] =&gt; 1
                            [2] =&gt; 
                        )

                )

        )

    [previous:Exception:private] =&gt; 
)
&quot;


</description> 
   <pubDate>Fri, 22 Apr 2016 15:39:47 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/13991#t90383</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
