Login and logout issues
| Project: | KnowledgeTree integration |
| Version: | 6.x-1.3 |
| Component: | User interface |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
When Drupal logs in to KT, the initial page doesn't load completely. The gray background only loads about half-way and the "Loading" bar remains visible and appears to be turning, although the browser indicates that the page is finished loading. In the dashboard, some of the dashlets are sometimes out of position. If I click through to any other page or back to the initial page, everything loads fine. In Internet Explorer, I also see the following error on the initial page:
Line: 699
Char: 5
Error: Invalid argument
Code: 0
URL : http://localhost/drupal/kt/dashboard.php
I don't know what to make of this, starting with the fact that dashboard.php only has 169 lines. I've tried everything to get it to load properly, but nothing works.
Also I get the following error message in /kt/var/log/kt2008-12-05..log.txt:
2008-12-05 | 19:40:18 | ERROR | 2440 | 2227 | 1 | dms | sql | logQueryError | INSERT INTO groups_lookup (name,is_unit_admin,is_sys_admin,unit_id,authentication_details_s1,authentication_details_s2,authentication_source_id) VALUES ('authenticated user',0,0,NULL,NULL,NULL,NULL)
2008-12-05 | 19:40:18 | ERROR | 2440 | 2229 | 1 | dms | default | logQueryError | Query error: DB Error: constraint violation
I normally log out using the Drupal logout, but if I try to log out using the logout link in KnowledgeTree, it just loops endlessly and I get the following error message in the /kt/var/log/kt2008-12-05..log.txt file:
2008-12-05 | 19:45:16 | ERROR | 2440 | 1150 | n/a | dms | sql | logQueryError | INSERT INTO user_history (datetime,user_id,action_namespace,comments,session_id) VALUES ('2008-12-05 19:45:16',NULL,'ktcore.user_history.logout',NULL,NULL)
2008-12-05 | 19:45:16 | ERROR | 2440 | 1151 | n/a | dms | default | logQueryError | Query error: DB Error: null value violates not-null constraint
Can anyone help me with these issues? Thank you.

#1
#2
Hi Pyachnes,
Did you test that you had Knowledgetree installed correctly before attemping the integration? It's best to get Knowledgetree installed and working correctly before attempting to integrate with Drupal. This way you by sure where the issue lies - I haven't seen the errors you have before but from a quick glance the issue would seem to be a knowledgetree one.
Cheers,
Alex
#3
Thanks Alex,
I did test KT before integration, but not as I thoroughly as I could have. I don't remember the problem loading the initial page; I think I would have noticed that. I will attempt to roll back the integration and see if the problems persist. If they do, I will uninstall and reinstall KT and test thoroughly before attempting integration. If it is a KT problem, I will attempt to find a solution through the KT forum. I will report back here in any case. Thanks again.
-Paul
#4
I'm facing the same problem and I did had a good working install of KT prior to Drupal integration :(
Any solutions ?
#5
I'm guessing you are using KnowledgeTree 3.5 - I've only ever run the integration with 3.4... maybe they've changed the way Interceptors work... which seems to be true looking at this wiki page http://wiki.knowledgetree.com/Using_Interceptors_to_Override_KnowledgeTree's_Login_Process
To fix this you'll need to rewrite the Drupalplugin.php functionality in the modules knowledgetree folder.
I'm a bit busy at the moment and haven't got any instance of 3.5 installed to it test with but I've attached what I think the changes should be. Note that it would appear you no longer need to insert a row into knowledge tree's interceptor_instances table as this is handled by the plugin install. In fact it might this row that is causing the problem :)
#6
With the update I just get the usual login form and have to log in again (was the last class mis-named? should it be "DrupalPlugin extends..." instead of "PortalPlugin..."?)
None of them work anyway.