I would start by changing line 18.
From:
if($_REQUEST['chrURL']){
To:
if((isset($_REQUEST['chrURL']) && ($_REQUEST['chrURL'])){
See if that reduces a few of the errors to start with, or just that one. Also comment out line 1102 (add // at the beginning of the line)