WordPress.org

Ready to get started?Download WordPress

Forums

Jetpack by WordPress.com
[resolved] Mobile Theme stopped working (10 posts)

  1. JC John Sese Cuneta
    Member
    Posted 11 months ago #

    Hi,

    I just noticed today that the Mobile Theme option stopped working.

    What I have tried:

    • Disable all plugins (except Jetpack) - mobile theme still did not load
    • Reinstalled Jetpack - mobile theme still did not load
    • Checked: /xmlrpc.php - all good
    • Used the debug tool here: http://jetpack.me/support/debug/
    • Used the plugin debug tool - all good as well
    • default theme 2012 - mobile teme did not load either

    WP version: 3.6

    It was working fine a month ago when I last checked via mobile. I haven't checked since then until the upgrade to WP3.6.

    Sites affected:

    Thank you for the assistance.

    Best,
    JC

    http://wordpress.org/plugins/jetpack/

  2. Jeremy Herve
    Happiness Engineer
    Plugin Author

    Posted 11 months ago #

    You seem to be using CloudFlare on most of these sites. Could you try to clear your CloudFlare cache, or deactivate CloudFlare on your site?

    Caching plugins usually offer an option to exclude caching when one of your readers visits your site from a mobile device. You might want to look for such option in your CloudFlare settings.

    Let me know if it helps.

  3. JC John Sese Cuneta
    Member
    Posted 11 months ago #

    Hi, thank you for the reply. Browser cache cleared and restarted too. I cleared the cache but it did not work.

    I have everything CF currently disabled, it is now acting just a DNS resolver. It is still not showing the mobile theme on my end though. I'll leave disabled for now since it's midnight here and maybe it will take some time for propagation.

    'Will check back in the morning.

  4. JC John Sese Cuneta
    Member
    Posted 11 months ago #

    Hi again and thanks for the help. Unfortunately it didn't work.

    While CF was off (and only acting as a DNS), I tested again from the start. Disabling all plugins, xml rpc, etc. All showed normal and working. But everytime I access the said URLs via mobile as well as online mobile test sites, it loads the actual website instead of the Jetpack mobile theme.

    Currently, I'm out of ideas. It was working before even with CF turned-on.

    Best,
    JC

  5. Jeremy Herve
    Happiness Engineer
    Plugin Author

    Posted 11 months ago #

    The Mobile Theme module seems to be disabled on some of those sites. Could you go to the Jetpack menu in your dashboard, and make sure the Mobile is enabled?

    I was also able to view the Mobile Theme when loading your main site on my mobile, but upon refresh the desktop theme started appearing. CloudFlare is still enabled, and seems to be serving resources from your desktop theme instead of from the Mobile theme.

    Could you try to completely deactivate the CloudFlare service, or contact the CloudFlare team about this?

    Thanks!

  6. JC John Sese Cuneta
    Member
    Posted 11 months ago #

    Hi again, sorry I forgot to update my post/mention it, after my tests this morning, I returned the setup to its original. I currently can not afford without the extra protection I get from CloudFlare, not during the morning hours of my timezone (UTC+8).

    Anyway, I have CF disabled again, back to acting just a DNS. I also reinstalled Jetpack, reconnected, and reactivated the Mobile Theme module on all aforementioned sites.

    This is the current status for the domain jcsesecuneta.com

    Deactivated: Web traffic to this website will no longer pass through the CloudFlare system. We will continue to resolve your DNS. However, you will not receive the benefits of CloudFlare. You may reactivate CloudFlare for this website at any time.

    Thanks again.

  7. Jeremy Herve
    Happiness Engineer
    Plugin Author

    Posted 11 months ago #

    The Mobile Theme seems to be displayed properly now:
    http://i.wpne.ws/Qglc

    Could you get in touch with CloudFlare, and ask them if they have any options for mobile users?

  8. JC John Sese Cuneta
    Member
    Posted 11 months ago #

    Good morning. Thank you again for the help. It's weird tho, it is not showing on my end regardless of which browser and phone combination I use. Even more so, it used to work even with CF enabled.

    How does it work? I mean, does it redirect to a certain URL or container? Or does it read a header from the browser other than the user-agent data?

    CF only have mobile redirection (subscription) to say m.domain.tld. A filter can be created but it is URL pattern based.

    I'm not sure how the module works, but from what is available from CF, the redirection and URL pattern methods won't work, right?

    Thank you very much for the help.

    (PS 'will re-enable CF and see what else will happen)

    Best,
    JC

  9. Jeremy Herve
    Happiness Engineer
    Plugin Author

    Posted 11 months ago #

    It's weird tho, it is not showing on my end regardless of which browser and phone combination I use. Even more so, it used to work even with CF enabled.

    The Mobile theme still appears to be working on my end:
    http://i.wpne.ws/QiTI

    How does it work? I mean, does it redirect to a certain URL or container? Or does it read a header from the browser other than the user-agent data?

    Jetpack looks for your user agent and automatically switches to the Mobile Theme. You can then go back to the desktop theme thanks to the switch at the bottom of the page. This switch will add a cookie to your browser, akm_mobile, to force the desktop view in that browser. You can update that cookie by using the switch again, at the bottom of the page.

    You can find out more about the Mobile detection here:
    http://plugins.trac.wordpress.org/browser/jetpack/trunk/class.jetpack-user-agent.php
    http://plugins.trac.wordpress.org/browser/jetpack/trunk/modules/minileven/minileven.php#L30

    CF only have mobile redirection (subscription) to say m.domain.tld. A filter can be created but it is URL pattern based.

    I'm not sure how the module works, but from what is available from CF, the redirection and URL pattern methods won't work, right?

    There are no redirections to a mobile subdomain or to a specific mobile URL, so you won't be able to configure CloudFlare thoough these settings.

    You're the first to report such problem with CloudFlare, however other Jetpack users have experienced similar issues when using other caching plugins, like W3 Total Cache or WP Super Cache. Luckily, these plugins offer options to handle mobile users and mobile themes like Jetpack or WPTouch.

    I did notice, however, that you're using a very specific set up; when visiting your main site, a lot of the resources are served from another directory, jcsesecuneta.com/wb.

    Do you use a CDN plugin, or manually host static resources in a different directory? If so, could you try to disable that plugin and let me know if it helps?

  10. JC John Sese Cuneta
    Member
    Posted 11 months ago #

    Good evening. Great to see it is working. I've been checking it on my end as well and the mobile mode is being detected now, with or without CloudFlare.

    Thank you for the links, I'm going to read it and see what could be done if in case it stops working again. And maybe forward it to CF and see what they have on their end.

    On the /wb/ and /tome/, my installation used the /tome/index.php format (I can't remember what the WP Codex calls it). With all WP related files under /wb/ folder. Then I turned on multisite.

    It was after migrating (manually, select posts only) that I saw the entry in the codex that combining the index.php-only format and multisite is not advisable.

    I hope it wasn't the cause. But if it is, I hope it can still be merged.

    Thank you very much again.

    Best Regards

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.