Knowledgetree Install issues

alexpott - December 5, 2007 - 10:21
Project:KnowledgeTree integration
Version:5.x-3.1
Component:Miscellaneous
Category:support request
Priority:normal
Assigned:alexpott
Status:active
Description

This is a copy of an email exhange between me and Harley_Dog

Hello Alex

Thanks for the work integrating KT with Drupal. This will likely be a very useful tool for my work. I have one issue with my attempted install.

I'm unclear about the install steps. I have an existing drupal (5.x) site, called hbb, I added a KT (3.4.5 OSS) under the hbb root hbb/kt.

I updated the KT config.ini with the info from kt_config.ini moved the drupal folder into KT plugins copied xmlrpc-22 into thirdparty
--since my kt directory in within my root site, I cannot access it directly as drupal restricts access to it. So, I cannot login to the KT install independant of drupal.

I preformed the sql insert of interceptor_instances I installed the drupal module and added the module.

On the drupal admin page I can configure the KT module and get the DMS link on the menu. However, when I click on it the link fails. I get messages "The requested URL /hbbkt/login.php was not found on this server."

You can see, the hbb and kt directories are mashed together. I've tried tweaking everything imangiable, including the KT config.ini serverName and rootUrl without success.

Can you offer me any troubleshooting ideas.

Thanks in advance
Harley

#1

alexpott - December 5, 2007 - 10:22

Hi Harley,

This is probably because the path in the Knowledge Tree settings in Drupal site configuration is not configured correctly... from what you've told me I guess it should be /hbb/kt/login.php

The only other place I can think of that might be causing this issue is the rootUrl set in config.ini in kt's config directory... again from what you've told me this probably should be /hbb/kt
I've never needed to change the serverName from default.

Lets me know if this helps.

Regards,

Alex

#2

alexpott - December 5, 2007 - 10:24

OK I will try those suggestions. Is it a problem that I have not logged into KT and enabled the drupal plugin? Since it is under the drupal tree, drupal restricts access. Should I move it into the web root and config?

thanks
Harley

#3

alexpott - December 5, 2007 - 10:25

Alex.

I must have tried 50 combinations but these two worked. I can successfully connect from Drupal without authenticating.

One question, I have set the KT module to copy drupal users and roles to KT, however my users are not present in KT and every user authenticates to KT as admin? I did not install the KT tables in the Drupal database because I was affraid of making a mistake. I could redo the install with the tables in hbb. Would that make a difference?

thanks for the help and making this work, this is great.

harley

#4

alexpott - December 5, 2007 - 10:25

Alex,

I now have everything working after tweaking a few minor errors on my part. Your work is great, thanks for the contribution. My users here really like the integration.

One minor question: How can I change the link from DMS to Document Management.

I looked in kt.module and tried to tweak the kt_menu array without success. When I edited the menu it automatically created a new DMS2 link, which causes other effects on hidden blocks.

Thanks again
Harley

#5

alexpott - December 5, 2007 - 10:27

Hi Harley,

Just to let you know I've copied all of this email exchange to the support area of the knowledge tree module so the knowledge is shared!!! If you have further questions it would be great if you ask them there!

To change the DMS name in a menu you don't need to edit the module - all you need to do is edit the DMS edit entry in site building -> menus and change the title... this will still go to /DMS though...

If you want to change that you will need to change the kt.module file. Say you want it to be /documents the kt_menu should be


function kt_menu($may_cache) {
  if ($may_cache) {
    $items[] = array(
      'path' => 'documents',
      'title' => t('Document Management'),
      'access' => user_access('login to kt'),
      'callback' => 'kt_page'
    );
    $items[] = array(
      'path' => 'admin/settings/kt',
      'title' => t('Knowledge tree'),
      'description' => t('Change the way kt is displayed in Drupal.'),
      'callback' => 'drupal_get_form',
      'callback arguments' => 'kt_admin_settings',
      'access' => user_access('administer kt')
    );
  }
  return $items;
}

However if you change the path you will have to change any of the suggested modifications to both drupal's template.php and KT's standard template...

Regards,

Alex

#6

alexpott - December 5, 2007 - 10:41

To answer some of your other questions.

Harley_dog: Is it a problem that I have not logged into KT and enabled the drupal plugin? Since it is under the drupal tree, drupal restricts access. Should I move it into the web root and config?

If everything is set up correctly and you have not enabled the drupal plugin in KT then you should still be able to log into KT as admin because the login screen will be display when you click on the DMS link.

Harley_dog: I have set the KT module to copy drupal users and roles to KT, however my users are not present in KT and every user authenticates to KT as admin? I did not install the KT tables in the Drupal database because I was affraid of making a mistake. I could redo the install with the tables in hbb. Would that make a difference?

A user is copied to KT the first time they visit the document management system. Future work on the module could be to provide functionality to copy users to KT as part of the cron job or as part of user registration. It currently doesn't matter whether KT and drupal share the same database.

 
 

Drupal is a registered trademark of Dries Buytaert.