Closed (fixed)
Project:
Mobile Theme
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 Jul 2010 at 22:33 UTC
Updated:
28 Feb 2012 at 14:15 UTC
Jump to comment: Most recent file
Comments
Comment #1
jjwhitney commentedThank you. This helped.
Comment #2
simon georges commentedI'm providing a patch implementing the help from @Eikaa (and adding a "Implementation of hook_init()." comment, while I was at it).
It works for me. All credits and thanks to @Eikaa for the help !
Comment #3
rsevero commentedThe problem seems to be that values returned as boolean from Browscap with PHP < 5.3 are currently returned as strings with PHP >= 5.3.
The patch available at #664424-22: Values returned as bool with PHP < 5.3 should also be bool with PHP >= 5.3 fixes this. If this patch is applied to Browscap, Mobile Theme should not have any change at all rendering the patch available at the previous comment unnecessary.
Comment #4
rsevero commentedTo confirm that the above solution actually works you have to:
To force Browscap to re-fetch it's configuration info you can:
Comment #5
peterconnolly commentedPlease note that this patch hasn't been rolled into the latest release, 6.x-1.x-dev, 2011-Feb-25.
Eikaa's solution above still works, but has to be put in manually on line 9 of mobile_theme.module (the patch didn't work for me)
Comment #6
Torenn commentedMaybe it's just "ill-fortune" but I seem to be unsuccessful with all the methods above.
I attempted every described fix but either it works very inconsistenly, breaking if I try to log with an user with admin privileges on a mobile device, or doesn't work at all.
It's also very hard to troubleshoot what's going wrong without any *error*. I hope both browscap and mobile_theme will have a bit "shiner" support of PHP 5.3 on D6. In the mean time I'm forced to disable them.
Comment #7
devin carlson commentedThe issue with Browscap has been fixed.