Closed (won't fix)
Project:
Chatblock
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 Dec 2013 at 01:46 UTC
Updated:
15 Aug 2014 at 08:27 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
acidtalks commentedI'm getting a similar error when using the Overlay module:
Fatal error: Call to undefined function current_path() in .../modules/overlay/overlay.module on line 131Your recommended fix works for me but I'm not sure if the js module is the right place for a fix. If you use the default bootstrap phase DRUPAL_BOOTSTRAP_DATABASE there is no need to include path.inc. But Chatblock uses DRUPAL_BOOTSTRAP_LANGUAGE where path.inc is needed for some modules. So I think it would be better to fix this in Chatblock. This could be done by adding 'path' to the 'includes'-Parameter of the js callback.
Comment #2
doitDave commentedSo this seems to be a very particular error which, in addition, I rather see fixed in JS. Or try whether an older release of JS works - the module had some changes in the last time, I guess. Just a guess.
Comment #3
acidtalks commentedThe JS module gives you the option to change the bootstrap level. If you don't use this option everything is fine with JS. So I think it's up to the calling module to specify the needed includes, because the JS module has no option to find out which includes are really needed by the calling (chatblock) module if another bootstrap level is used.
The JS documentation says:
So I'm unsure if there is a possibility to fix this in the JS module.