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
Comment #1
martosio commentedow, 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 ...
Comment #2
samuk commentedI 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
Comment #3
Jaxem commentedI'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?
Comment #4
minoroffense commentedSince there is a check for the context module in the code around context_get_plugin
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.
Comment #5
devin carlson commentedI'm not able to reproduce the original issue. For issues with context, please try reinstalling the context module or setting the module's weight to a lower weight than Mobile Tools as minorOffense suggests in #4.
Comment #6
TheAdAnswer commentedI am getting this php error when I enable mobile tools and the site crashes:
PHP Fatal error: Call to undefined function browscap_get_browser() in /var/www/sites/all/modules/mobile_tools/contrib/mt_browscap/mt_browscap.module on line 9
Comment #7
TheAdAnswer commentedProblem is fixed by using code in this file http://drupal.org/files/mt_browscap.txt. Replace all the code in the file modules/mt_browscap.module.