when devel module is enabled it outputs some data at the end of the page to display different statistics.
it happens that both webfm and devel data passes through this drupal JS function:
Drupal.parseJson = function (data) {
if ((data.substring(0, 1) != '{') && (data.substring(0, 1) != '[')) {
return { status: 0, data: data.length ? data : 'Unspecified error' };
}
return eval('(' + data + ');');
};
and every time i have Devel module enabled, both WebFM's and Devel's JS information is being passed and evaluated here. this caused WebFM to break (i think..). but when i disabled Devel, WebFM began working again.
i dont know but i'll speculate that if other modules output some JQuery code it might also conflict with WebFM.
let me know if any aditional information is necessary.
p.s. look at the screen shot. i achieved it by inserting " alert(data);" inside "misc\drupal.js" on line 131 and moving everything else 1 line down.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | webfm.module_0.patch | 10.59 KB | robmilne |
| error_0.JPG | 159.33 KB | litwol |
Comments
Comment #1
bcn commentedThis might be connected with to http://drupal.org/node/115139...
Comment #2
robmilne commentedThanks for the link. See my comments at that end of that node. Attached is the patch that adds hook_link as well as the new drupal_json call. You must patch common.inc and make the change to drupal.js for this patch to work! I don't recommend using this patch unless you need to use devel because Drupal hasn't made the drupal_json function official.
Comment #3
robmilne commentedComment #4
robmilne commentedI've downloaded and tested the latest devel module (Apr18) which apparently uses php instead of javascript to output the footer tables. Webfm is working fine except the upload is broken again.
Comment #5
robmilne commentedComment #6
(not verified) commented