javascript - js post引起的500错误???

查看:295
本文介绍了javascript - js post引起的500错误???的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问 题

服务器安装使用的是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不是后端问题吗

这篇关于javascript - js post引起的500错误???的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆