Closed (fixed)
Project:
Mobile Tools
Version:
7.x-2.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
3 Jun 2011 at 08:50 UTC
Updated:
14 Oct 2011 at 21:28 UTC
Jump to comment: Most recent file
Comments
Comment #1
jbehshad commentedSame issue. I get a white screen after I enable the module.
Comment #2
twom commentedHi Guys,
Thx for the feeback. There was some part of the context integration that was not ported from D6 to D7!
I added the extra code, so it is ready to test.
Do not forget to disable/enable the module.
Comment #3
jbehshad commentedWell I got it working, played with the module for a few hours and had to disable it because we thought it was conflicting with another module(which it wasn't).
When I enabled mobile tools again it gave me a white screen. I disabled with drush, deleted the module and reinstalled the module but still the white screen.
Any suggestions?
Comment #4
jbehshad commentedFrom the error_log if it helps.
I guess its the same as the first post. Hmmm. I will delete the module again, download a fresh copy and see what happens from there.
Comment #5
mgiffordSame issue here.
Comment #6
twom commentedI added extra check if the mobile tools context plugin is correctly registered... So the WSOD should be gone...
I am still a bit puzzled why disabling / enabling causes the plugin to not be registered correctly (cache clear fixes it).
Comment #7
jbehshad commentedI cleared cache, ran cron, a little update.php, you know, the whole song and dance and nothing. Still when I enable the module(from fresh install) I get the WSOD.
I wish I could be of more assistance other than telling you whats wrong. I know little about PHP so thats about all I can do for you. Thank you for your work, it is appreciated.
Comment #8
carwin commentedsubscribe. same issue, at least I think.
Enabling the module gives me WS with 500 error. So I disable with drush, clear cache re-enable etc... still WS. After disabling with drush I check the logs and see the following:
The file this is referring to is "http://default/index.php"
Comment #9
dstacey commentedI think same same: I reproduced WSOD issue with a clean (standard) install of D7.2
drush en context (no problems)
drush en mobile_tools = WSOD on one server, another server gave me:
Fatal error: Call to a member function execute() on a non-object in /var/www/....com/sites/....com/modules/mobile_tools/mobile_tools.module on line 247
line 247 =
if(module_exists('context')){
$plugin = context_get_plugin('condition', 'mobile');
if(!$plugin){
$device = mobile_tools_get_device();
$plugin->execute($device['type']);
$plugin->execute($device['group']);
}
}
}
If I "drush dis context" mobile tools works... as long as I don't enable Context.
Issue; can't enable Context and Mobile_tools at the same time.
log:
file 2011-06-22 17:00 The file was not deleted, because it does not exist.
system 2011-06-22 17:00 mobile_tools module disabled.
system 2011-06-22 16:38 mobile_tools module enabled.
Comment #10
jbehshad commentedWell that seems to be the issue. I disabled context and it works. Yahoo!!!
We can live with the block system for now.
Comment #11
hpk commentedBut I need both mobile_tools and context module!
Comment #12
barami commentedchange the following code (line 245, the part of mobile_tools_init() - mobile_tools.module)
to
another module's code using context_get_plugin function are runing execute function when true.
But mobile_tools execute when return is false.
After fixed this code, i can see mobile theme by my phone.
Comment #13
steven jones commentedThere's no patch to port on this issue.
Comment #14
steven jones commentedHere's a patch that fixes the issue for me.
(And a patch for people who need to use drush make)
Comment #15
cpliakas commentedPatch in #14 worked for me.
Comment #16
dstacey commentedThanks barami & Steven. Patch worked for me as well, nice work!
Comment #17
cpliakas commentedComment #18
jessebeach commentedI just independently patched this in the same way before finding this issue. Let's get it in!
Comment #19
janes_p commentedI installed Mobile Tools on D 7.4 (Context active). After previous problems which ended in white screen, I just activated Mobile Tools Roles. Message:
Notice: Undefined variable: item in mobile_tools_roles_boot() (line 29 of /home/sites/abdagon.com/public_html/c22/sites/all/modules/mobile_tools/mobile_tools_roles.module).
Notice: Trying to get property of non-object in mobile_tools_roles_boot() (line 29 of /home/sites/abdagon.com/public_html/c22/sites/all/modules/mobile_tools/mobile_tools_roles.module).
Comment #20
steven jones commented@janes_p: that's actually a slightly different issue to the one being sorted out here, could you open a new issue with that error please?
Comment #21
dandaman commentedPatch #14 worked for me! Please commit this to 7.x-2.x-dev, thanks.
Comment #22
lelizondo commentedPatch in #14 also worked for me
Comment #23
carwin commented#14 seems good, is it committed?
Comment #24
lelizondo commentedno, is not committed yet.
Comment #25
minoroffense commentedCommitted