<?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>After upgrading to 3.1.1 from 3.0.x Ingo fails to display Sieve Rules</title> 
  <pubDate>Fri, 10 Apr 2026 17:28:13 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/12410</link> 
  <atom:link rel="self" type="application/rss+xml" title="After upgrading to 3.1.1 from 3.0.x Ingo fails to display Sieve Rules" href="https://bugs.horde.org/ticket/12410/rss" /> 
  <description>After upgrading to 3.1.1 from 3.0.x Ingo fails to display Sieve Rules</description> 
 
   
   
  <item> 
   <title>Did upgrade Ingo and Horde to 3.1.1 and 5.1.1. I did upgrade</title> 
   <description>Did upgrade Ingo and Horde to 3.1.1 and 5.1.1. I did upgrade the backends.local.php to read:

&lt;?php
$backends[&#039;imap&#039;][&#039;disabled&#039;] = true;
$backends[&#039;sieve&#039;][&#039;disabled&#039;] = false;
$backends[&#039;sieve&#039;][&#039;script&#039;][Ingo::RULE_ALL][&#039;params&#039;][&#039;utf8&#039;] = true;
?&gt;

but the horde error log still does complain:

Jun 27 16:28:30 mail HORDE: [ingo] PHP ERROR: Invalid argument supplied for foreach() [pid 24197 on line 116 of &quot;/var/www/horde/ingo/lib/Factory/Script.php&quot;]
Jun 27 16:28:30 mail HORDE: [ingo] PHP ERROR: array_keys() expects parameter 1 to be array, string given [pid 24197 on line 116 of &quot;/var/www/horde/ingo/lib/Factory/Script.php&quot;]

The rules itself are stored and configured in the standard sql backend configured since initial installation of this instance.

Did a &quot;grep \&#039;script\&#039;&quot; in the ingo config folder but all &#039;script&#039; matches are arrays.

backends.local.php:$backends[&#039;sieve&#039;][&#039;script&#039;][Ingo::RULE_ALL][&#039;params&#039;][&#039;utf8&#039;] = true;
backends.php: * $backends[&#039;sieve&#039;][&#039;script&#039;][Ingo::RULE_ALL][&#039;params&#039;][&#039;utf8&#039;] = true;
backends.php:    &#039;script&#039; =&gt; array(
backends.php:    &#039;script&#039; =&gt; array(
backends.php:    &#039;script&#039; =&gt; array(
backends.php:    &#039;script&#039; =&gt; array(
backends.php:    &#039;script&#039; =&gt; array(
backends.php:    &#039;script&#039; =&gt; array(
backends.php:    &#039;script&#039; =&gt; array(
backends.php:    &#039;script&#039; =&gt; array(
prefs.php:$prefGroups[&#039;script&#039;] = array(

Whats wrong here? Something i can do to get Ingo working again?

PHP version used is: 5.3.2-1ubuntu4.19 from Ubuntu LTS 10.04 Server variant.
</description> 
   <pubDate>Thu, 27 Jun 2013 14:48:06 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12410#t79033</link> 
  </item> 
   
  <item> 
   <title>Have you tried restarting your web/PHP server?  That is the </title> 
   <description>Have you tried restarting your web/PHP server?  That is the correct line, so if it is not working something might be cached.

Otherwise, you will need to debug to determine what *is* the value on line 116 (i.e. adding print_r($scripts) debug statement right before line 116).</description> 
   <pubDate>Thu, 27 Jun 2013 15:06:14 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12410#t79034</link> 
  </item> 
   
  <item> 
   <title>Hm thats interesting - i did reload and restart the webserve</title> 
   <description>Hm thats interesting - i did reload and restart the webserver via reload and restart commands of init script after installation + reconfiguring. Did not help yesterday.

Looking at the server today to provide the needed infos its working and filters are there, so actually i don&#039;t know why something was cached and why its gone now - sorry for the noise.</description> 
   <pubDate>Fri, 28 Jun 2013 07:49:18 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12410#t79076</link> 
  </item> 
   
  <item> 
   <title>I&#039;ve restarted my Apache2 severeal times, but the error did </title> 
   <description>I&#039;ve restarted my Apache2 severeal times, but the error did not go away!

If I insert &quot;print_r($scripts)&quot;  before line 116 in &quot;/var/www/horde/ingo/lib/Factory/Script.php&quot; as suggested, so it reads
--- snip ---
public function createAll()
    {  
        $scripts = $GLOBALS[&#039;session&#039;]
            -&gt;get(&#039;ingo&#039;, &#039;backend/script&#039;, Horde_Session::TYPE_ARRAY);
        $instances = array();
        /* 2013-10-11, 10:04:36, haasc: fuer debugging */
        print_r($scripts)
        foreach (array_keys($scripts) as $rule) {
            $instances[$rule] = $this-&gt;create($rule);
        }
        return $instances;
    }
--- snap ---

and reload the page, the whole Horde-WebUI (not only Ingo!) wents just white. 
No error in &quot;var/log/syslog&quot;, no error in &quot;/var/log/apache2/error.log&quot; ...

After removing or commenting the &quot;print_r($scripts)&quot;-line, everything is again OK besides that no sieve-filters are displayed in Ingo.

Where can I look further?

System Debian, Horde 5.1.2. Ingo 3.1.2. 
The Mailserver resides on different machine. 
I have several sieve-scripts, which I can manage on the mailserver via sievshell, so that it is verfied that timsieved is working.
</description> 
   <pubDate>Fri, 11 Oct 2013 08:33:24 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12410#t80980</link> 
  </item> 
   
  <item> 
   <title>&gt; I&#039;ve restarted my Apache2 severeal times, but the error di</title> 
   <description>&gt; I&#039;ve restarted my Apache2 severeal times, but the error did not go away!
&gt;
&gt; If I insert &quot;print_r($scripts)&quot;  before line 116 in 
&gt; &quot;/var/www/horde/ingo/lib/Factory/Script.php&quot; as suggested, so it reads
&gt; --- snip ---
&gt; public function createAll()
&gt;     {
&gt;         $scripts = $GLOBALS[&#039;session&#039;]
&gt;             -&gt;get(&#039;ingo&#039;, &#039;backend/script&#039;, Horde_Session::TYPE_ARRAY);
&gt;         $instances = array();
&gt;         /* 2013-10-11, 10:04:36, haasc: fuer debugging */
&gt;         print_r($scripts)
&gt;         foreach (array_keys($scripts) as $rule) {
&gt;             $instances[$rule] = $this-&gt;create($rule);
&gt;         }
&gt;         return $instances;
&gt;     }
&gt; --- snap ---
&gt;
&gt; and reload the page, the whole Horde-WebUI (not only Ingo!) wents just white.
&gt; No error in &quot;var/log/syslog&quot;, no error in &quot;/var/log/apache2/error.log&quot; ...
&gt;
&gt; After removing or commenting the &quot;print_r($scripts)&quot;-line, everything 
&gt; is again OK besides that no sieve-filters are displayed in Ingo.
&gt;
&gt; Where can I look further?
&gt;
&gt; System Debian, Horde 5.1.2. Ingo 3.1.2.
&gt; The Mailserver resides on different machine.
&gt; I have several sieve-scripts, which I can manage on the mailserver 
&gt; via sievshell, so that it is verfied that timsieved is working.
&gt;


Please use the mailing list to ask for support.

http://www.horde.org/mail/ contains a list of all available mailing lists.</description> 
   <pubDate>Mon, 14 Oct 2013 12:38:40 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12410#t81013</link> 
  </item> 
   
  <item> 
   <title>Hello,

you must insert a semicolon at the end of the line</title> 
   <description>Hello,

you must insert a semicolon at the end of the line. So you must insert &quot;print_r($scripts);&quot;

I have the same error und found out, that the $scripts variable is set to a string &quot;sieve&quot;

I used the backend configuration from the backends.ph and copied it into my backend.local.php:

$backends[&#039;sieve&#039;] = array(
    &#039;disabled&#039; =&gt; false,
    &#039;transport&#039; =&gt; array(
        Ingo::RULE_ALL =&gt; array(
            &#039;driver&#039; =&gt; &#039;timsieved&#039;,
            &#039;params&#039; =&gt; array(
                &#039;hostspec&#039; =&gt; &#039;localhost&#039;,
                &#039;logintype&#039; =&gt; &#039;PLAIN&#039;,
                &#039;usetls&#039; =&gt; false,
                &#039;port&#039; =&gt; 4190,
                &#039;scriptname&#039; =&gt; &#039;ingo&#039;,
                &#039;debug&#039; =&gt; true,
            ),
        ),
    ),
    &#039;script&#039; =&gt; array(
        Ingo::RULE_ALL =&gt; array(
            &#039;driver&#039; =&gt; &#039;sieve&#039;,
            &#039;params&#039; =&gt; array(
                &#039;utf8&#039; =&gt; false,
             ),
        ),
    ),
    &#039;shares&#039; =&gt; false
);

Can you help me to locate the error.

Best wishes,
Michael Roth

&gt; I&#039;ve restarted my Apache2 severeal times, but the error did not go away!
&gt;
&gt; If I insert &quot;print_r($scripts)&quot;  before line 116 in 
&gt; &quot;/var/www/horde/ingo/lib/Factory/Script.php&quot; as suggested, so it reads
&gt; --- snip ---
&gt; public function createAll()
&gt;     {
&gt;         $scripts = $GLOBALS[&#039;session&#039;]
&gt;             -&gt;get(&#039;ingo&#039;, &#039;backend/script&#039;, Horde_Session::TYPE_ARRAY);
&gt;         $instances = array();
&gt;         /* 2013-10-11, 10:04:36, haasc: fuer debugging */
&gt;         print_r($scripts)
&gt;         foreach (array_keys($scripts) as $rule) {
&gt;             $instances[$rule] = $this-&gt;create($rule);
&gt;         }
&gt;         return $instances;
&gt;     }
&gt; --- snap ---
&gt;
&gt; and reload the page, the whole Horde-WebUI (not only Ingo!) wents just white.
&gt; No error in &quot;var/log/syslog&quot;, no error in &quot;/var/log/apache2/error.log&quot; ...
&gt;
&gt; After removing or commenting the &quot;print_r($scripts)&quot;-line, everything 
&gt; is again OK besides that no sieve-filters are displayed in Ingo.
&gt;
&gt; Where can I look further?
&gt;
&gt; System Debian, Horde 5.1.2. Ingo 3.1.2.
&gt; The Mailserver resides on different machine.
&gt; I have several sieve-scripts, which I can manage on the mailserver 
&gt; via sievshell, so that it is verfied that timsieved is working.
&gt;
</description> 
   <pubDate>Fri, 29 Nov 2013 10:31:00 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12410#t81714</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
