The first ```require_once```should be ```require_once realpath($ResqueLib . 'Resque' . DS . 'Worker.php');```