New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JS Exception "PMA_makegrid is not defined" on index.php when clicking a table name #14299
Comments
|
@BarthDELUY @jizhidemowang Any idea on how to reproduce this step by step ? |
|
Using Details
{
"pma_version": "4.8.4-dev",
"browser_name": "CHROME",
"browser_version": "70.0.3538.103",
"user_os": "Linux",
"server_software": "nginx/1.10.3",
"user_agent_string": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.103 Safari/537.36 Vivaldi/2.1.1337.47",
"locale": "fr",
"configuration_storage": "enabled",
"php_version": "7.2.9-1+0~20180910100512.5+stretch~1.gbpdaac35",
"exception_type": "js",
"exception": {
"mode": "stack",
"name": "ReferenceError",
"message": "PMA_makegrid is not defined",
"stack": [
{
"func": "HTMLTableElement.",
"line": "338",
"column": "13",
"uri": "index.php?v=4.8.4-dev",
"scriptname": "index.php"
},
{
"func": "Function.each",
"line": "2",
"column": "2573",
"uri": "index.php?v=4.8.4-dev",
"scriptname": "index.php"
},
{
"func": "jQuery.fn.init.each",
"line": "2",
"column": "1240",
"uri": "index.php?v=4.8.4-dev",
"scriptname": "index.php"
},
{
"func": "HTMLDivElement.",
"line": "337",
"column": "29",
"uri": "index.php?v=4.8.4-dev",
"scriptname": "index.php"
},
{
"func": "HTMLDivElement.new_func",
"line": "248",
"column": "33",
"uri": "index.php?v=4.8.4-dev",
"scriptname": "index.php"
},
{
"func": "HTMLDocument.dispatch",
"line": "2",
"column": "41772",
"uri": "index.php?v=4.8.4-dev",
"scriptname": "index.php"
},
{
"func": "HTMLDocument.$event.dispatch",
"line": "374",
"column": "19",
"uri": "index.php?v=4.8.4-dev",
"scriptname": "index.php"
},
{
"func": "HTMLDocument.y.handle",
"line": "2",
"column": "39791",
"uri": "index.php?v=4.8.4-dev",
"scriptname": "index.php"
},
{
"func": "Object.trigger",
"line": "2",
"column": "69551",
"uri": "index.php?v=4.8.4-dev",
"scriptname": "index.php"
},
{
"func": "HTMLDivElement.",
"line": "2",
"column": "70146",
"uri": "index.php?v=4.8.4-dev",
"scriptname": "index.php"
}
],
"uri": "index.php?"
},
"script_name": "index.php",
"microhistory": null
} |
Details
{
"pma_version": "4.8.4-dev",
"browser_name": "CHROME",
"browser_version": "70.0.3538.103",
"user_os": "Linux",
"server_software": "nginx/1.10.3",
"user_agent_string": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.103 Safari/537.36 Vivaldi/2.1.1337.47",
"locale": "en",
"configuration_storage": "enabled",
"php_version": "7.2.12-1+0~20181112102304.11+stretch~1.gbp55f215",
"exception_type": "js",
"exception": {
"mode": "stack",
"name": "ReferenceError",
"message": "PMA_makegrid is not defined",
"stack": [
{
"func": "HTMLTableElement.",
"line": "338",
"column": "13",
"uri": "index.php?v=4.8.4-dev",
"scriptname": "index.php"
},
{
"func": "Function.each",
"line": "2",
"column": "2573",
"uri": "index.php?v=4.8.4-dev",
"scriptname": "index.php"
},
{
"func": "jQuery.fn.init.each",
"line": "2",
"column": "1240",
"uri": "index.php?v=4.8.4-dev",
"scriptname": "index.php"
},
{
"func": "HTMLDivElement.",
"line": "337",
"column": "29",
"uri": "index.php?v=4.8.4-dev",
"scriptname": "index.php"
},
{
"func": "HTMLDivElement.new_func",
"line": "248",
"column": "33",
"uri": "index.php?v=4.8.4-dev",
"scriptname": "index.php"
},
{
"func": "HTMLDocument.dispatch",
"line": "2",
"column": "41772",
"uri": "index.php?v=4.8.4-dev",
"scriptname": "index.php"
},
{
"func": "HTMLDocument.$event.dispatch",
"line": "374",
"column": "19",
"uri": "index.php?v=4.8.4-dev",
"scriptname": "index.php"
},
{
"func": "HTMLDocument.y.handle",
"line": "2",
"column": "39791",
"uri": "index.php?v=4.8.4-dev",
"scriptname": "index.php"
},
{
"func": "Object.trigger",
"line": "2",
"column": "69551",
"uri": "index.php?v=4.8.4-dev",
"scriptname": "index.php"
},
{
"func": "HTMLDivElement.",
"line": "2",
"column": "70146",
"uri": "index.php?v=4.8.4-dev",
"scriptname": "index.php"
}
],
"uri": "index.php?"
},
"script_name": "index.php",
"microhistory": null
} |
This comment is posted automatically by phpMyAdmin's error-reporting-server. |
This comment is posted automatically by phpMyAdmin's error-reporting-server. |
|
|
|
This issue is so hard to reproduce.. |
This comment is posted automatically by phpMyAdmin's error-reporting-server. |
|
On scriptname: js/sql.js; line: 338; func: HTMLTableElement.; column: 13;
* triggered manually everytime the table of results is reloaded
* @memberOf jQuery
*/
$(document).on('makegrid', '.sqlqueryresults', function () {
$('.table_results').each(function () {
PMA_makegrid(this);
});
});
/*
* Attach a custom event for sticky column headings which will be
scriptname: js/sql.js; line: 337; func: HTMLDivElement.; column: 29;
* Attach the {@link makegrid} function to a custom event, which will be
* triggered manually everytime the table of results is reloaded
* @memberOf jQuery
*/
$(document).on('makegrid', '.sqlqueryresults', function () {
$('.table_results').each(function () {
PMA_makegrid(this);
});
});
/*
scriptname: js/vendor/jquery/jquery.event.drag-2.2.js; line: 374; func: HTMLDocument.$event.dispatch; column: 19;scriptname: js/sql.js; line: 338; func: Anonymous function; column: 13;
* triggered manually everytime the table of results is reloaded
* @memberOf jQuery
*/
$(document).on('makegrid', '.sqlqueryresults', function () {
$('.table_results').each(function () {
PMA_makegrid(this);
});
});
/*
* Attach a custom event for sticky column headings which will be
scriptname: js/sql.js; line: 337; func: Anonymous function; column: 9;
* Attach the {@link makegrid} function to a custom event, which will be
* triggered manually everytime the table of results is reloaded
* @memberOf jQuery
*/
$(document).on('makegrid', '.sqlqueryresults', function () {
$('.table_results').each(function () {
PMA_makegrid(this);
});
});
/*
scriptname: js/vendor/jquery/jquery.event.drag-2.2.js; line: 374; func: $event.dispatch; column: 2;
|
This comment is posted automatically by phpMyAdmin's error-reporting-server. |
|
Still had it but could not reproduce it more than one time |
|
After months, maybe years of trying to reproduce this issue I finally got a procedure:
cc @yashrajbothra can you please try to fix it ? |
|
I have started working on the issue.I will try my best to fix it. |
|
The demo server credentials are |
|
Thanks @williamdes |
|
Hey @williamdes which branch should i take as base? |
|
@yashrajbothra QA_5_0 should be used as a base |
Signed-off-by: Yash Bothra <yashrajbothra786@gmail.com>
Signed-off-by: William Desportes <williamdes@wdes.fr>
Steps to reproduce
Expected behaviour
Default page for this table should open
Actual behaviour
JS Exception "PMA_makegrid is not defined" is thrown. All links stop working, left panel turns white if you click on another table's name or on a top menu link icon. Error occurs on two different servers, with the same software configuration (OS, Apache, PHP, MySQL, PMA versions).
Only solution is to close the tab and reconnect.
This error never occured on Linux or Windows workstations (yet?), only on our 2 developers Mac laptops on Chrome. They started appearing when we switched to phpMyAdmin 4.8.0.0 installed from source the week before version 4.8.0.1 was released, and was not fixed in 4.8.0.1 (I upgraded again the day after 4.8.0.1 was released)
The error did not occur on our previous installation (phpMyAdmin 4.2.12-2+deb8u2 from debian repositories).
Server configuration
Operating system: Debian 8
Web server: Apache 2.4.10
Database: Mysql 5.5.59
PHP version: 5.6.33 via PHP-FPM
phpMyAdmin version: 4.8.0.1
Theme : metro
Client configuration
Browser: Chrome 66
Operating system: Mac OS X
Edit: complete error (click me):
{ "pma_version": "4.8.0.1", "browser_name": "CHROME", "browser_version": "66.0.3359.117", "user_os": "Mac", "server_software": "Apache/2.4.10 (Debian)", "user_agent_string": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.117 Safari/537.36", "locale": "fr", "configuration_storage": "enabled", "php_version": "5.6.33-0+deb8u1", "exception_type": "js", "exception": { "mode": "stack", "name": "ReferenceError", "message": "PMA_makegrid is not defined", "stack": [ { "line": "292", "func": "", "uri": "index.php?v=4.8.0.1", "scriptname": "index.php" }, { "func": "HTMLTableElement.", "line": "330", "column": "13", "uri": "index.php?v=4.8.0.1", "scriptname": "index.php" }, { "func": "Function.each", "line": "2", "column": "2573", "uri": "index.php?v=4.8.0.1", "scriptname": "index.php" }, { "func": "jQuery.fn.init.each", "line": "2", "column": "1240", "uri": "index.php?v=4.8.0.1", "scriptname": "index.php" }, { "func": "HTMLDivElement.", "line": "329", "column": "29", "uri": "index.php?v=4.8.0.1", "scriptname": "index.php" }, { "func": "HTMLDivElement.new_func", "line": "248", "column": "33", "uri": "index.php?v=4.8.0.1", "scriptname": "index.php" }, { "func": "HTMLDocument.dispatch", "line": "2", "column": "41772", "uri": "index.php?v=4.8.0.1", "scriptname": "index.php" }, { "func": "HTMLDocument.$event.dispatch", "line": "374", "column": "19", "uri": "index.php?v=4.8.0.1", "scriptname": "index.php" }, { "func": "HTMLDocument.y.handle", "line": "2", "column": "39791", "uri": "index.php?v=4.8.0.1", "scriptname": "index.php" }, { "func": "Object.trigger", "line": "2", "column": "69551", "uri": "index.php?v=4.8.0.1", "scriptname": "index.php" }, { "func": "HTMLDivElement.", "line": "2", "column": "70146", "uri": "index.php?v=4.8.0.1", "scriptname": "index.php" } ], "incomplete": "false", "partial": "true", "uri": "index.php?" }, "script_name": "index.php", "microhistory": null }The text was updated successfully, but these errors were encountered: