[turba] turba problems

Robert Williams rjwill at seas.upenn.edu
Thu Sep 14 06:13:25 PDT 2006


More info of these issues:

In display.php, if I change:

$source = $vars->get('source'); 
to
$source = Util::getFormData('source'); (used in most horde scripts)

$uid = $vars->get('uid');
to 
$uid = Util::getFormData('uid');

$key = $vars->get('key');
to
$key = Util::getFormData('key');

I can then see the contact when clicking on it, and don't get the "contact 
does not exist" error.

add.php displays properly if I change:

$source = $vars->get('source');
to 
$source = Util::getFormData('source', Turba::getDefaultAddressBook());

similar behavior in edit.php, changing:

$source = $vars->get('source');
$original_source = $vars->get('original_source');
$key = $vars->get('key');
$groupedit = $vars->get('actionID') == 'groupedit';
$objectkeys = $vars->get('objectkeys');
to 
$source = Util::getFormData('source');
$original_source = Util::getFormData('original_source');
$key = Util::getFormData('key');
$groupedit = Util::getFormData('actionID') == 'groupedit';
$objectkeys = Util::getFormData('objectkeys');

etc, etc, etc

makes edit.php display properly. Of course more work needs to be done to 
actually make the posts function properly, but I'm hoping there is a 
simple fix to all of these issues. 

I'm wondering if there is a problem with $vars not being set properly.
$vars = &Variables::getDefaultVariables(); exists in these three scripts 
(and vcard.php) but not in the rest of turba, and it doesn't exist in most 
of horde/imp scripts. 

If anyone can shed some light on this please let me know. 

Thanks,

 ~ Bob

On Tue, Sep 12, 2006 at 04:12:58PM -0400 or thereabouts, Robert Williams wrote:

> Hello All,
> 
> I'm having a problem with turba, latest version, w/horde 3.0.9 and imp 
> 4.0.4.
> 
> I can only add people to my addressbook from the imp message.php page 
> addressbook icon. Imp is using 'value' => 'localsql' for the 
> add_source in imp/config/prefs.php, so turba/config/sources.php should be 
> configured properly. 
> 
> Turba search and Browse pages show all of my contacts, but clicking on a 
> contact produces the error "The contact you requested does not exist". The 
> display.php is using these variables for this contact in the url:
> 
> source=localsql key=bc1f9a51651618386fc37cfb197f67a0
> 
> I have localsql set up in turba sources, using the default mysql 
> addressbook settings. I can locate the key from the url in the mysql 
> database, so I know the data is correct. Looking at the code it seems I 
> should get some sort of error if it could not locate the AddressBook. 
> 
> From the browse screen if I select a contact and click edit, I get 
> the edit.php page, but it's blank. If I select delete, I get the delete 
> confirmation and it does indeed delete my contacts without any issues. 
> 
> I also have a read-only ldap addressbook set up. I can copy contacts from 
> the ldap addressbook into my addressbook via turba search without any 
> problems.
> 
> The New_Contact page is also not working... selecting my_addressbook here 
> and clicking add just reloads the page. 
> 
> Can anyone point me in the right direction as to what might be causing 
> these problems? 
> 
> Thanks,
> 
>  ~ Bob
> 
> 


More information about the turba mailing list