Hi,
I used mobile tools for several months with no problem. Now I had to change my drupal configuration to use memcache integration. So I had to add these lines in settings.php:
$conf = array(
'cache_inc' => '/proc/unbit/www/orizzontescuola.it/sites/all/modules/memcache/memcache.inc',
'session_inc' => '/proc/unbit/www/orizzontescuola.it/sites/all/modules/memcache/memcache-session.inc',
'memcache_servers' => array('192.168.0.17:15031' => 'default'),
);
I think this new config overwrite the old one related to mobile tools:
$conf['page_cache_fastpath'] = FALSE;
$conf['cache_inc'] = './sites/all/modules/mobile_tools/mobile_tools_cache.inc';
So, now if I visit my website from mobile, redirect url works fine, but it continue to display "default" theme, instead of mobile version...
How can I fix it?
Thanks
Comments
Comment #1
WorldFallz commentedgood question-- I just went to re-enable mobile_tools after a recently (unrelated) bug fix was committed, when I noticed there might be clashing cache.inc's in settings.php.
Question to the maintainers-- which should be used? Will using mobile_tools cache.inc disable a site's memcache?
Comment #2
ardnet commentedMe too, I was having this problem as well.
Besides mobile_tools, my problem was also with Browscap module.
I used this function browscap_get_browser() in one of my custom module. For some reason is always tells 'BlackBerry' from my iPhone.
Then turns out it was bcoz I was accessing the site before using BlackBerry.
Then I cleared the cache under Performance page, I'm accessing the site using iPhone now, then in my BlackBerry tells 'iPhone'.
And also in the Performance page i see this text:
"The following enabled modules are potentially incompatible with aggressive- and external-mode caching and will not function properly: browscap, mobile_tools."
Any idea how to deal with memcache?
Thanks
Ardi
Comment #3
Docc commentedsub
Comment #4
mherchelsame issue. It seems that Memcache will serve the full page of whatever page is cached.
Comment #5
mherchelI'm at the performance & scalabilty training session at Drupalcon Denver, and ran this by some of the experts who suggested this may be a bug within Mobile Tools where it isn't interacting correctly with the Drupal page cache.
Unfortunately, I'm not well versed enough in PHP to troubleshoot this myself, but I am changing the category to a bug report. I don't think there's any support that can fix this.
Comment #6
Kendall Totten commentedI've been digging around myself to see how bad of a problem this is, and I stumbled across this:
http://drupal.org/node/996838
Have you seen this workaround or tried it?
Comment #7
devin carlson commentedPlease upgrade to the latest version of Mobile Tools and see if your problems persist.
Comment #8
fmb commentedThe only way if you want to keep the same URL for every device would be to write a new cache.inc file, with the cache_rewrite_cid() magic just like in mobile_tools_cache.inc. See the attached PHP file (just change the extension to .inc), which I placed in the memcache module directory (not that elegant, but it's the best I could do...). You can manually set mobile_tools_extra_include in settings.php