I originally posted this as a comment on this thread: http://drupal.org/node/1010820 - but it really is a separate issue; please forgive the duplicate post.

I'm seeing a theme switching problem as well with the 2.x version - in my case, it's simply not working, whereas 1.14 does.

I had been doing upgrades from 1.14 to latest versions (including dev) and found that 2.x simply wasn't changing themes, no matter what I did.

Steps to reproduce:

1. Deactivate and de-install any version of Mobile Tools.

2. Install 2.x - set up mobile URL and desktop URL to be the same.

3. Select theme switching based on mobile device detection.

4. Note that theme switching doesn't work.

5. Deactivate and de-install 2.x vesrion.

6. Install 1.14. (Ignore the security warning - we're just testing here.)

7. Check settings - make sure that automatic redirection of mobile user isn't selected in Notification/Redirection; as I recall this may cause an infinite loop.

8. Repeat steps 2 and 3.

Note that theme switching happens as expected.

An additional note here: Upon installation of 1.14, I see settings I had entered in 1.14 some time back. So there may be something that's not quite right in the upgrade between module versions.

I've tried switching based on URL and by device detection; the theme doesn't change in any case with 2.x, while it does in 1.14. Also, the problem with CCK imagefields persists (where a link and not an image appears). It really is pretty stark - again, 1.14 works for me, but 2.x doesn't.

Perhaps there's a theme issue (I'm using ATCK); in any event, the ability to choose a distinct front page in 2.x is a pretty big deal - hoping somebody has some ideas here!

Thanks much for what I'm sure will be a terrific - and essential - module... looking forward to getting it all to work! Suggestions much appreciated...

Comments

cels’s picture

I have same behavior.

With 1.14 all works; when install 2.1 not work.

info:
Pressflow 6.14
Zen subtheme
no cache
theme switching, same url
both detection tested: Browscap and Mobile Tools

bcobin’s picture

Oops - line 8 should be "8. Repeat steps 1, 2 and 3, but install 1.14 instead of 2.x." Regardless, I think the drift is pretty clear: 1.14 works, but 2.x doesn't - something has changed...

bcobin’s picture

It's a conflict with Administration Theme. This is using the .dev version of Administration Theme (there hasn't been an official release in about a year.)

Disable AT and redirection works; enable it and redirection breaks.

Setting module weights doesn't fix it - AT defaults to a weight of 10 and MT to a weight of 0; changing MT to 20 has no effect.

There must have been something introduced between 1.14 and 2.1 that conflicts; hopefully this will help to track it down!

AT needs to be enabled in order to use CiviCRM Theme, which is pretty essential if you're using CiviCRM. So in addition to the CCK image field display issue described in http://drupal.org/node/993792, the current version of Mobile Tools is a no-go right now with CiviCRM. Hope this helps - thanks for the fine work here - looking forward to being able to get mobile with Mobile Tools!

siteformer’s picture

Title: Theme switching works in 1.14, but doesn't in 2.x. » Theme switching works in 1.14, but doesn't in 2.x. [Conflict identified with Administration Theme]

At our site theme switching by url with hyper reference to example.com/gomobile doesn't work after update from 1.14 to 2.x. The link causes a page-not-found error.

What I have figured out after the update (and in difference to 1.14):
- there is no database entry in the menu_router table with 'path' = 'gomobile'
- on a normal drupal menu my custom menu item with the gomobile link is lost - but still stands in the menu_link table

Maybe there is a correlation? I hope as well this can help to track the issue down.

shadysamir’s picture

/gomobile gives 404 to me as well

blaiz’s picture

Subscribe. Same issue here, work with 1.14, doesn't work with 2.2. I don't have Administration Theme installed.

patrickroma’s picture

Version: 6.x-2.1 » 6.x-2.2

same here without AT...

bcobin’s picture

See http://drupal.org/node/1092144 for possible solution

blaiz’s picture

Title: Theme switching works in 1.14, but doesn't in 2.x. [Conflict identified with Administration Theme] » Theme switching works in 1.14, but doesn't in 2.x. [Conflict identified with Administration Theme and Availability Calendars]

Ok I found an incompatibility with the Availability Calendars module here.
I installed the latest -dev version of Availability Calendars and it fixed the issue.

Related to #1054794: Block theme disappear after installing module

devin carlson’s picture

Status: Active » Closed (fixed)

As per #9, it looks like the problem outlined in the original issue was solved.