Thanks Susan.
I tried changing the mdetect.php plugin as suggested but couldn't save the plugin after changing the file path.
I then tried reinstalling the plugin, then uninstalling and reinstalling to no avail.
I have just removed all the code and re-input it line by line and have found a few lines that were causing the error when I saved the file. I'm not sure why because my php knowledge isn't too hot but something may jump out at you or another forum member?
Line 138
$delete_node = preg_quote($delete_node);
Line 140-141
$modx->resource->_output = preg_replace($pattern,'',$modx->resource->_output);
$preserve_node = preg_quote($preserve_node);
Line 143
$modx->resource->_output = preg_replace($pattern,'',$modx->resource->_output);
Line 145
$modx->resource->_output = preg_replace($pattern,'',$modx->resource->_output);
And finally Line 192 (the mdetect path)
include("assets/components/mobiledetection/mdetect.php");