Active
Project:
DrupalChat
Version:
6.x-2.0-beta10
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 May 2012 at 15:41 UTC
Updated:
18 May 2012 at 16:06 UTC
I just updated to the latest drupalchat beta (2.0-beta10) and by default it loads from the Yahoo CDN. I need to load from my server because I'm running over https. After enabling the local load I started getting a HTTP 500 until I disabled drupalchat. It appears that the drupalchat_library_path() is loading the wrong include:
function drupalchat_library_path($variable, $match, $filename) {
module_load_include('inc', 'dxmpp', 'includes/dxmpp.admin');
$path = _drupalchat_autodiscover_path($match, $filename);
variable_set($variable, $path);
return $path;
}
The call should be:
module_load_include('inc', 'drupalchat', 'drupalchat.admin');
After making this change it worked as expected. Am I missing something? Is dxmpp a requirement now?
Thanks!
Comments
Comment #1
darklrd commentedThanks a lot for bringing to this notice. Yes, it should be exactly as you have mentioned. I will make the necessary changes and update the code. Apart from this, is DrupalChat working properly on https? Thanks.
Comment #2
mrhanlon commentedYes, it's working great after I made this change and am loading from my local server.
Thanks!
Comment #3
darklrd commentedThanks a lot for providing this information. I will update the code soon.