服务器安装使用的是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
}
500 is a back-end problem, and then you said you were affected by the post. In essence,
nizhel
This is get. Check if there are any problems with the back-end processing. Are all the parameters of get normal?
You should check the Response of the corresponding request in Network->XHR after opening the console to see what the actual return content is?
500 is not a backend problem