Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ??

    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.

    Thread Starter ???? (Yuki|雪亮) ????

    (@laibcoms)

    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.

    Thread Starter ???? (Yuki|雪亮) ????

    (@laibcoms)

    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

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ??

    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!

    Thread Starter ???? (Yuki|雪亮) ????

    (@laibcoms)

    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.

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ??

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

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

    Thread Starter ???? (Yuki|雪亮) ????

    (@laibcoms)

    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

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ??

    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:
    https://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:
    https://plugins.trac.www.ads-software.com/browser/jetpack/trunk/class.jetpack-user-agent.php
    https://plugins.trac.www.ads-software.com/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?

    Thread Starter ???? (Yuki|雪亮) ????

    (@laibcoms)

    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

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Mobile Theme stopped working’ is closed to new replies.