Posted by kezflake 2 years 38 weeks ago
Hi,
I have been having some trouble running a smooth desktop to mobile transition when using the combination option in the mobile switcher mode.
The plugin works very well on the mobile when I tested as long as I am using the browser detection option. My problems start when I switch to the combi option as once I save these settings and test my site I am directed to a 404 page both on the front end of my site and the admin panel options that relate to all plugin options.
To resolve this I have been going back and forth to reset the wpmp_switcher_mode to "browser" as suggested in this previous wordpress post http://www.opturl.com/b891d. I have then been tweaking the settings but I still end up taken to a 404 page and I have not yet been able to find a way to switch from mobile to desktop. In addition to this I find that the url extends eg from sitename.net/blog/?wpmp_switcher=true to http://www.koportfolio.net/blog/blog/?wpmp_switcher=true placing my blog flder in there twice.
This is a brand new bare blog so no other content or plugin issues should be getting in the way.
I have tried a few settings but currently I am using the following:
Switchermode: Both browser detection and domain mapping
Mobile theme: Word press mobile (base)
Browser detection: user-agent prefixs
Desktop domains: www.koportfolio.net/blog, koportfolio.net
Mobile domains: www.koportfolio.net/blog
Footer links: Active
Any help with this would be great.
Thanks




Posted by atrasatti 2 years ago
Mobile Genius
Hello,
this is an interesting issue and clearly you are not the only one using a /blog URL. I will test and let you know as soon as possible, of course the duplicated sub-path should not be happening.
I do see an error in your configuration, anyway, if you use the domain mapping you should really have 2 separate URLs, i.e. something like www.koportfolio.net/blog for desktop and www.koportfolio.mobi/blog for mobile.
Using the same main URL (forget the second desktop domain you have for a moment) is surely one of the reasons why you are getting the error. If you have access to your DNS configuration you might want to add for example m.koportfolio.net as a CNAME, configure your web server with a vhost to accept connections on m. (you could use a ServerAlias in your Apache config) and then change your configuration using www. for desktop and m. for mobile.
If this procedure is possible for you (I know it's not a 1-click thing) I would be grateful.
I am sure it will never work with your current configuration as you are using the same domain for both.
Posted by kezflake 2 years ago
Hello,
Thanks for the quick reply, I did originally have it set to m.koportfolio.net on the switcher admin page, this didn't quite work as expected and I now know thats due too the web server configs. The mobile switching algorithm article has gone a long way to explaining why that would not work too.
Those configurations are no problem I will get them changed tonight as I don't have access at the moment but will post if this works out for me either way.
Thanks v much
Posted by James Pearce 2 years ago
Hi there
Any update on this? Did it work?
I hope so ;-)
Anyway, we've raised a ticket against it so you can add any further diagnosis to help us get a fix into the code:
http://www.assembla.com/spaces/wordpress-mobile-pack/tickets/16
JP
Posted by DM 2 years ago
I also changed my mobile url to match my main url and am now stuck. Even if I uninstall Mobile Pack and then reinstall, I immediately receive the mobile admin screen on my PC, which means I can't change the URL back because I don't have the option to manage plug-ins. Is there another file I have to delete to make the plugin revert to it's defaults?
Thanks in advance for the help!
Posted by James Pearce 2 years ago
OK, I see the problem...
You have one easy option to get you out of this small hole ;-)
Go to the mobile admin page, and then to the 'settings' menu. Go to (about) the 7th page, where you should find something like:
Mobile switcher mode: ...
Mobile switcher detection: ...
Mobile switcher desktop domains: ...
Mobile switcher mobile domains: ...
These are the fields that you would have seen in the desktop admin for the mobile plugin. Change the domains to be as you require, or the mode to 'none', and then save.
You might get an error at that point, since you've reset the switcher whilst you were in the mobile mode, but go back to the front page of the site or the admin and it should be back to the desktop version.
If you just want to use detection (and not the domain), simply use the appropriate option and levae the domain names alone.
If you can't get to any UI at all, but can see the database, the same options are in the wp_options table:
wpmp_switcher_mode
wpmp_switcher_detection
wpmp_switcher_desktop_domains
wpmp_switcher_mobile_domains
...if you feel like some SQL heart surgery ;-)
Did that help?
Posted by DM 2 years ago
Wow. I seem to have screwed it up even further and now I can't even get the mobile admin page. So I guess my only option is go into the wp_options table? If only [i]I knew php. :-)
Posted by thefandango 2 years ago
I upgraded my version today and tried again and it still messes up and eventually locks me out of everything requiring upload of backup database. This plugin simply has huge issues.
Posted by James Pearce 2 years ago
Folks... there are two issues here.
Firstly, in the domain fields (on the switcher page), you should *not* enter the URL with the path after it. You should only enter a domain.
i.e, Kezflake, you should set your entries to:
Desktop domains: www.koportfolio.net
Mobile domains: www.koportfolio.net
The /blog part should be set elsewhere in the admin panel (e.g. in the general settings) - but it's likely you've already got that.
*However*, and secondly, v1.0 of the plugin does not behave well if you set both domains to be the same thing. If you simply want the plugin to distinguish between mobile & desktop by browser detection, change the mode to 'browser detection'.
(If you *do* have two different domains to use, then put them in the appropriate boxes.)
Nevertheless, v1.1 of the plugin which is about ready to launch will mitigate all of these issues:
1) it will tolerate the two types of domain being the same, and will automatically switch to 'browser detection' mode if you accidentally have them the same.
2) it provides a 'switch to mobile' / 'switch to desktop' link at the bottom of every page even when you are using 'browser detection'. (It previously only did this when you were using a domain-based detection algorithm). So you should never get stuck in the wrong world without an option to change to the other.
3) the admin panel contains an interface to change the switcher mode, so you can always bail out when you've got things wrong.
We should be pushing this out in a few days once the final tests on all the WP versions are complete.
Thanks for your patience, and I hope that helps.
Posted by James Pearce 2 years ago
@DM
Can you describe the issue a little more? You say you can't get into the mobile admin pages? But does everything else work? Are you able to see the settings in the desktop admin?
You won't need any PHP... don't worry, we'll get you sorted - even if it's by upgrading to this week's new plugin version :-)
@TheFandango
I don't know what 'upgrade' you did - was this from WP2.7 to WP2.8?
(We haven't released the v1.1 of the plugin yet, although it is imminent this week and I believe will smooth a lot of these domain-related issues).
There is something else going on if you need to restore a backup of your database! It should simple be a matter of setting the 'switcher mode' to none, or disabling the plugin, to restore normality.
I know you sound frustrated! But I really need to know what settings you were using when it 'eventually locked you out'. The fact that you describe the situation as degrading over time is very mysterious.
Again, we will get you up and running, no problem - even if you have to wait a few days for the new plugin version.
Thanks all.
Posted by DM 2 years ago
James, I really appreciate all your help on this. You're really going above and beyond.
What I did, which was really intelligent, was change one of these two things...Mobile switcher desktop domains: or Mobile switcher mobile domains (can't remember which) to m.decaturmetro.com.
Needless to say, no such domain exists, so when I install your plugin, I immediately lose my admin page entirely. The only way to retrieve it is to delete the plugin manually on my server.
Posted by James Pearce 2 years ago
Hi there...
I think the simple matter here is that your DNS records are not set up for the m-dot subdomain.
> ping decaturmetro.com
PING decaturmetro.com (66.147.242.171): 56 data bytes
64 bytes from 66.147.242.171: icmp_seq=0 ttl=49 time=311.877 ms
> ping m.decaturmetro.com
ping: cannot resolve m.decaturmetro.com: Unknown host
I guess we should make it clearer in the UI that just because the plugin is configured to switch to m.site.com does not make that domain magically exist :-)
It will depend on who you host with (or perhaps even who you registered your domain with), but I would suggest that you add m.decaturmetro.com (or decaturmetro.mobi of course!) to resolve to the same server.
(You may also need to make sure the web server accepts incoming requests for that domain too - how to do this is also very dependent on your hosting setup).
A final option is to wait for v1.1 of the plugin... it provides a much more satisfactory mobile/desktop switching experience even on a single domain.
Thanks & good luck.
Posted by DM 2 years ago
James, I finally got a chance to play with this again.
I believe (please check) I resolved to m.decaturmetro.com to the same server. But now, when the plug-in is installed, and I try to go to my wordpress admin page, it just goes to my homepage.
If you can tell me specifically where the wp_options table is located (can't currently find it), then I can attempt to make the change in SQL.
Not sure what the next step is here...
Thanks again for your help.
Posted by James Pearce 2 years ago
Hello again :-)
I guess I should ask how you are getting the m. domain to resolve or redirect.
When I request it, I get a 'hard' 301 redirect:
returns
And then when I request a specific page (like 'about'), it doesn't do anything:
returns
It looks like you might have set up a virtual host to do a redirect from the top of the site, but not the pages within. In fact, you want the m.decaturmetro.com domain name to resolve (and be served up) by the *same* server/host as the www.decaturmetro.com site.
Can I ask what you did, and perhaps who your hoster/registrar is? We're very close!
James