am getting this error after upgrading to latest dev (24 April 2011):
Fatal error: Call to undefined function mobile_tools_is_mobile_site() in /var/www/drupal7/sites/all/modules/mobile_tools/mobile_tools.module on line 818
i fixed it by modifying line 817, changing mobile_tools_is_mobile_site() to mobile_tools_is_mobile_device():
function mobile_tools_node_load($node, $types) {
if (mobile_tools_is_mobile_device() && variable_get('mobile_tools_enable_build_mode', 0)) {
$node->build_mode = 'mobile_tools';
}
}| Comment | File | Size | Author |
|---|---|---|---|
| #7 | undefined_function-1137384.patch | 625 bytes | hansyg |
Comments
Comment #1
toxiclung commentedComment #2
ajtoelle commentedHad same issue, this fix worked for me.
Comment #3
jlaurin commentedWhen i do this solution, i have two whites bars at the top and the bottom...
Anyone else have this?
Comment #4
Anonymous (not verified) commented@jlaurin: I get the same white bars. Don't understand what's the reason...
Comment #5
paul_gregory commented@jlaurin & @redo - I also got bars output to the page that turned out to be a pair of
<pre></pre>tags left in the code whilst someone was debugging. Commenting out lines 734 and 736 of mobile_tools.module fixed the issue for me.Comment #6
hansyg commentedThe fix in the issues description worked for me.
I was going to make a patch but this looks good to go yes?
Comment #7
hansyg commentedI made the patch anyway. Attached. If you give me a commit bit I would be happy to implement.
~ Hans
Comment #8
toxiclung commentedcool :D
Comment #9
akoepke commentedUpdated to the latest dev version and there is some debug code which was left partially active.
The code below was taken directly from the dev version I just downloaded.
I noticed this because the content appearing before the doctype declaration causes IE 9 to go into Quirks mode. The result of this is that my site suddenly looked totally screwed in IE.
Comment #10
chrylarson commentedthank you, toxiclung changing from site to device worked for me as well.
Comment #11
minoroffense commented