| Summary | Can't get Trean to work |
| Queue | Trean |
| Type | Bug |
| State | Not A Bug |
| Priority | 1. Low |
| Owners | |
| Requester | chriskbchan (at) yahoo (dot) com |
| Created | 2/7/05 (7810 days ago) |
| Due | |
| Updated | 3/6/05 (7783 days ago) |
| Assigned | |
| Resolved | 2/7/05 (7810 days ago) |
| Github Issue Link | |
| Github Pull Request | |
| Milestone | |
| Patch | No |
In trean/add.php is the method addNode called, but not with correct params:
$tree->addNode($node_id, $parent_id, $label, $indent, true, $params);
Probably the tree class changed, i found this in lib/Horde/Tree.php:
function addNode($id, $parent, $label, $indent, $expanded = true,
$params = array(), $extra_right = array(),
$extra_left = array())
So, i guess that are 2 new params available:
-$extra_right = array()
-$extra_left = array()
Could you notify me when there is a solution?
Kind regards,
Guus Beltman
The Netherlands
repository. After copying the file to the corresponding directory, it
seems to be working now.
<b>Warning</b>:
factory(/home/webmail/horde-3.0.3-rc1/lib/Horde/Tree/select.php):
failed to open stream: No such file or directory in
<b>/home/webmail/horde-3.0.3-rc1/lib/Horde/Tree.php</b> on line
<b>154</b><br />
<br />
<b>Warning</b>: factory(): Failed opening
'/home/webmail/horde-3.0.3-rc1/lib/Horde/Tree/select.php' for
inclusion
(include_path='/home/webmail/horde-3.0.3-rc1/lib:.:/php/includes:/usr/local/lib/php') in <b>/home/webmail/horde-3.0.3-rc1/lib/Horde/Tree.php</b> on line <b>154</b><br
/>
<br />
<b>Fatal error</b>: Call to undefined function: addnode() in
<b>/home/webmail/horde-3.0.3-rc1/trean-beta/lib/Trean.php</b> on line
<b>146</b><br />
From the warning message, it's looking for file
'horde/lib/Horde/Tree/select.php', but I cannot seems to find it in
either Horde 3.0.3 RC1 and CVS version...
State ⇒ Not A Bug
State ⇒ Unconfirmed
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ Can't get Trean to work
Queue ⇒ Trean
but I cannot get it working. When I tried to add a bookmark, the
'Category' list box has nothing and I got the following warnings and
errors (at the end of the message) by viewing the source:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"DTD/xhtml1-transitional.dtd">
<!-- Horde Project: http://horde.org/ | Trean: http://horde.org/trean/ -->
<!-- Trean: Copyright 2000-2004, The Horde Project. -->
<html lang="en-US"><head>
<title>Bookmarks :: Add Bookmark</title>
<!--a75c305b1c0a6022--><link href="/horde-3.0.2/themes/screen.css"
rel="stylesheet" type="text/css" />
<!--a75c305b1c0a6022--><link
href="/horde-3.0.2/themes/mozilla/screen.css" rel="stylesheet"
type="text/css" />
</head>
<body>
<div id="menu">
<script language="JavaScript" type="text/javascript"
src="/horde-3.0.2/services/javascript.php?Horde=dd2b33100920dd374b56b24624a041d8&file=open_help_win.js&app=horde"></script><ul><li><a href="/horde-3.0.2/trean/browse.php?Horde=dd2b33100920dd374b56b24624a041d8" onmouseout="window.status='';" onmouseover="window.status='Browse'; return true;"><img src="/horde-3.0.2/trean/themes/graphics/trean.png" alt="Browse" title="Browse" /><br
/>Browse</a></li>
<li><a
href="/horde-3.0.2/trean/add.php?Horde=dd2b33100920dd374b56b24624a041d8"
onmouseout="window.status='';" onmouseover="window.status='Add';
return true;" class="current"><img
src="/horde-3.0.2/trean/themes/graphics/add.png" alt="Add" title="Add"
/><br />Add</a></li>
<li><a
href="/horde-3.0.2/trean/search.php?Horde=dd2b33100920dd374b56b24624a041d8"
onmouseout="window.status='';" onmouseover="window.status='Search';
return true;"><img src="/horde-3.0.2/themes/graphics/search.png"
alt="Search" title="Search" /><br />Search</a></li>
<li><a
href="/horde-3.0.2/services/prefs.php?app=trean&Horde=dd2b33100920dd374b56b24624a041d8" onmouseout="window.status='';" onmouseover="window.status='Options'; return true;" accesskey="O"><img src="/horde-3.0.2/themes/graphics/prefs.png" alt="Options" title="Options" /><br /><span
class="accessKey">O</span>ptions</a></li>
<li><a href="javascript:open_help_win('trean');"
onmouseout="window.status='';" onmouseover="window.status='Help';
return true;" accesskey="H"><img
src="/horde-3.0.2/themes/graphics/help_index.png" alt="Help"
title="Help" /><br /><span class="accessKey">H</span>elp</a></li>
<li><a
href="/horde-3.0.2/login.php?Horde=dd2b33100920dd374b56b24624a041d8&logout_reason=logout" onmouseout="window.status='';" onmouseover="window.status='Log out'; return true;" target="_parent" accesskey="L"><img src="/horde-3.0.2/themes/graphics/logout.png" alt="Log out" title="Log out" /><br /><span class="accessKey">L</span>og
out</a></li>
</ul></div>
<br />
<form name="add_bookmark"
action="/horde-3.0.2/trean/add.php?Horde=dd2b33100920dd374b56b24624a041d8"
method="post">
<input type="hidden" name="actionID" value="add_bookmark" />
<input type="hidden" name="popup" value="" />
<table border="0" cellpadding="2" cellspacing="0">
<tr>
<td colspan="2">
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="header" colspan="2">
<b> Add a new bookmark</b>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="light" align="right"><b>URL </b></td>
<td><input type="text" name="url" size="40" value="http://" /></td>
</tr>
<tr>
<td class="light" align="right"><b>Title </b></td>
<td><input type="text" name="title" size="40" value="" /></td>
</tr>
<tr>
<td class="light" align="right"><b>Description </b></td>
<td><input type="text" name="description" size="40" value="" /></td>
</tr>
<tr>
<td class="light" align="right"><b>Category </b></td>
<td>
<select name="category_id">
<br />
<b>Warning</b>:
factory(/home/webmail/horde-3.0.2/lib/Horde/Tree/select.php): failed
to open stream: No such file or directory in
<b>/home/webmail/horde-3.0.2/lib/Horde/Tree.php</b> on line
<b>155</b><br />
<br />
<b>Warning</b>: factory(): Failed opening
'/home/webmail/horde-3.0.2/lib/Horde/Tree/select.php' for inclusion
(include_path='/home/webmail/horde-3.0.2/lib:.:/php/includes:/usr/local/lib/php') in <b>/home/webmail/horde-3.0.2/lib/Horde/Tree.php</b> on line <b>155</b><br
/>
<br />
<b>Fatal error</b>: Call to undefined function: addnode() in
<b>/home/webmail/horde-3.0.2/trean-beta/lib/Trean.php</b> on line
<b>146</b><br />