Alexis Domjan | 11 Jan 2012 14:52
Picon

Turba migration

Dear all,

I've migrated our server and I then installed a new version of Horde, 
IMP and Turba. As I did not an upgrade of packages I had to perform the 
database modifications manually, which has been done.

So, now, a user can get the list of his contacts but when he clicks on a 
contact he's getting: "The contact you requested does not exist".

I tried to debug and the problems occures in the file turba/contact.php:

$vars = Variables::getDefaultVariables();
$source = $vars->get('source');
if (!isset($GLOBALS['cfgSources'][$source]))

And so, $GLOBALS['cfgSources'][$source] is not set and it doesn't go 
further.

Anyone would have any idea ?

Additionnaly I had to change the value of object_type column from 
'Object' to 'Group' so that the contacts can be accessible.

Any help will be really appreciated.
Kind regards
--

-- 
Horus Networks Sàrl
http://www.horus.ch
Website & E-mail Powered by Solar Energy!
Responsable technique
(Continue reading)

Michael J Rubinsky | 11 Jan 2012 16:06
Favicon
Gravatar

Re: Turba migration


Quoting Alexis Domjan <adomjan <at> horus.ch>:

> Dear all,
>
> I've migrated our server and I then installed a new version of  
> Horde, IMP and Turba. As I did not an upgrade of packages I had to  
> perform the database modifications manually, which has been done.
>
> So, now, a user can get the list of his contacts but when he clicks  
> on a contact he's getting: "The contact you requested does not exist".
>
> I tried to debug and the problems occures in the file turba/contact.php:
>
> $vars = Variables::getDefaultVariables();
> $source = $vars->get('source');
> if (!isset($GLOBALS['cfgSources'][$source]))
>
> And so, $GLOBALS['cfgSources'][$source] is not set and it doesn't go further.
>
> Anyone would have any idea ?

If you don't follow the upgrade procedures we really can't help you.  
There is no telling what you might have changed incorrectly in your  
"manual" database upgrade.

> Additionnaly I had to change the value of object_type column from  
> 'Object' to 'Group' so that the contacts can be accessible.

What you are doing here is changing every contact entry into a group  
(Continue reading)

Alexis Domjan | 11 Jan 2012 16:29
Picon

Re: Turba migration

Hello,

Thank you for your answer,

> If you don't follow the upgrade procedures we really can't help you.
> There is no telling what you might have changed incorrectly in your
> "manual" database upgrade.

Well, I tried to execute the 2.1_to_2.2_sql_schema.php, but it failed 
with the following error:

# /usr/share/doc/turba2/examples# php 
scripts/upgrades/2.1_to_2.2_sql_schema.php
PHP Warning: 
require_once(/usr/share/doc/turba2/examples/scripts/upgrades/../../../lib/core.php): 
failed to open stream: No such file or directory in 
/usr/share/doc/turba2/examples/scripts/upgrades/2.1_to_2.2_sql_schema.php on 
line 41
PHP Fatal error:  require_once(): Failed opening required 
'/usr/share/doc/turba2/examples/scripts/upgrades/../../../lib/core.php' 
(include_path='.:/usr/share/php:/usr/share/pear') in 
/usr/share/doc/turba2/examples/scripts/upgrades/2.1_to_2.2_sql_schema.php on 
line 41

So, I read the file and I applied the modifications manually.

I'm running Debian GNU/Linux squeeze, and maybe the location of the file 
is not the same that it should be, that's why it can't find the 
lic/core.php file ?

(Continue reading)

Jan Schneider | 11 Jan 2012 17:02
Favicon
Gravatar

Re: Turba migration


Zitat von Alexis Domjan <adomjan <at> horus.ch>:

> Hello,
>
> Thank you for your answer,
>
>> If you don't follow the upgrade procedures we really can't help you.
>> There is no telling what you might have changed incorrectly in your
>> "manual" database upgrade.
>
> Well, I tried to execute the 2.1_to_2.2_sql_schema.php, but it  
> failed with the following error:

If you still need to run this script, then your old Turba version is  
too old. The migration scripts for Horde 4 (not only Turba) require  
that you upgraded from the latest Horde 3 versions.

> # /usr/share/doc/turba2/examples# php  
> scripts/upgrades/2.1_to_2.2_sql_schema.php
> PHP Warning:  
> require_once(/usr/share/doc/turba2/examples/scripts/upgrades/../../../lib/core.php):
failed to open stream: No such file or directory in
/usr/share/doc/turba2/examples/scripts/upgrades/2.1_to_2.2_sql_schema.php on line  
> 41
> PHP Fatal error:  require_once(): Failed opening required  
> '/usr/share/doc/turba2/examples/scripts/upgrades/../../../lib/core.php'  
> (include_path='.:/usr/share/php:/usr/share/pear') in  
> /usr/share/doc/turba2/examples/scripts/upgrades/2.1_to_2.2_sql_schema.php on  
> line 41
(Continue reading)

Alexis Domjan | 11 Jan 2012 17:08
Picon

Re: Turba migration

Dear Jan,

>> Well, I tried to execute the 2.1_to_2.2_sql_schema.php, but it failed
>> with the following error:
>
> If you still need to run this script, then your old Turba version is too
> old. The migration scripts for Horde 4 (not only Turba) require that you
> upgraded from the latest Horde 3 versions.

Well, I was able to run this script by changing the HORDE_BASE value, 
and it worked.

Actually I'm not running Horde 4, but Horde 3.3.8 which is the stock 
version installed with Debian Squeeze (6.0.x).

Migration scripts for Horde3 worked and Horde/IMP are working pretty 
fine. I've got only this problem with Turba2 and displaying the contacts.

Thanks for your answer.
KR

>
>> # /usr/share/doc/turba2/examples# php
>> scripts/upgrades/2.1_to_2.2_sql_schema.php
>> PHP Warning:
>> require_once(/usr/share/doc/turba2/examples/scripts/upgrades/../../../lib/core.php):
>> failed to open stream: No such file or directory in
>> /usr/share/doc/turba2/examples/scripts/upgrades/2.1_to_2.2_sql_schema.php
>> on line 41
>> PHP Fatal error: require_once(): Failed opening required
(Continue reading)

Alexis Domjan | 11 Jan 2012 16:39
Picon

Re: Turba migration

Hello again,

Finally I changed HORDE_BASE in 2.1_to_2.2_sql_schema.php and I 
successfully ran the script.

However I've still the same issue. I can get the list of the contacts, 
but when I click on one I get a warning saying that this contact doesn't 
exist.

Am I wrong with something ?

Kind regards.

>> Dear all,
>>
>> I've migrated our server and I then installed a new version of Horde,
>> IMP and Turba. As I did not an upgrade of packages I had to perform
>> the database modifications manually, which has been done.
>>
>> So, now, a user can get the list of his contacts but when he clicks on
>> a contact he's getting: "The contact you requested does not exist".
>>
>> I tried to debug and the problems occures in the file turba/contact.php:
>>
>> $vars = Variables::getDefaultVariables();
>> $source = $vars->get('source');
>> if (!isset($GLOBALS['cfgSources'][$source]))
>>
>> And so, $GLOBALS['cfgSources'][$source] is not set and it doesn't go
>> further.
(Continue reading)


Gmane