replace all php require to require_once in functions.php