[turba] Turba upgrade problems fixed

Paul van der Vlis paul at vandervlis.nl
Mon Mar 31 18:47:56 UTC 2008


Jan Schneider schreef:
> Zitat von Paul van der Vlis <paul at vandervlis.nl>:
> 
>> 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');
>> (...)
> 
> This comes from Debian moving the files around the file system and not  
> properly updating paths.

When I don't forget it, I will send them a bugreport!

>> # $name = $share->get('sourceType') . ':' . $share->get('uid');
>>   $name = 'localsql' . ':' . $share->get('uid');
> 
> This shouldn't be necessary, theoretically. But maybe Michael can say  
> more about this.
> 
>> Another problem was in the '1.1_to_1.2.sql' script.
>> There is a ';' missing at the end of a line.
> 
> Looks like no one ever used this script. Or didn't report this error  
> to us. Fixed in CVS.

Ah, nice to hear.

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

Otherwise I saw this kind of errors in /var/log/horde/horde.log :

Mar 31 12:36:41 HORDE [error] [turba] DB Error: no such field: SELECT
object_id, owner_id, object_type, object_members, object_uid,
object_name, object_email, object_alias, object_homeaddress,
object_workaddress, object_homephone, object_workphone,
object_cellphone, object_fax, object_title, object_company,
object_notes, object_pgppublickey, object_smimepublickey,
object_freebusyurl FROM turba_objects WHERE
(owner_id = 'gs' AND (LOWER(object_name) LIKE LOWER('%%')))
[nativecode=1054 ** Unknown column 'object_type' in 'field list'] [on
line 126 of "/usr/share/horde3/turba/lib/Driver/sql.php"]

>> 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
> 
> I don't see anything in this line that could cause this warning,  
> because we only *set* array indices there. Try what I just committed,  
> anyway.

It's about what is missing.
After "Undefined index: " there must be something, I guess 'localsql'.

>> 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
> 
> No recent version of Turba calls include_once anywhere near this line.

I am using Turba version 2.1.3, what comes with Debian Etch.

---------------------
    function &factory($name, $config)
    {
        $class = basename($config['type']);    #line 1075
        include_once dirname(__FILE__) . '/Driver/' . $class . '.php';
        $class = 'Turba_Driver_' . $class;
------------------

With regards,
Paul van der Vlis.




-- 
http://www.vandervlis.nl/



More information about the turba mailing list