When I activate mobile tools, and set a mobile homepage, I can't set the Default front page anymore, which is a panel in my case.
When I set the variable in the form, it gets accepted, but the path isn't shown in the entry field afterwards. Unsetting the mobile front page, leaves an invalid front page (not found). Only deactivating the module leads back to normal behavior.

Comments

twom’s picture

Status: Active » Fixed

This is fixed in the dev version of the Mobile Tools module. A new release is upcoming!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

str1’s picture

I have the same issue still with the newest dev, am I missing something?

WorldFallz’s picture

Status: Closed (fixed) » Active

Yep-- I have the same thing and just refreshed to the current dev.

I'm using 2 different page nodes for the front page. admin/settings/site-information shows the mobile node in both front page text boxes even after I update the core default front page setting. Strange thing is, the variables table has it correct:

site_frontpage          s:7:"node/57";     14
site_frontpage_mobile   s:9:"node/1368";   16

No clue where to even begin to troubleshoot this.

WorldFallz’s picture

Title: "Default front page" not working anymore » mobile front page be specified in both textfields at admin/settings/site-information (variables table is correct)

Let make the title a bit more descriptive

WorldFallz’s picture

Title: mobile front page be specified in both textfields at admin/settings/site-information (variables table is correct) » mobile front page specified in both textfields at admin/settings/site-information (variables table is correct)
Version: 6.x-2.1 » 6.x-2.x-dev

and update the version

WorldFallz’s picture

Still trying to fix this. One thing i've noticed-- the mobile home page has settings in two locations:

admin/settings/mobile-tools (in the 'additional settings' fieldset)

and

admin/settings/site-information

So, questions to the maintainer(s):

1. why does the one setting appear in two places?

2. which take precedence?

WorldFallz’s picture

also, if i leave the mobile front page blank at admin/settings/site-information and just specify my non-mobile front page -- i get 'page not found' on the home page.

twom’s picture

Assigned: Unassigned » twom
Status: Active » Needs review

Hi guys,

Sorry for the delay. I removed the front page setting from the site-information page... This was confusing and had a bug.

The current dev version should be fine now!

twom’s picture

Status: Needs review » Fixed
DanielWashbrook’s picture

I just tried the dev version from May 24. The setting has been removed but the bug is still present. Setting the frontpage for mobile will override the setting for desktop users even though the variables are different. And the setting can only be changed from 'Mobile Tools', the 'Site Information' setting has no effect.

I'm getting the best results from changing the if statement in mobile_tools_boot() from:
if (mobile_tools_site_type() == 'mobile') {
to:
if ($mobile_tools_device['type'] == 'mobile') {

Is this a bad idea?

Thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

blogers’s picture

Issue summary: View changes

Some solution for this big bug fix