Closed (outdated)
Project:
Mobile by Mobify
Version:
6.x-1.8
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
25 Apr 2011 at 15:58 UTC
Updated:
10 Sep 2021 at 22:38 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
chrisgross commentedIs anyone still maintaining this module? It's been forever since it's been updated.
I get these:
Notice: Use of undefined constant MOBIFY_REDIRECT_DEFAULT - assumed 'MOBIFY_REDIRECT_DEFAULT' in include_once() (line 51...
Notice: Use of undefined constant MOBIFY_PARAM_NAME - assumed 'MOBIFY_PARAM_NAME' in include_once() (line 52...
Notice: Use of undefined constant MOBIFY_COOKIE_NAME - assumed 'MOBIFY_COOKIE_NAME' in include_once() (line 53...
Notice: Use of undefined constant MOBIFY_COOKIE_EXPIRE - assumed 'MOBIFY_COOKIE_EXPIRE' in include_once() (line 54...
Notice: Use of undefined constant LOGFILENAME - assumed 'LOGFILENAME' in include_once() (line 55...
Notice: Use of undefined constant DEBUG - assumed 'DEBUG' in include_once() (line 56...
Notice: Undefined offset: 0 in mobify_redirect() (line 198...
Notice: Undefined index: HTTP_X_OPERAMINI_PHONE in mobify_is_mobile_device() (line 61...
Notice: Undefined index: HTTP_X_MOBILE_GATEWAY in mobify_is_mobile_device() (line 62...
Notice: Undefined offset: 0 in mobify_get_cookie_domain() (line 231...
Notice: Undefined variable: output in mobify_help() (line 258...
Comment #2
b1tr0t commentedAs noted in some other discussions, we're discontinuing support for this particular module - but NOT for Drupal!! The recommended way of deploying Mobify on all new sites (including Drupal sites) is to use the javascript redirection method. The javascript snippet for redirection is provided in the 'Deploy' panel for your site in mobify.me. The snippet is unique to each site.
Why discontinue the Drupal module?
1) It doesn't do much. It detects phones based on UA and sends a 302 redirect. The same can be accomplished in javascript making it one less "moving part" to maintain.
2) Given the limited functionality, it's not worth the effort to maintain across all versions of Drupal.
3) Phone user agents are being updated all the time. That means that someone with an older version of the Drupal module has a good chance of not redirecting newer phones. Even worse, we're finding that as the user agent space gets more and more fragmented, there are cases where devices that should get the desktop experience will be sent to the mobile site using the old rules. With the javascript we're able to use our entire device library to do detection (6000+ devices and growing constantly). We can maintain this library actively and there's no need for our users to update anything.
4) Doing server-side redirection can cause potentially serious problems for edge caching services such as Akamai and for some overzealous node caching modules.
Hope that clears things up. Please feel free to contact us directly using our community forum if you have any problems deploying the redirect javascript. You can find the forums at http://community.mobify.me/
Cheers,
Peter
Comment #3
aloyr commentedas it turns out, when you declare constants in PHP you need to enclose the constant names within quotes. the fix was rather simple and I included the patch file, if you choose to keep using the mobify module instead of going the route the author suggested.
Comment #4
brisho commentedComment #5
avpadernoI am closing this issue, as it has been created for a release that is now not supported.