Jump to:
| Project: | Mobile Tools |
| Version: | 6.x-2.3 |
| Component: | Code |
| Category: | support request |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | postponed (maintainer needs more info) |
| Issue tags: | 500 internal server error, crash, mobile tools, themekey |
Issue Summary
Hi
I'm trying to support mobile devices on a kind of new website. I'm having trouble enabling mobile tools modules (several versions tried). Each time I try enabling it in the modules page (admin/build/modules) I get an internal server error. I have absolutely no idea of what is causing the problem and even a system of trying to find the cause would be appreciated. (fairly new to drupal)
A bit more information:
currently I have drupal 6.22 installed with a couple of modules.
listing: Acces control, CKEditor, IMCE, IMCE Mkdir, node privacy by role, CKK, chaos tools, gallery, mime mail, smileys, themekey, views, webform
I'm also having a .htaccess redirect to a subfolder of the root. (public_html to public_html/drupal)
Truely: Any advice would be appreciated!
Comments
#1
ow, forgot to mention that I had mobile tools installed a while ago and played a little with it. Since my site wasn't at the point I wanted it I disabled and uninstalled it. Don't know whether or not somethings left in the db ...
#2
I am also getting this problem
This is my /var/log/apache2 log
[Thu Sep 29 12:02:20 2011] [error] [client 127.0.0.1] PHP Fatal error: Call to undefined function context_get_plugin() in /var/www/onespace.old/sites/all/modules/sam/mobile_tools/mobile_tools.module on line 218, referer: http://127.0.0.1/onespace.old/?q=admin/build/modules
#3
I'm also having this problem, also after having tried mobile tools a little while ago and not being ready for it either. On enabling the module the site goes down and i have to restore the database from a backup to get it back, any ideas?
#4
Since there is a check for the context module in the code around context_get_plugin
<?php/**
* We set the context
*/
if (module_exists('context')) {
$plugin = context_get_plugin('condition', 'mobile');
if (is_object($plugin)) {
$device = mobile_tools_get_device();
$plugin->execute($device['type']);
$plugin->execute($device['group']);
}
}
?>
It probably means that the Context module hasn't been loaded yet since the weight is lower than Mobile Tools or something like that. I can add a "function_exists" to that if statement if you're still encountering this issue.