js post로 인해 500 오류가 발생했습니까? ? ?
大家讲道理
大家讲道理 2017-05-16 13:05:09
0
3
697

서버 설치는 oneinstack 원클릭 설치 패키지인 lnmpa(Linux + Nginx + MySQL + PHP + Apache)를 사용합니다.
프로그램은 discuz3.2입니다.
제출 후 500 오류가 발생했습니다.
에러 사진은 다음과 같습니다. forum_post.js에 의한 현상인 것 같은데, 이 js 파일은 수정되지 않은 상태여서 이유를 모르겠습니다. . . 그러면 185행과 165행에 해당하는 js 코드는 다음과 같습니다

함수 checkpostrule_post(theform) {
    if(!seccodecheck && !secqaacheck && !theform.sechash) {
        var x = 새로운 Ajax();
        x.get('forum.php?mod=ajax&action=checkpostrule&ac=' + postaction + '&inajax=yes', 함수 {
            만약(들) {
                ajaxinnerhtml($('seccheck'), s);
                평가스크립트;
                seccodecheck = 사실;
            } 또 다른 {
                postsubmit(theform); ///////이 줄은 165입니다.
            }
        });
    } 또 다른 {
        postsubmit(양식);
    }
}

함수 postsubmit(theform) {
    if($(editorid + '_attachlist')) {
        $('postbox').appendChild($(editorid + '_attachlist'));
        $(editorid + '_attachlist').style.display = '없음';
    }
    if($(editorid + '_imgattachlist')) {
        $('postbox').appendChild($(editorid + '_imgattachlist'));
        $(editorid + '_imgattachlist').style.display = '없음';
    }
    hideMenu();

    theform.replysubmit ? theform.replysubmit.disabled = true : (theform.editsubmit ? theform.editsubmit.disabled = true : theform.topicsubmit.disabled = true);
    theform.submit(); /////이 줄은 185입니다.
}
大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

모든 응답(3)
过去多啦不再A梦

500은 백엔드 문제인데, 본질적으로 그 글의 영향을 받았다고 하더군요.

nizhel

get입니다. 백엔드 처리에 문제가 있는지 확인합니다. get의 모든 매개변수가 정상인가요?
伊谢尔伦

실제 반환 내용을 보려면 콘솔을 연 후 Network->XHR에서 해당 요청의 응답을 확인해야 합니까?

左手右手慢动作

500은 백엔드 문제가 아닙니다

최신 다운로드
더>
웹 효과
웹사이트 소스 코드
웹사이트 자료
프론트엔드 템플릿