6.0.0-alpha14
7/3/25

[#6132] Block/View.php foreach() error
Summary Block/View.php foreach() error
Queue Horde Framework Packages
Queue Version HEAD
Type Bug
State Not A Bug
Priority 2. Medium
Owners
Requester horde (at) x-rayman (dot) co (dot) uk
Created 01/22/2008 (6372 days ago)
Due
Updated 01/28/2008 (6366 days ago)
Assigned 01/22/2008 (6372 days ago)
Resolved 01/28/2008 (6366 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
01/28/2008 03:59:05 PM Chuck Hagenbuch State ⇒ Not A Bug
 
01/28/2008 12:27:02 PM horde (at) x-rayman (dot) co (dot) uk Comment #5 Reply to this comment
Make sure you're updating horde and the framework in sync, as
described in horde/docs/INSTALL.
Sorry for not replying sooner, you were correct horde had not been 
updated correctly.  I'm not 100% certain why though something wrong 
with the way I had setup the cvs co and updates?



Not to worry a complete clean install from the cvs worked fine.
01/22/2008 07:49:20 PM Chuck Hagenbuch Comment #4 Reply to this comment
Make sure you're updating horde and the framework in sync, as 
described in horde/docs/INSTALL.
01/22/2008 07:45:32 PM horde (at) x-rayman (dot) co (dot) uk Comment #3 Reply to this comment
Yes, that code changed, but it also changed in services/portal - do
you have horde base from CVS also?
I believed I had the latest version and have been using cvs update -Pd 
from within the horde directory.  I also had issues with imp and went 
back to 4.2 from 5.0 CVS.



I will co the code from scratch again for the whole thing and see how it goes.



Below are my current test.php result:



Horde Version



     * Horde: 3.2-cvs



Horde Applications



     * Dimp: H3 (1.0-cvs)

     * Horde: 3.2-cvs

     * Imp: H3 (4.2-cvs) (run Imp tests)

     * Ingo: H3 (1.2-cvs) (run Ingo tests)

     * Klutz: 1.0-cvs (run Klutz tests)

     * Kronolith: H3 (2.2-cvs) (run Kronolith tests)

     * Mimp: H3 (2.0-cvs)

     * Mnemo: H3 (3.0-cvs)

     * Nag: H3 (3.0-cvs)

     * Sesha: 1.0-cvs

     * Turba: H3 (2.2-cvs) (run Turba tests)


01/22/2008 05:02:31 PM Chuck Hagenbuch Comment #2
State ⇒ Feedback
Reply to this comment
Yes, that code changed, but it also changed in services/portal - do 
you have horde base from CVS also?
01/22/2008 10:22:29 AM horde (at) x-rayman (dot) co (dot) uk Comment #1
Priority ⇒ 2. Medium
Type ⇒ Bug
Summary ⇒ Block/View.php foreach() error
Queue ⇒ Horde Framework Packages
State ⇒ Unconfirmed
Reply to this comment
I've recently reinstalled horde for an FC8 upgrade and choose to 
download from the cvs as per my fc6 install.  However when I got 
framework from the horde cvs there appears to have been a change to 
how the Block code has been written specifically the View.php and 
perhaps others.  The result is that on logging into my horde account I 
can NOT see any block and I record:



  PHP Warning:  Invalid argument supplied for foreach() in 
/usr/share/pear/Horde/Block/Layout/View.php



This is with version  * $Horde: 
framework/Block/Block/Layout/View.php,v 1.4.2.9 2008/01/02 11:30:23 
jan Exp $



If I copy my old fc6 /usr/share/pear/Horde directory to my FC8 install 
all works again? Comparing the code there appears to be significant 
changes between the two versions of Block/Layout/View.php



FC6 version:  * $Horde: framework/Block/Block/Layout/View.php,v 1.16 
2007/10/31 00:23:45 jan Exp $



Could it be based around this being missing in the latest version?

function Horde_Block_Layout_View($layout = '')

     {

         $this->_layout = @unserialize($layout);

         if (!$this->_layout) {

             $this->_layout = array();

         }

     }



Other info:

PHP Version: 5.2.4

Apache/2.2.6 (Fedora) API version 20051115

Saved Queries