ZenphotoCMS Forum
Backtrace: NOTICE.....Mobile_Detect.php - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: Backtrace: NOTICE.....Mobile_Detect.php (/thread-10606.html)



Backtrace: NOTICE.....Mobile_Detect.php - n20capri - 2012-11-23

What's the deal with this error? Doesn't seem to have any affect on things but would like to get rid of it.
Thanks

{Fri, 23 Nov 2012 15:37:42 GMT}
Backtrace: NOTICE: Undefined index: HTTP_ACCEPT in /zp-core/zp-extensions/mobileTheme/Mobile_Detect.php on line 97
Mobile_Detect->construct called
from mobile->
construct (mobileTheme.php [173])
from mobileTheme::theme (mobileTheme.php [119])
from call_user_func_array (unknown)
from zp_apply_filter (functions-filter.php [150])
from setupTheme (functions.php [1116])
from prepareIndexPage (functions-controller.php [450])
from index.php [35]




Backtrace: NOTICE.....Mobile_Detect.php - sbillard - 2012-11-23

cahnge the line to $this->accept = @$_SERVER['HTTP_ACCEPT'];

this is "third party" code and i guess not so robust.




Backtrace: NOTICE.....Mobile_Detect.php - n20capri - 2012-11-23

Great thanks!