javascript - js post引起的500错误???
大家讲道理
大家讲道理 2017-05-16 13:05:09
0
3
601

服务器安装使用的是oneinstack一键安装包,lnmpa(Linux + Nginx+ MySQL+ PHP+ Apache)
程序是discuz3.2
在post submit时引起了500错误,
错误图片如下,感觉是forum_post.js引起的,但并没有修改这个js文件,也不知道为什么。。。然后,185行和165行相关js代码如下

function checkpostrule_post(theform) {
    if(!seccodecheck && !secqaacheck && !theform.sechash) {
        var x = new Ajax();
        x.get('forum.php?mod=ajax&action=checkpostrule&ac=' + postaction + '&inajax=yes', function(s) {
            if(s) {
                ajaxinnerhtml($('seccheck'), s);
                evalscript(s);
                seccodecheck = true;
            } else {
                postsubmit(theform);  ///////这行是165
            }
        });
    } else {
        postsubmit(theform);
    }
}

function 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';
    }
    hideMenu();

    theform.replysubmit ? theform.replysubmit.disabled = true : (theform.editsubmit ? theform.editsubmit.disabled = true : theform.topicsubmit.disabled = true);
    theform.submit(); /////这行是185
}
大家讲道理
大家讲道理

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

répondre à tous(3)
过去多啦不再A梦

500 est un problème de back-end, et ensuite vous avez dit que vous étiez affecté par le message. En substance,

.


nizhel

C'est get. Vérifiez s'il y a des problèmes avec le traitement back-end. Tous les paramètres de get sont-ils normaux ?

伊谢尔伦

Vous devriez vérifier la réponse de la requête correspondante dans Réseau->XHR après avoir ouvert la console pour voir quel est le contenu réel du retour ?

左手右手慢动作

500 n'est pas un problème de backend

Derniers téléchargements
Plus>
effets Web
Code source du site Web
Matériel du site Web
Modèle frontal
À propos de nous Clause de non-responsabilité Sitemap
Site Web PHP chinois:Formation PHP en ligne sur le bien-être public,Aidez les apprenants PHP à grandir rapidement!