I'm not that good at PHP, but isn't there a way that you could just add an if statement around that block of code to only use it if IMSP is being used? I don't know if that's the best way to do it, but it would make configuration simpler, and to me anything that makes the config simpler can only be a good thing.

Bill

On Tue, 1 Nov 2005, Ola Lundqvist wrote:

tags 336549 + wontfix
thanks

Hello

On Mon, Oct 31, 2005 at 06:35:32AM -0500, Bill Denney wrote:
On Mon, 31 Oct 2005, Ola Lundqvist wrote:

When I try to use turba, it gives an error where it tries to access the
IMSP store when I'm using an sql store (via localsql in the
configuration).

* What error message do you get?

These two show up before the top of the frame (i.e. above the Browse, Add,
Search, etc.).

Warning: Cannot modify header information - headers already sent by
(output started at /usr/share/horde3/lib/Net/IMSP.php:2) in
/usr/share/horde3/turba/templates/common-header.inc on line 4

Warning: Cannot modify header information - headers already sent by
(output started at /usr/share/horde3/lib/Net/IMSP.php:2) in
/usr/share/horde3/turba/templates/common-header.inc on line 5

Then below that, I get the red octagon with a hand in it that says

Connection to IMSP host failed.

When I change sources.php to comment out the imsp sections (see attached
diff), I no longer get the errors (sorry, I should have mentioned that
last time).

* What database are you trying to get access to?

I'm accessing the one that is built by
/usr/share/doc/turba2/examples/scripts/sql/turba_objects.pgsql.sql

* Have you created that database and checked that you can access it though
 the values you have provided to the turba configuration?

If I understand the question, yes, when I change the sources.php as
mentioned above I don't have the problems.

Ok, then this is not actually a bug just a configuration error. Or do you
have any other opinion?

* What type of database is it (mysql, postgres etc?)

postgres.

Regards,

// Ola

Thanks,

Bill

Regards,

// Ola

Bill

-- System Information:
Debian Release: testing/unstable
 APT prefers testing
 APT policy: (500, 'testing'), (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.8-2-686
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)

Versions of packages turba2 depends on:
ii  horde3                        3.0.5-3    horde web application
framework

Versions of packages turba2 recommends:
ii  php4-ldap                    4:4.3.10-16 LDAP module for php4
ii  php4-pgsql                   3:4.3.10-5  PostgreSQL module for php4

-- no debconf information



--
--------------------- Ola Lundqvist ---------------------------
/  [EMAIL PROTECTED]                     Annebergsslingan 37      \
|  [EMAIL PROTECTED]                 654 65 KARLSTAD          |
|  +46 (0)54-10 14 30                  +46 (0)70-332 1551       |
|  http://www.opal.dhs.org             UIN/icq: 4912500         |
\  gpg/f.p.: 7090 A92B 18FE 7994 0C36  4FE4 18A1 B1CF 0FE5 3DD9 /
---------------------------------------------------------------


--
"... it looks like the Care Bears threw up on it." -- Emily Ogilvie

--- sources.php 2005-10-31 06:27:02.756448768 -0500
+++ sources.php.old     2005-10-31 06:26:01.579749040 -0500
@@ -479,6 +479,7 @@
 }


+/*
 $cfgSources['imsp'] = array(
     'title' => _("IMSP"),
     'type' => 'imsp',
@@ -522,11 +523,11 @@
     'readonly' => false,
     'export' => true
     );
-
+*/
 /**
  * Get any other addressbooks this user might be privy to.
  */
-
+/*
 require_once 'Net/IMSP/Utils.php';
 $result = Net_IMSP_Utils::getAllBooks($cfgSources['imsp']);
 if (!is_a($result, 'PEAR_Error')) {
@@ -546,7 +547,7 @@
 } else {
     $notification->push($result);
 }
-
+*/

 /* Begin Kolab sources. */
 if (!empty($GLOBALS['conf']['kolab']['enabled'])) {


--
--------------------- Ola Lundqvist ---------------------------
/  [EMAIL PROTECTED]                     Annebergsslingan 37      \
|  [EMAIL PROTECTED]                 654 65 KARLSTAD          |
|  +46 (0)54-10 14 30                  +46 (0)70-332 1551       |
|  http://www.opal.dhs.org             UIN/icq: 4912500         |
\  gpg/f.p.: 7090 A92B 18FE 7994 0C36  4FE4 18A1 B1CF 0FE5 3DD9 /
---------------------------------------------------------------


--
"You have not converted a man because you have silenced him."
  -- John Morley



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to