찾다

 >  Q&A  >  본문

js post로 인해 500 오류가 발생했습니까? ? ?

서버 설치는 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입니다.
}
大家讲道理大家讲道理2828일 전695

모든 응답(3)나는 대답할 것이다

  • 过去多啦不再A梦

    过去多啦不再A梦2017-05-16 13:07:09

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

    nizhel

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

    회신하다
    0
  • 伊谢尔伦

    伊谢尔伦2017-05-16 13:07:09

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

    회신하다
    0
  • ringa_lee

    ringa_lee2017-05-16 13:07:09

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

    회신하다
    0
  • 취소회신하다