6.0.0-git
2021-01-24

[#9655] ajax blockAutoUpdate returns "Horde is not activated"
Summary ajax blockAutoUpdate returns "Horde is not activated"
Queue Horde Framework Packages
Queue Version Git master
Type Bug
State Resolved
Priority 1. Low
Owners slusarz (at) horde (dot) org
Requester imp (at) lx-soft (dot) com
Created 2011-03-11 (3607 days ago)
Due
Updated 2011-03-11 (3607 days ago)
Assigned
Resolved 2011-03-11 (3607 days ago)
Milestone
Patch No

History
2011-03-11 20:41:29 Michael Slusarz Assigned to Michael Slusarz
State ⇒ Resolved
 
2011-03-11 20:41:17 Git Commit Comment #4 Reply to this comment
Changes have been made in Git for this ticket:

Bug #9655: Don't refresh blocks if refresh value is empty

  1 files changed, 16 insertions(+), 14 deletions(-)
http://git.horde.org/horde-git/-/commit/9c7475222c26a32b8db47c6095d09bbd9d7973e7
2011-03-11 20:41:13 Git Commit Comment #3 Reply to this comment
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
2011-03-11 10:17:41 imp (at) lx-soft (dot) com Comment #2 Reply to this comment
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'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['params']['params']['_refresh_time'])
                                      ? 
$item['params']['params']['_refresh_time']
                                      : $interval;
+
+                               if ($refresh_time>0) {

                                  $updateurl = 
Horde::getServiceLink('ajax', 'horde');
                                  $updateurl->pathInfo = 'blockAutoUpdate';
@@ -120,6 +122,7 @@
                                      '}, ' . intval($refresh_time * 
1000) . ')',
                                      'dom'
                                  );
+                               }
                              }
                          } else {
                              $html .= '<td width="' . ($width * 
$colspan) . '%">&nbsp;</td>';


2011-03-11 07:49:08 imp (at) lx-soft (dot) com Comment #1
Type ⇒ Bug
State ⇒ Unconfirmed
Priority ⇒ 1. Low
Summary ⇒ ajax blockAutoUpdate returns "Horde is not activated"
Queue ⇒ Horde Framework Packages
Milestone ⇒
Patch ⇒ No
Reply to this comment
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-{"response":"Horde is not activated."}*/

This message is loaded on the block with following Ajax query:
http://<server 
address>/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 "/usr/share/php/Horde/Registry.php"]
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 "/usr/share/php/Horde/Core/Block/Collection.php"]
2011-03-11T08:26:35+01:00 DEBUG: 1
Horde_Core_Ajax_Application->doAction() /var/www/services/ajax.php:60
2. call_user_func() /usr/share/php/Horde/Core/Ajax/Application.php:95
3. Horde_Ajax_Application->blockAutoUpdate()
4. Horde_Core_Block_Collection->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 
"/usr/share/php/Horde/Registry.php"]

This means that getBlock() function on 
'Horde/Core/Block/Collection.php' file is called with only 1 
parameter...




Saved Queries