phpMyAdmin致命的Javascript错误已经发生

时间:2015-05-01 21:23:46

标签: javascript php phpmyadmin

我在CentOS Linux(2.6.32-504.12.2)服务器上运行phpMyAdmin版本4.4.4。我一直在PMA窗口的底部得到一个粉红色的横幅,上面写着:发生了致命的JavaScript错误。您要发送错误报告吗?如果我点击发送报告,则没有任何反应。如果我显示报告详细信息,这就是我所看到的:

{
    "pma_version": "4.4.4",
    "browser_name": "FIREFOX",
    "browser_version": "37.0",
    "user_os": "Mac",
    "server_software": "Apache/2.4.12 (Unix) OpenSSL/1.0.1e-fips",
    "user_agent_string": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:37.0) Gecko/20100101 Firefox/37.0",
    "locale": "en",
    "configuration_storage": "disabled",
    "php_version": "5.6.7",
    "exception_type": "js",
    "exception": {
        "mode": "stack",
        "name": "TypeError",
        "message": "field_id.match(...) is null",
        "stack": [
            {
                "func": "getFieldValidators",
                "args": "",
                "line": 302,
                "column": "16",
                "context": [
                    " * @return array of [function, parameters to be passed to function]",
                    " */",
                    "function getFieldValidators(field_id, onKeyUpOnly)",
                    "{",
                    "    // look for field bound validator",
                    "    var name = field_id.match(/[^-]+$/)[0];",
                    "    if (typeof validators._field[name] != 'undefined') {",
                    "        return [[validators._field[name], null]];",
                    "    }",
                    "",
                    "    // look for registered validators"
                ],
                "filename": "config.js"
            },
            {
                "func": "validate_field",
                "args": "",
                "line": 418,
                "column": "21",
                "context": [
                    "{",
                    "    var args, result;",
                    "    var $field = $(field);",
                    "    var field_id = $field.attr('id');",
                    "    errors[field_id] = [];",
                    "    var functions = getFieldValidators(field_id, isKeyUp);",
                    "    for (var i = 0; i < functions.length; i++) {",
                    "        if (typeof functions[i][1] !== 'undefined' && functions[i][1] !== n//...",
                    "            args = functions[i][1].slice(0);",
                    "        } else {",
                    "            args = [];"
                ],
                "filename": "config.js"
            },
            {
                "func": "?",
                "args": "",
                "line": 511,
                "column": "13",
                "context": [
                    "    var $check_page_refresh = $('#check_page_refresh');",
                    "    if ($check_page_refresh.length === 0 || $check_page_refresh.val() == '1') {",
                    "        // run all field validators",
                    "        var errors = {};",
                    "        for (var i = 0; i < $elements.length; i++) {",
                    "            validate_field($elements[i], false, errors);",
                    "        }",
                    "        // run all fieldset validators",
                    "        $('fieldset').each(function () {",
                    "            validate_fieldset(this, false, errors);",
                    "        });"
                ],
                "filename": "config.js"
            },
            {
                "func": "ErrorReport.wrap_function/new_func",
                "args": "",
                "line": 277,
                "column": "28",
                "context": [
                    "     */",
                    "    wrap_function: function (func) {",
                    "        if (!func.wrapped) {",
                    "            var new_func = function () {",
                    "                try {",
                    "                    return func.apply(this, arguments);",
                    "                } catch (x) {",
                    "                    TraceKit.report(x);",
                    "                }",
                    "            };",
                    "            new_func.wrapped = true;"
                ],
                "filename": "error_report.js"
            },
            {
                "func": "m.event.dispatch",
                "args": "",
                "line": 3,
                "column": "8384",
                "context": [
                    "/*! jQuery v1.11.1 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/li//...",
                    "!function(a,b){\"object\"==typeof module&&\"object\"==typeof module.exports?mod//...",
                    "if(k&&j[k]&&(e||j[k].data)||void 0!==d||\"string\"!=typeof b)return k||(k=i?a//...",
                    "},cur:function(){var a=Zb.propHooks[this.prop];return a&&a.get?a.get(this)://...",
                    ";",
                    "",
                    "function sprintf() {",
                    "/*"
                ],
                "filename": "jquery/jquery-1.11.1.min.js"
            },
            {
                "func": "$event.dispatch",
                "args": "",
                "line": 374,
                "column": "9",
                "context": [
                    "$event.dispatch = function( event ){",
                    "\tif ( $.data( this, \"suppress.\"+ event.type ) - new Date().getTime() > 0 ){",
                    "\t\t$.removeData( this, \"suppress.\"+ event.type );",
                    "\t\treturn;",
                    "\t}",
                    "\treturn $dispatch.apply( this, arguments );",
                    "};",
                    "",
                    "// event fix hooks for touch events...",
                    "var touchHooks = ",
                    "$event.fixHooks.touchstart = "
                ],
                "filename": "jquery/jquery.event.drag-2.2.js"
            },
            {
                "func": "m.event.add/r.handle",
                "args": "",
                "line": 3,
                "column": "5122",
                "context": [
                    "/*! jQuery v1.11.1 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/li//...",
                    "!function(a,b){\"object\"==typeof module&&\"object\"==typeof module.exports?mod//...",
                    "if(k&&j[k]&&(e||j[k].data)||void 0!==d||\"string\"!=typeof b)return k||(k=i?a//...",
                    "},cur:function(){var a=Zb.propHooks[this.prop];return a&&a.get?a.get(this)://...",
                    ";",
                    "",
                    "function sprintf() {",
                    "/*"
                ],
                "filename": "jquery/jquery-1.11.1.min.js"
            },
            {
                "func": "m.event.trigger",
                "args": "",
                "line": 3,
                "column": "7535",
                "context": [
                    "/*! jQuery v1.11.1 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/li//...",
                    "!function(a,b){\"object\"==typeof module&&\"object\"==typeof module.exports?mod//...",
                    "if(k&&j[k]&&(e||j[k].data)||void 0!==d||\"string\"!=typeof b)return k||(k=i?a//...",
                    "},cur:function(){var a=Zb.propHooks[this.prop];return a&&a.get?a.get(this)://...",
                    ";",
                    "",
                    "function sprintf() {",
                    "/*"
                ],
                "filename": "jquery/jquery-1.11.1.min.js"
            },
            {
                "func": ".trigger/<",
                "args": "",
                "line": 3,
                "column": "15396",
                "context": [
                    "/*! jQuery v1.11.1 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/li//...",
                    "!function(a,b){\"object\"==typeof module&&\"object\"==typeof module.exports?mod//...",
                    "if(k&&j[k]&&(e||j[k].data)||void 0!==d||\"string\"!=typeof b)return k||(k=i?a//...",
                    "},cur:function(){var a=Zb.propHooks[this.prop];return a&&a.get?a.get(this)://...",
                    ";",
                    "",
                    "function sprintf() {",
                    "/*"
                ],
                "filename": "jquery/jquery-1.11.1.min.js"
            },
            {
                "func": ".each",
                "args": "",
                "line": 2,
                "column": "2971",
                "context": [
                    "/*! jQuery v1.11.1 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/li//...",
                    "!function(a,b){\"object\"==typeof module&&\"object\"==typeof module.exports?mod//...",
                    "if(k&&j[k]&&(e||j[k].data)||void 0!==d||\"string\"!=typeof b)return k||(k=i?a//...",
                    "},cur:function(){var a=Zb.propHooks[this.prop];return a&&a.get?a.get(this)://...",
                    ";",
                    "",
                    "function sprintf() {"
                ],
                "filename": "jquery/jquery-1.11.1.min.js"
            },
            {
                "func": "m.prototype.each",
                "args": "",
                "line": 2,
                "column": "833",
                "context": [
                    "/*! jQuery v1.11.1 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/li//...",
                    "!function(a,b){\"object\"==typeof module&&\"object\"==typeof module.exports?mod//...",
                    "if(k&&j[k]&&(e||j[k].data)||void 0!==d||\"string\"!=typeof b)return k||(k=i?a//...",
                    "},cur:function(){var a=Zb.propHooks[this.prop];return a&&a.get?a.get(this)://...",
                    ";",
                    "",
                    "function sprintf() {"
                ],
                "filename": "jquery/jquery-1.11.1.min.js"
            },
            {
                "func": ".trigger",
                "args": "",
                "line": 3,
                "column": "15375",
                "context": [
                    "/*! jQuery v1.11.1 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/li//...",
                    "!function(a,b){\"object\"==typeof module&&\"object\"==typeof module.exports?mod//...",
                    "if(k&&j[k]&&(e||j[k].data)||void 0!==d||\"string\"!=typeof b)return k||(k=i?a//...",
                    "},cur:function(){var a=Zb.propHooks[this.prop];return a&&a.get?a.get(this)://...",
                    ";",
                    "",
                    "function sprintf() {",
                    "/*"
                ],
                "filename": "jquery/jquery-1.11.1.min.js"
            },
            {
                "func": "AJAX.fireOnload",
                "args": "",
                "line": 109,
                "column": "9",
                "context": [
                    "     *",
                    "     * @return void",
                    "     */",
                    "    fireOnload: function (file) {",
                    "        var eventName = 'onload_' + AJAX.hash(file);",
                    "        $(document).trigger(eventName);",
                    "        if (this._debug) {",
                    "            console.log(",
                    "                // no need to translate",
                    "                \"Fired event \" + eventName + \" for file \" + file",
                    "            );"
                ],
                "filename": "ajax.js"
            },
            {
                "func": "?",
                "args": "",
                "line": "4",
                "column": "632",
                "uri": "sql.php?target=",
                "scriptname": "sql.php"
            },
            {
                "func": "m.Callbacks/j",
                "args": "",
                "line": 2,
                "column": "27239",
                "context": [
                    "/*! jQuery v1.11.1 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/li//...",
                    "!function(a,b){\"object\"==typeof module&&\"object\"==typeof module.exports?mod//...",
                    "if(k&&j[k]&&(e||j[k].data)||void 0!==d||\"string\"!=typeof b)return k||(k=i?a//...",
                    "},cur:function(){var a=Zb.propHooks[this.prop];return a&&a.get?a.get(this)://...",
                    ";",
                    "",
                    "function sprintf() {"
                ],
                "filename": "jquery/jquery-1.11.1.min.js"
            },
            {
                "func": "m.Callbacks/k.fireWith",
                "args": "",
                "line": 2,
                "column": "28057",
                "context": [
                    "/*! jQuery v1.11.1 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/li//...",
                    "!function(a,b){\"object\"==typeof module&&\"object\"==typeof module.exports?mod//...",
                    "if(k&&j[k]&&(e||j[k].data)||void 0!==d||\"string\"!=typeof b)return k||(k=i?a//...",
                    "},cur:function(){var a=Zb.propHooks[this.prop];return a&&a.get?a.get(this)://...",
                    ";",
                    "",
                    "function sprintf() {"
                ],
                "filename": "jquery/jquery-1.11.1.min.js"
            },
            {
                "func": ".ready",
                "args": "",
                "line": 2,
                "column": "29889",
                "context": [
                    "/*! jQuery v1.11.1 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/li//...",
                    "!function(a,b){\"object\"==typeof module&&\"object\"==typeof module.exports?mod//...",
                    "if(k&&j[k]&&(e||j[k].data)||void 0!==d||\"string\"!=typeof b)return k||(k=i?a//...",
                    "},cur:function(){var a=Zb.propHooks[this.prop];return a&&a.get?a.get(this)://...",
                    ";",
                    "",
                    "function sprintf() {"
                ],
                "filename": "jquery/jquery-1.11.1.min.js"
            },
            {
                "func": "J",
                "args": "",
                "line": 2,
                "column": "30255",
                "context": [
                    "/*! jQuery v1.11.1 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/li//...",
                    "!function(a,b){\"object\"==typeof module&&\"object\"==typeof module.exports?mod//...",
                    "if(k&&j[k]&&(e||j[k].data)||void 0!==d||\"string\"!=typeof b)return k||(k=i?a//...",
                    "},cur:function(){var a=Zb.propHooks[this.prop];return a&&a.get?a.get(this)://...",
                    ";",
                    "",
                    "function sprintf() {"
                ],
                "filename": "jquery/jquery-1.11.1.min.js"
            }
        ],
        "useragent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:37.0) Gecko/20100101 Firefox/37.0",
        "incomplete": "false",
        "uri": "sql.php?target="
    },
    "script_name": "sql.php",
    "microhistory": {
        "current_index": "0"
    }
}

我尝试在Mac(OS X Yosemite)上运行最新版本的Safari,Chrome和Firefox中的phpMyAdmin,并在所有三种浏览器中获得相同的致命错误。有人知道怎么修这个东西吗?谢谢!

1 个答案:

答案 0 :(得分:1)

我也有类似的错误消息 - (“发生了致命的JavaScript错误。您要发送错误报告吗?”)在Chrome浏览器中。我在同一浏览器的隐身标签中尝试了“localhost / phpmyadmin”,效果很好。这是Google Chrome上次更新时遇到的问题。其他jQuery和其他代码中会出现此问题。 或者,只需在Chrome浏览器中禁用PageXray扩展程序,然后尝试一次。祝你好运!!!