Blank login with multisite and subdmains
| Project: | KnowledgeTree integration |
| Version: | 5.x-3.2 |
| Component: | Documentation |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
I have a knowledge tree and drupal site site running perfectly at two subdomains, i.e.: kt.mysite.com and drupal.mysite.com. I have all the config set up and working for the kt module except one thing. the two sessions match, the kt site shows up in the dms link. But when I have the drupalXmlrpc set up, it "works" fine and I see it executes on the drupal site, but it returns a blank page on the knowledge tree login page. This is the same whether it I go directly to the knowledge tree site or the DMS link. Is there a custom config missing in the documentation for subdomains or is this a bug? If I comment out the drupalXMLrpc value, the log in screen reappears with a no xml-rpc server error.
Thanks,
Doug

#1
#2
This happening because you need to have both sub-domains using the same session name. That's why it's recommended that knowledgee tree is installed in a folder off the drupal install.
However there probably is a way to make this work by setting the session domain to .mysite.com for both sites. Just look for cookie_domain in the Drupal setting.php and set it to what you need. How to do this for knowledge tree I'm not sure but you could just try to set the php value in your .htaccess file.
Cheers,
Alex
#3
Thanks Alex,
I did get a session names match and totally forgot they should also be in the same domain. I set the cookie domain for the drupal site to .mysite.com and even though knowledge tree is at kt.mysite.com, it now works. I also have multi-site install off one drupal install with site1.mysite.com through site5.mysite.com and they work too as long as explicitly set their cookie domains in their settings.php file.
Now there is the one issue with the kt frame being super small no matter what size i place in the kt module settings. I noticed that was a problem someone else had. Is there a fix or do I just need to go in and manually set the template?
Thanks,
Doug
#4
#5
Automatically closed -- issue fixed for 2 weeks with no activity.