모바일 회원가입시 오류창이 떠요
CMS/프레임워크 | Rhymix 1.9 |
---|---|
개발 언어 | PHP 7.0 |
문제 페이지 주소 | 비공개 (작성 후 5일 경과) |
피씨 버전에서는 오류가 안나오는데 유독 모바일에서만 계속 저런 오류창이 나옵니다.
사이트 검색해보니 /common/js/xml_handler.js 파일에 alert 부분 주석처리하면 된다고 하시던데 어느부분인지 모르겠어요
아마도 여기 어느 부분일 것 같은데 어디서 어디까지 주석처리를 해야할까요?
// If the response contains a redirect URL, redirect immediately.
if (data.redirect_url) {
data.redirect_url = data.redirect_url.replace(/&/g, "&");
}
if (data.redirect_url && !$.isFunction(callback_success)) {
return redirect(data.redirect_url);
}
// If there was a success callback, call it.
if($.isFunction(callback_success)) {
callback_success(data);
}
};
// Define the error handler.
var errorHandler = function(xhr, textStatus) {
clearTimeout(wfsr_timeout);
waiting_obj.hide().trigger("cancel_confirm");
var error_info;
if ($(".x_modal-body").size()) {
error_info = xhr.status + " " + xhr.statusText + " (" + textStatus + ")" + "<br><br><pre>" + xhr.responseText + "</pre>";
alert("AJAX communication error while requesting " + params.module + "." + params.act + "<br><br>" + error_info);
} else {
error_info = xhr.status + " " + xhr.statusText + " (" + textStatus + ")" + "\n\n" + xhr.responseText;
alert("AJAX communication error while requesting " + params.module + "." + params.act + "\n\n" + error_info);
}
};
// Send the AJAX request.
try {
$.ajax({
type: "POST",
dataType: "json",
url: request_uri,
data: params,
success : successHandler,
error : errorHandler
});
} catch(e) {
alert(e);
return;
}
};
댓글 3
물론 닫기 누르고 넘어가면 회원가입에 문제는 없어요 하지만 닫기를 누르지 않고 방치했을 시 관리자모드에서 상단 팝업창(빈회원목록)이 나오고 취소 또는 컨펌 버튼이 나오는데 어떤 버튼을 눌러도 사라지지가 않아요
alert 주석 부분 위치를 질문하셔서 답변 남겨드립니다.
본문 내용중에 아래 부분을 주석 처리하면 되겠습니다.
alert("AJAX communication error while requesting " + params.module + "." + params.act + "<br><br>" + error_info);
alert("AJAX communication error while requesting " + params.module + "." + params.act + "\n\n" + error_info);
가능하다면 주석처리 보다는 오류가 발생되지 않도록 원인을 찾아 수정하시길 추천드립니다.