Ok, you can revert that change, that helped me see what tyhe error is.
it looks like you have automatic forwarding of HTP to HTTPS that is causing the issue.
try changing the line:
$Root_URL = ((isset($_SERVER['SERVER_PROTOCOL']) && strpos($_SERVER['SERVER_PROTOCOL'], 'HTTPS') !== false) ? 'https://' : 'http://') . $_SERVER['SERVER_NAME'] . ( (isset($_SERVER['SERVER_PORT'])&& $_SERVER['SERVER_PORT'] != 80)?":".$_SERVER['SERVER_PORT']:"") . $assumedRoot;
to:
$Root_URL = "https://klineitsolutions.com/";