[turba] Turba upgrade problems fixed

Paul van der Vlis paul at vandervlis.nl
Mon Mar 31 15:20:14 UTC 2008


Hello,

I had problems with the create_default_histories.php script, and I see
more people have this problem.

I have modified a few lines to get it working, maybe other people find
this while Googling. This is what I did (for Debian Etch):

# @define('HORDE_BASE', dirname(__FILE__) . '/../../..');
@define('HORDE_BASE', '/usr/share/horde3');
# @define('TURBA_BASE', dirname(__FILE__) . '/../..');
@define('TURBA_BASE', '/usr/share/horde3/turba');
(...)
# $name = $share->get('sourceType') . ':' . $share->get('uid');
  $name = 'localsql' . ':' . $share->get('uid');

Another problem was in the '1.1_to_1.2.sql' script.
There is a ';' missing at the end of a line.

And I used version 1.2.5 of Turba before, and still I needed the
'1.1_to_1.2.sql' script, strange....

Upgrading Horde is not easy...

With regards,
Paul van der Vlis.


This was the problem:

elo2:/usr/share/horde3/turba/lib# php
/usr/share/doc/turba2/examples/scripts/upgrades/create_default_histories.php

Notice: Undefined index:   in
/usr/share/doc/turba2/examples/scripts/upgrades/create_default_histories.php
on line 69

Notice: Undefined index:   in
/usr/share/doc/turba2/examples/scripts/upgrades/create_default_histories.php
on line 69

(...)

Notice: Undefined index:   in
/usr/share/doc/turba2/examples/scripts/upgrades/create_default_histories.php
on line 69
Creating default histories for localsql ...

Notice: Undefined index:  type in /usr/share/horde3/turba/lib/Driver.php
on line 1075

Warning:
Turba_Driver::include_once(/usr/share/horde3/turba/lib/Driver/.php):
failed to open stream: No such file or directory in
/usr/share/horde3/turba/lib/Driver.php on line 1076

Warning: Turba_Driver::include_once(): Failed opening
'/usr/share/horde3/turba/lib/Driver/.php' for inclusion
(include_path='/usr/share/horde3/lib:.:/usr/share/php:/usr/share/pear')
in /usr/share/horde3/turba/lib/Driver.php on line 1076
object(PEAR_Error)#87 (8) {
  ["error_message_prefix"]=>
  string(0) ""
  ["mode"]=>
  int(1)
  ["level"]=>
  int(1024)
  ["code"]=>
  NULL
  ["message"]=>
  string(47) "Unable to load the definition of Turba_Driver_."
  ["userinfo"]=>
  NULL
  ["backtrace"]=>
  array(4) {
    [0]=>
    array(7) {
      ["file"]=>
      string(23) "/usr/share/php/PEAR.php"
      ["line"]=>
      int(566)
      ["function"]=>
      string(10) "PEAR_Error"
      ["class"]=>
      string(10) "PEAR_Error"
      ["object"]=>
      object(PEAR_Error)#87 (8) {
        ["error_message_prefix"]=>
        string(0) ""
        ["mode"]=>
        int(1)
        ["level"]=>
        int(1024)
        ["code"]=>
        NULL
        ["message"]=>
        string(47) "Unable to load the definition of Turba_Driver_."
        ["userinfo"]=>
        NULL
        ["backtrace"]=>
        array(4) {
          [0]=>
          array(7) {
            ["file"]=>
            string(23) "/usr/share/php/PEAR.php"
            ["line"]=>
            int(566)
            ["function"]=>
            string(10) "PEAR_Error"
            ["class"]=>
            string(10) "PEAR_Error"
            ["object"]=>
            *RECURSION*
            ["type"]=>
            string(2) "->"
            ["args"]=>
            array(5) {
              [0]=>
              string(47) "Unable to load the definition of Turba_Driver_."
              [1]=>
              NULL
              [2]=>
              int(1)
              [3]=>
              int(1024)
              [4]=>
              NULL
            }
          }
          [1]=>
          array(6) {
            ["file"]=>
            string(38) "/usr/share/horde3/turba/lib/Driver.php"
            ["line"]=>
            int(1081)
            ["function"]=>
            string(10) "raiseError"
            ["class"]=>
            string(4) "PEAR"
            ["type"]=>
            string(2) "::"
            ["args"]=>
            array(1) {
              [0]=>
              string(47) "Unable to load the definition of Turba_Driver_."
            }
          }
          [2]=>
          array(6) {
            ["file"]=>
            string(38) "/usr/share/horde3/turba/lib/Driver.php"
            ["line"]=>
            int(1160)
            ["function"]=>
            string(7) "factory"
            ["class"]=>
            string(12) "Turba_Driver"
            ["type"]=>
            string(2) "::"
            ["args"]=>
            array(2) {
              [0]=>
              string(8) ":adeboer"
              [1]=>
              array(1) {
                ["title"]=>
                string(19) "adeboer's adresboek"
              }
            }
          }
          [3]=>
          array(6) {
            ["file"]=>
            string(76)
"/usr/share/doc/turba2/examples/scripts/upgrades/create_default_histories.php"
            ["line"]=>
            int(78)
            ["function"]=>
            string(9) "singleton"
            ["class"]=>
            string(12) "Turba_Driver"
            ["type"]=>
            string(2) "::"
            ["args"]=>
            array(1) {
              [0]=>
              string(8) ":adeboer"
            }
          }
        }
        ["callback"]=>
        NULL
      }
      ["type"]=>
      string(2) "->"
      ["args"]=>
      array(5) {
        [0]=>
        string(47) "Unable to load the definition of Turba_Driver_."
        [1]=>
        NULL
        [2]=>
        int(1)
        [3]=>
        int(1024)
        [4]=>
        NULL
      }
    }
    [1]=>
    array(6) {
      ["file"]=>
      string(38) "/usr/share/horde3/turba/lib/Driver.php"
      ["line"]=>
      int(1081)
      ["function"]=>
      string(10) "raiseError"
      ["class"]=>
      string(4) "PEAR"
      ["type"]=>
      string(2) "::"
      ["args"]=>
      array(1) {
        [0]=>
        string(47) "Unable to load the definition of Turba_Driver_."
      }
    }
    [2]=>
    array(6) {
      ["file"]=>
      string(38) "/usr/share/horde3/turba/lib/Driver.php"
      ["line"]=>
      int(1160)
      ["function"]=>
      string(7) "factory"
      ["class"]=>
      string(12) "Turba_Driver"
      ["type"]=>
      string(2) "::"
      ["args"]=>
      array(2) {
        [0]=>
        string(8) ":adeboer"
        [1]=>
        array(1) {
          ["title"]=>
          string(19) "adeboer's adresboek"
        }
      }
    }
    [3]=>
    array(6) {
      ["file"]=>
      string(76)
"/usr/share/doc/turba2/examples/scripts/upgrades/create_default_histories.php"
      ["line"]=>
      int(78)
      ["function"]=>
      string(9) "singleton"
      ["class"]=>
      string(12) "Turba_Driver"
      ["type"]=>
      string(2) "::"
      ["args"]=>
      array(1) {
        [0]=>
        string(8) ":adeboer"
      }
    }
  }
  ["callback"]=>
  NULL
}
elo2:/usr/share/horde3/turba/lib#



More information about the turba mailing list