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

服务器安装使用的是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
}
大家讲道理
大家讲道理

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

全部回复(3)
过去多啦不再A梦

500 是后端问题, 然后你说你是post 影响的 实质上


nizhel

你这里是get吧 看看 后端处理的有没有问题 get的参数是不是都正常

伊谢尔伦

应该在打开控制台后查看Network->XHR中对应请求的Response
看看真实返回内容是啥?

左手右手慢动作

500不是后端问题吗

热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责声明 Sitemap
PHP中文网:公益在线PHP培训,帮助PHP学习者快速成长!