<?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>ajax blockAutoUpdate returns &quot;Horde is not activated&quot;</title> 
  <pubDate>Fri, 10 Apr 2026 13:26:31 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/9655</link> 
  <atom:link rel="self" type="application/rss+xml" title="ajax blockAutoUpdate returns &quot;Horde is not activated&quot;" href="https://bugs.horde.org/ticket/9655/rss" /> 
  <description>ajax blockAutoUpdate returns &quot;Horde is not activated&quot;</description> 
 
   
   
  <item> 
   <title>If I add following blocks on my horde-alpha portal:
- Horde</title> 
   <description>If I add following blocks on my horde-alpha portal:
- Horde_Block_Fortune
- IMP_Block_Summay
- Horde_Block_Weatherdotcom

The corresponding block contains following message:
/*-secure-{&quot;response&quot;:&quot;Horde is not activated.&quot;}*/

This message is loaded on the block with following Ajax query:
http://&lt;server address&gt;/services/ajax.php/horde/blockAutoUpdate?blockid=Horde_Block_Fortune

My debug log is below:

2011-03-11T08:26:35+01:00 DEBUG: HORDE Horde_Registry: retrieved app with cache ID horde_registry|app|1299796374|2731121e0a7975dd3eee4ea488b8105f [pid 890 on line 1611 of &quot;/usr/share/php/Horde/Registry.php&quot;]
2011-03-11T08:26:35+01:00 DEBUG: HORDE [horde] PHP ERROR: Missing argument 2 for Horde_Core_Block_Collection::getBlock(), called in /var/www/lib/Ajax/Application.php on line 37 and defined [pid 890 on line 64 of &quot;/usr/share/php/Horde/Core/Block/Collection.php&quot;]
2011-03-11T08:26:35+01:00 DEBUG: 1. Horde_Core_Ajax_Application-&gt;doAction() /var/www/services/ajax.php:60
2. call_user_func() /usr/share/php/Horde/Core/Ajax/Application.php:95
3. Horde_Ajax_Application-&gt;blockAutoUpdate()
4. Horde_Core_Block_Collection-&gt;getBlock() /var/www/lib/Ajax/Application.php:37
5. Horde::errorHandler() /usr/share/php/Horde/Core/Block/Collection.php:64

2011-03-11T08:26:35+01:00 DEBUG: HORDE [horde] Max memory usage: 4980736 bytes [pid 890 on line 462 of &quot;/usr/share/php/Horde/Registry.php&quot;]

This means that getBlock() function on &#039;Horde/Core/Block/Collection.php&#039; file is called with only 1 parameter...



</description> 
   <pubDate>Fri, 11 Mar 2011 07:49:08 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9655#t62220</link> 
  </item> 
   
  <item> 
   <title>This bug is at least two distinct issue:

1. Refresh rate </title> 
   <description>This bug is at least two distinct issue:

1. Refresh rate is set to never.

This value is not handled correctly, because ajax is used.

2. Ajax reloading does not work as expected

For the first issue, I&#039;ve the following patch:

--- Core/Block/Layout/View.php.orig     2011-03-11 11:16:08.000000000 +0100
+++ Core/Block/Layout/View.php  2011-03-11 11:10:35.000000000 +0100
@@ -105,6 +105,8 @@
                                 $refresh_time = isset($item[&#039;params&#039;][&#039;params&#039;][&#039;_refresh_time&#039;])
                                     ? $item[&#039;params&#039;][&#039;params&#039;][&#039;_refresh_time&#039;]
                                     : $interval;
+
+                               if ($refresh_time&gt;0) {
 
                                 $updateurl = Horde::getServiceLink(&#039;ajax&#039;, &#039;horde&#039;);
                                 $updateurl-&gt;pathInfo = &#039;blockAutoUpdate&#039;;
@@ -120,6 +122,7 @@
                                     &#039;}, &#039; . intval($refresh_time * 1000) . &#039;)&#039;,
                                     &#039;dom&#039;
                                 );
+                               }
                             }
                         } else {
                             $html .= &#039;&lt;td width=&quot;&#039; . ($width * $colspan) . &#039;%&quot;&gt;&amp;nbsp;&lt;/td&gt;&#039;;

</description> 
   <pubDate>Fri, 11 Mar 2011 10:17:41 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9655#t62223</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git for this ticket:

Bug #9655: F</title> 
   <description>Changes have been made in Git for this ticket:

Bug #9655: Fix updates for refreshing Blocks

 3 files changed, 18 insertions(+), 4 deletions(-)
http://git.horde.org/horde-git/-/commit/62da22a41010e62914c1a936d78e871dc3d3138f</description> 
   <pubDate>Fri, 11 Mar 2011 20:41:13 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9655#t62226</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git for this ticket:

Bug #9655: D</title> 
   <description>Changes have been made in Git for this ticket:

Bug #9655: Don&#039;t refresh blocks if refresh value is empty

 1 files changed, 16 insertions(+), 14 deletions(-)
http://git.horde.org/horde-git/-/commit/9c7475222c26a32b8db47c6095d09bbd9d7973e7</description> 
   <pubDate>Fri, 11 Mar 2011 20:41:17 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9655#t62227</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
