Login Logout link no longer works

Hello,
URL: http://www.yourtechadvisors.com
I don't know why, but the Login and Logout link on my menu never works anymore. It does not redirect the page properly with the correct URL to come back to the previous page, and it does not logout, it throws a WordPress error.
Support access is enabled.

Here is my login logout code.

/**Add Login Logout link to menu**/

add_filter('wp_nav_menu_items', 'add_login_logout_link', 10, 2); 

function add_login_logout_link($items, $args) {

	$pageURL  = 'http://';

	$pageURL .= $_SERVER['HTTP_HOST'];

	$pageURL .= $_SERVER['REQUEST_URI'];

         ob_start();

	 wp_loginout($pageURL);

         $loginoutlink = ob_get_contents();

         ob_end_clean();

         $items .= '<li>'. $loginoutlink .'</li>';

     return $items;

}

Thanks.