Closed (fixed)
Project:
Mobile Theme
Version:
7.x-1.2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 May 2011 at 16:46 UTC
Updated:
3 Aug 2013 at 23:21 UTC
Jump to comment: Most recent file
Comments
Comment #1
natukI am setting up a website which redirects to WorldPay for payments. If the user cancels the WorldPay transaction at WorldPay's website then a Drupal page with the notification of a cancelled transaction is returned through WorldPay's. My understanding is that the Drupal notification page is requested by WorldPay and returned through it. The message I get from mobile theme is:
and the page is not served with the mobile theme.
If line 109 is changed from this:
to this:
Then obviously the problem goes away although the page is still served without a mobile theme, but I am not sure this can be avoided.
Comment #2
trante commentedI also get this error
Notice: Undefined index: HTTP_ACCEPT in mobile_theme_detect_php() (line 109 of /home/examplecom/public_html/sites/all/modules/mobile_theme/mobile_theme.module).Comment #3
trante commentedCan anyone comment about this?
Comment #4
guenoz commentedI also have the error reported at #2
Comment #5
guenoz commentedComment #6
guenoz commentedComment #7
trante commentedIs it possible to add patch to dev version, by the developer?
Thank you
Comment #8
HorsePunchKid commentedI had the same issue and arrived at the same solution, but here is a patch with fewer parentheses to keep track of and using the more ordinary boolean operators.
Comment #9
mrP commented+1. The patch in #8 got rid of the error notices.
Comment #10
stewart.adam commented#8 fixed it for me too, marking as RTBC.
Comment #11
robloachThanks! http://drupalcode.org/project/mobile_theme.git/commit/ecd6024