[turba] Problem with turba after upgrade
Mark Wadham
MWadham at alentus.com
Thu Aug 14 14:45:27 UTC 2008
Hi,
I have just upgraded Turba to v2.2 and following the upgrade guide carefully. All the scripts appeared to work, but now that the upgrade is complete the address book is slightly broken. I've googled and found several people with the same problem but no solution.
I can browse contacts, add contacts and send emails to contacts but if I click on a contact I get "The contact you requested does not exist.".
The block of code in contact.php that it fails on is:
-------
$vars = Variables::getDefaultVariables();
$source = $vars->get('source');
if (!isset($GLOBALS['cfgSources'][$source])) {
$notification->push(_("The contact you requested does not exist."));
header('Location: ' . Horde::applicationUrl($prefs->getValue('initial_page'), true));
exit;
}
-------
The request url to view the contact is:
http://web.mail.areti.net/horde3/turba/contact.php?source=1bb3d5370d778ddc84c948c774bb48f3&key=57fac8fcf075ac09d10c9fe3b7b75872
In the code $source contains the contents of $_GET['source'] passed in the url, but I'm not sure what this related to. $_GET['key'] is a valid `object_id` key for the contact I'm trying to view.
>From my own experimenting, it appears that there is always a source defined in $GLOBALS['cfgSources'] but the array index is always different to the one specified in $source, causing it to fail. Anyone know why this is? I can hack the source to make it work but it'd be nice to know the real answer.
Thanks,
Mark
More information about the turba
mailing list