fixed 2 times portal_error_log