検索

ホームページ  >  に質問  >  本文

jsポストが原因で500エラー? ? ?

サーバーのインストールでは、oneinstack ワンクリック インストール パッケージ、lnmpa (Linux + Nginx + MySQL + PHP + Apache) を使用します
プログラムは discuz3.2 です
ポスト送信中に 500 エラーが発生しました。
エラー画像は以下の通りで、forum_post.jsが原因のような気がしますが、このjsファイルは修正されておらず、理由はわかりません。 。 。次に、185 行目と 165 行目の関連する js コードは次のとおりです

function checkpostrule_post(theform) {
    if(!seccodecheck && !secqaacheck && !theform.sechash) {
        var x = 新しい Ajax();
        x.get('forum.php?mod=ajax&action=checkpostrule&ac=' + postaction + '&inajax=yes', function(s) {
            if(s) {
                ajaxinnerhtml($('seccheck'), s);
                evalscript;
                seccodecheck = true;
            } それ以外 {
                postsubmit(theform); ///////この行は 165 です
            }
        });
    } それ以外 {
        postsubmit(フォーム);
    }
}

関数 postsubmit(theform) {
    if($(editorid + '_attachlist')) {
        $('postbox').appendChild($(editorid + '_attachlist'));
        $(editorid + '_attachlist').style.display = 'none';
    }
    if($(editorid + '_imgattachlist')) {
        $('postbox').appendChild($(editorid + '_imgattachlist'));
        $(editorid + '_imgattachlist').style.display = 'none';
    }
    隠すメニュー();

    theform.replysubmit ? theform.replysubmit.disabled = true : (theform.editsubmit ? theform.editsubmit.disabled = true : theform.topicsubmit.disabled = true);
    theform.submit(); /////この行は 185 です
}
大家讲道理大家讲道理2830日前698

全員に返信(3)返信します

  • 过去多啦不再A梦

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

    500 はバックエンドの問題で、本質的には

    の影響を受けているとおっしゃっていました。


    ニゼル

    これは get です。 get のすべてのパラメータが正常であるかどうかを確認します。

    返事
    0
  • 伊谢尔伦

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

    実際に返される内容を確認するには、コンソールを開いた後、[ネットワーク] -> [XHR] で対応するリクエストの応答を確認する必要がありますか?

    返事
    0
  • ringa_lee

    ringa_lee2017-05-16 13:07:09

    500 はバックエンドの問題ではありません

    返事
    0
  • キャンセル返事