Summary | Wrong array variable |
Queue | Horde Framework Packages |
Queue Version | FRAMEWORK_3 |
Type | Bug |
State | Not A Bug |
Priority | 2. Medium |
Owners | |
Requester | stephen.cuppett (at) webmastersinc (dot) net |
Created | 04/08/2006 (7042 days ago) |
Due | |
Updated | 07/29/2008 (6199 days ago) |
Assigned | 04/08/2006 (7042 days ago) |
Resolved | 04/21/2006 (7029 days ago) |
Github Issue Link | |
Github Pull Request | |
Milestone | |
Patch | No |
to solve it
The following code in lib/Horde/DataTree.php is incorrect:
distributed with Plesk's Horde system.
Here is the link to the forum append at Plesk's site with the resolution:
http://forum.swsoft.com/showthread.php?s=36d8ca0dbf1a012cf1e2d23d6d42578a&threadid=32922&highlight=Horde
Horde and IMP. Will generate a diff of this and the Plesk version and
see if I can resolve it. Will post back here with results.
they don't contribute anything back to us, and they do a horrible job
of supporting their users.
I'm running PHP 5 on my site and not seeing any of these errors, So
you're going to need to do a little digging to figure out where the
problem is coming from.
imp packages. I had updated to PHP5 and different parts of the
program have started to fail with these types of errors:
[Sun Apr 09 09:47:59 2006] [error] [client 24.211.148.149] PHP Fatal
error: Cannot use object of type DB_mysql as array in
/usr/share/psa-horde/lib/Horde/DataTree/sql.php on line 997, referer:
http://webmail.webmastersinc.net/services/portal/sidebar.php
I'm getting them on the Notes, Calendar, Address Book accompanied by a
blank page. The only thing that appears to work is the Inbox;
however, I did have to make that cat -> cats adjustment in the
aforementioned code piece to get the login and mail portions to come
up due to a similar fatal error as quoted before.
I seem to have very recent versions:
psa-imp-4.1-rhel3.build80060331.13
psa-horde-3.1.1-rhel3.build80060331.13
php -v
PHP 5.1.2 (cli) (built: Mar 5 2006 17:16:08)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies
However error conditions and edge cases still pop up now and then. If
you're seeing problems in normal operation, something else may be
going on. Are you using APC or another php accelerator?
other errors elsewhere in the framework that seems to stem from
treating classes like arrays, which was okay with PHP4, but that now
causes errors in PHP5.
State ⇒ Feedback
Priority ⇒ 2. Medium
isn't reported by anyone else.
rest of the code. This causes the PHP fatal error:
foreach loop and is correct.
Priority ⇒ 3. High
Type ⇒ Bug
Summary ⇒ Wrong array variable
Queue ⇒ Horde Framework Packages
State ⇒ Unconfirmed
function set($data, $charset = null)
{
$cats = array();
$cids = array();
foreach ($data as $id => $cat) {
if (!is_null($charset)) {
$cat[1] = String::convertCharset($cat[1], $charset);
}
$cids[$cat[0]] = $cat[1];
$cparents[$cat[0]] = $cat[2];
$corders[$cat[0]] = $cat[3];
$sorders[$cat[0]] = $id;
}
It creates the array cats, but then proceeds to use "cat" for the rest
of the code. This causes the PHP fatal error:
PHP Fatal error: Cannot use object of type DB_mysql as array in
/usr/share/psa-horde/lib/Horde/DataTree.php on line 657.
This problem exists in 3.1.1