Looking at the other threads relating to this error I can't seem to locate my issue. I don't have any output prior to the call so can anyone tell me what the issue is?Error is:\[code\]Warning: Cannot modify header information - headers already sent by ... line 12\[/code\]Here is the PHP code:\[code\]<?php if (!isset($_SESSION)) session_start();require_once 'classes/mobile_detect.class.php';$detect = new Mobile_Detect;if ($detect->isMobile()) { $referer = 'http://my_site_name/m/index.php'; header("Location: " . $referer); exit();} ?><!DOCTYPE html><html lang="en"><head>...\[/code\]