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
JavaScript error while editing JSON in grid #14301
Comments
|
same |
|
4.8.1 / MySQL 8.0.11 is same error... |
|
Same error here, using 4.8.1 |
|
Yes, i faced this problem too... |
|
4.8.2 still not fix... Someone listen? |
|
Can confirm - Running into this as well |
|
@SirDeadlystrike TL;DR Can you send test data, it would help :) |
|
@williamdes Here is a object we use that triggers said issue The Error: When we cut down the object to somthing like |
|
The only way I've figured out to skip the problem is to select "Full Text" in the option and phpMyAdmin will show the full JSON content in the grid, and then it works file. |
|
same here |
|
Any fix for this? @MauricioFauth |
|
same too, the way to hide this error i set "Limit column characters" to 100, |
|
Any update on this issue. Getting same error in 4.8.3, worked great in 4.7.9 |
|
same issue in 4.8.2 {
"pma_version": "4.8.2",
"browser_name": "CHROME",
"browser_version": "70.0.3538.102",
"user_os": "Win",
"server_software": "Apache/2.4.18 (Ubuntu)",
"user_agent_string": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36",
"locale": "en",
"configuration_storage": "enabled",
"php_version": "7.2.12-1+ubuntu16.04.1+deb.sury.org+1",
"exception_type": "js",
"exception": {
"mode": "stack",
"name": "SyntaxError",
"message": "Unexpected end of JSON input",
"stack": [
{
"line": "292",
"func": "",
"uri": "index.php?v=4.8.2",
"scriptname": "index.php"
},
{
"func": "JSON.parse",
"line": "",
"column": "",
"uri": "index.php?",
"scriptname": "index.php"
},
{
"func": "Object.showEditCell",
"line": "604",
"column": "53",
"uri": "index.php?v=4.8.2",
"scriptname": "index.php"
},
{
"func": "startGridEditing",
"line": "1948",
"column": "23",
"uri": "index.php?v=4.8.2",
"scriptname": "index.php"
},
{
"func": "HTMLTableCellElement.",
"line": "2039",
"column": "25",
"uri": "index.php?v=4.8.2",
"scriptname": "index.php"
},
{
"func": "HTMLTableCellElement.new_func",
"line": "248",
"column": "33",
"uri": "index.php?v=4.8.2",
"scriptname": "index.php"
},
{
"func": "HTMLTableCellElement.dispatch",
"line": "2",
"column": "41772",
"uri": "index.php?v=4.8.2",
"scriptname": "index.php"
},
{
"func": "HTMLTableCellElement.$event.dispatch",
"line": "374",
"column": "19",
"uri": "index.php?v=4.8.2",
"scriptname": "index.php"
},
{
"func": "HTMLTableCellElement.y.handle",
"line": "2",
"column": "39791",
"uri": "index.php?v=4.8.2",
"scriptname": "index.php"
}
],
"incomplete": "false",
"partial": "true",
"uri": "index.php?"
},
"script_name": "index.php",
"microhistory": null
} |
|
Same error on 4.8.4 |
This comment is posted automatically by phpMyAdmin's error-reporting-server. |
This comment is posted automatically by phpMyAdmin's error-reporting-server. |
|
is still not fixed? |
|
It is a shame to say, but NO. |
|
@Gethin0321 @sharifzadesina or someone else, can you send me detailed steps to reproduce this issue ? If possible try on demo servers ( |
Hello @williamdes, I have created a table called "canpis" in a database called "JSONTEST" on the Demo server "demo.phpmyadmin.net". View table using the following URL To reproduce the issue, simply attempt to edit the JSON by double-clicking the "conf" column |
|
@lancemitchell Can you please paste an export on Github of the database since the demo servers get reset quite frequently.. I will have a look tomorrow (UTC+2) |
Here is an import file of the "canpis" table that you can import into a database of your choosing Regards |
|
Thanks @lancemitchell |
Duplicate: #14699 Signed-off-by: William Desportes <williamdes@wdes.fr>
|
This issue is now fixed and will be part of the next release |
|
At least :) |
|
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |

Steps to reproduce
Expected behaviour
It should be normal editing
Actual behaviour
The JavaScript exception
Uncaught SyntaxError: Unexpected token . in JSON at position 50
Debugged in JavaScript, I found the code in makegrid.js tried to parse the shorthand version of the value and trying to parse '[{"steps": [{"text": "AA", "type": "java", "title"...' will not work because the part after the 50th character is omitted and replaced by "...".
The JSON value was read from which should be from another source because the one in is the shorthand version with only the first 50 characters, not the full JSON code.
Server configuration
Operating system:
Linux(in docker)
Web server:
Nginx
Database:
MySQL 8.0.3-rc-log
PHP version:
7.2.4
phpMyAdmin version:
4.8.0.1
Client configuration
Browser:
Chrome 64
Operating system:
maxOS 10.13.4
The text was updated successfully, but these errors were encountered: