Menu

#4961 (ok 4.4.10) Javascript error when Designer is opened

4.4.9
fixed
Designer (5)
Normal
2015-06-17
2015-06-15
SilentCry
No

Opening designer causes javascript error.

I just opens phpmyadmin, select database and click on Designer (same on 4.5.0dev), error appears directly. I'm unable to do anything on page, send Error report too, so I'm including error report here:

Report data:

{
"pma_version": "4.4.9",
"browser_name": "CHROME",
"browser_version": "43.0.2357.124",
"user_os": "Win",
"server_software": "Apache/2.4.7 (Win32) PHP/5.6.4",
"user_agent_string": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.124 Safari/537.36",
"locale": "cs",
"configuration_storage": "enabled",
"php_version": "5.6.4",
"exception_type": "js",
"exception": {
"mode": "stack",
"name": "TypeError",
"message": "Cannot read property 'offsetTop' of null",
"stack":
{
"line": 235,
"func": "",
"context": [
" lastException = null;",
" notifyHandlers.apply(null, [stack, null
.concat(args));",
" }",
" }, (stack.incomplete ? 2000 : 0));",
"",
" throw ex; // re-throw to propagate to the top level (and cause wind//...",
" }",
"",
" report.subscribe = subscribe;",
" report.unsubscribe = unsubscribe;",
" return report;"
],
"column": "",
"filename": "tracekit/tracekit.js"
},
{
"func": "Re_load",
"line": 361,
"column": "84",
"context":
" //alert(document.getElementById('id_hide_tbody_' + key2));",
" var tab_hide_button = document.getElementById('id_hide_//...",
"",
" //alert(tab_hide_button.innerHTML);",
" if (tab_hide_button.innerHTML == 'v') {",
" row_offset_top = document.getElementById(key2 + \".\"//...",
" }",
"",
" var y1 = document.getElementById(key2).offsetTop +",
" row_offset_top +",
" height_field;"
,
"filename": "pmd/move.js"
},
{
"func": "Main",
"line": 259,
"column": "5",
"context":
" // sm_x += document.getElementById('osn_tab').offsetLeft;",
" // sm_y += document.getElementById('osn_tab').offsetTop;",
" Osn_tab_pos();",
" Canvas_pos();",
" Small_tab_refresh();",
" Re_load();",
" id_hint = document.getElementById('pmd_hint');",
" if (isIE) {",
" General_scroll();",
" }",
"}"
,
"filename": "pmd/move.js"
},
{
"func": "HTMLDocument.<anonymous>",
"line": 31,
"column": "5",
"context":
" db = $(\"#script_db\").html();",
" token = $(\"#script_token\").html();",
" selected_page = $(\"#script_display_page\").html() === \"\" ? \"-1\" : $//...",
" pmd_tables_enabled = $(\"#pmd_tables_enabled\").html() === \"1\";",
"",
" Main();",
"",
" if (! pmd_tables_enabled) {",
" DesignerOfflineDB.open(function(success) {",
" if (success) {",
" Show_tables_in_landing_page(db);"
,
"filename": "pmd/init.js"
},
{
"func": "HTMLDocument.new_func",
"line": 279,
"column": "33",
"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": "HTMLDocument.m.event.dispatch",
"line": 3,
"column": "8436",
"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": "HTMLDocument.$event.dispatch",
"line": 374,
"column": "19",
"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": "HTMLDocument.r.handle",
"line": 3,
"column": "5146",
"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": "Object.m.event.trigger",
"line": 3,
"column": "7537",
"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": "HTMLDocument.<anonymous>",
"line": 3,
"column": "15404",
"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": "Function.m.extend.each",
"line": 2,
"column": "2973",
"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 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.124 Safari/537.36",
"incomplete": "false",
"partial": "true",
"uri": "db_designer.php?target="
},
"script_name": "db_designer.php",
"microhistory": {
"pages":
{
"hash": "index.php?db=&table=&server=1&target=&token=440b0d17b964e254a7609120a0f0f0e3"
},
{
"hash": "server_variables.php?db=&table=&server=1&target=&token=440b0d17b964e254a7609120a0f0f0e3",
"params": {
"opendb_url": "db_structure.php",
"safari_browser": "0",
"collation_connection": "utf8mb4_unicode_ci",
"lang": "cs",
"server": "1",
"text_dir": "ltr",
"show_databases_navigation_as_tree": "true",
"pma_text_default_tab": "Proj\u00edt",
"pma_text_left_default_tab": "Struktura",
"pma_text_left_default_tab2": "false",
"LimitChars": "50",
"pftext": "",
"confirm": "true",
"LoginCookieValidity": "1440",
"logged_in": "true",
"auth_type": "config"
}
},
{
"hash": "db_structure.php?db=a93002_podstr&table=&server=1&target=&token=440b0d17b964e254a7609120a0f0f0e3",
"params": {
"opendb_url": "db_structure.php",
"safari_browser": "0",
"collation_connection": "utf8mb4_unicode_ci",
"lang": "cs",
"server": "1",
"text_dir": "ltr",
"show_databases_navigation_as_tree": "true",
"pma_text_default_tab": "Proj\u00edt",
"pma_text_left_default_tab": "Struktura",
"pma_text_left_default_tab2": "false",
"LimitChars": "50",
"pftext": "",
"confirm": "true",
"LoginCookieValidity": "1440",
"logged_in": "true",
"auth_type": "config"
}
},
{
"hash": "db_designer.php?db=a93002_podstr&table=&server=1&target=&token=440b0d17b964e254a7609120a0f0f0e3",
"params": {
"opendb_url": "db_structure.php",
"safari_browser": "0",
"collation_connection": "utf8mb4_unicode_ci",
"lang": "cs",
"server": "1",
"text_dir": "ltr",
"show_databases_navigation_as_tree": "true",
"pma_text_default_tab": "Proj\u00edt",
"pma_text_left_default_tab": "Struktura",
"pma_text_left_default_tab2": "false",
"LimitChars": "50",
"pftext": "",
"confirm": "true",
"LoginCookieValidity": "1440",
"logged_in": "true",
"auth_type": "config"
}
}
,
"current_index": "4"
}
}

1 Attachments

Discussion

  • Madhura Jayaratne

    • summary: Javascript error whe Designer is opened --> Javascript error when Designer is opened
    • assigned_to: Madhura Jayaratne
     
  • Madhura Jayaratne

    • summary: Javascript error when Designer is opened --> (ok 4.4.10) Javascript error when Designer is opened
    • status: open --> resolved
     
  • Marc Delisle

    Marc Delisle - 2015-06-17
    • Status: resolved --> fixed