Skip to content
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

Designer page saving gives error #12900

Closed
adjerbetian opened this issue Jan 17, 2017 · 34 comments
Closed

Designer page saving gives error #12900

adjerbetian opened this issue Jan 17, 2017 · 34 comments
Assignees
Labels
Bug A problem or regression with an existing feature
Projects
Milestone

Comments

@adjerbetian
Copy link

Steps to reproduce

  1. Go to designer
  2. Try to save a page on the left small menu
  3. Yields an error

Error message:

{
    "pma_version": "4.6.5.2",
    "browser_name": "FIREFOX",
    "browser_version": "50.0",
    "user_os": "Win",
    "server_software": "Apache/2.4.23 (Win64) PHP/5.6.25",
    "user_agent_string": "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0",
    "locale": "en",
    "configuration_storage": "disabled",
    "php_version": "5.6.25",
    "exception_type": "js",
    "exception": {
        "mode": "stack",
        "name": "DataError",
        "message": "Data provided to an operation does not meet requirements.",
        "stack": [
            {
                "func": "designerDB.addObject",
                "args": "",
                "line": 104,
                "column": "23",
                "context": [
                    "",
                    "    designerDB.addObject = function(table, obj, callback) {",
                    "        var db = datastore;",
                    "        var transaction = db.transaction([table], 'readwrite');",
                    "        var objStore = transaction.objectStore(table);",
                    "        var request = objStore.put(obj);",
                    "",
                    "        request.onsuccess = function(e) {",
                    "            if (typeof callback !== 'undefined' && callback !== null) {",
                    "                callback(e.currentTarget.result);",
                    "            }"
                ],
                "filename": "pmd/designer_db.js"
            },
            {
                "func": "Create_new_page",
                "args": "",
                "line": 49,
                "column": "5",
                "context": [
                    "}",
                    "",
                    "function Create_new_page(db, page_name, callback)",
                    "{",
                    "    var newPage = new PDFPage(db, page_name);",
                    "    DesignerOfflineDB.addObject('pdf_pages', newPage, function (pg_nr) {",
                    "        newPage.pg_nr = pg_nr;",
                    "        if (typeof callback !== 'undefined') {",
                    "            callback(newPage);",
                    "        }",
                    "    });"
                ],
                "filename": "pmd/designer_page.js"
            },
            {
                "func": "Save_to_new_page",
                "args": "",
                "line": 15,
                "column": "5",
                "context": [
                    "    });",
                    "}",
                    "",
                    "function Save_to_new_page(db, page_name, table_positions, callback)",
                    "{",
                    "    Create_new_page(db, page_name, function (page) {",
                    "        if (page) {",
                    "            var tbl_cords = [];",
                    "            for (var pos = 0; pos < table_positions.length; pos++) {",
                    "                table_positions[pos].pdf_pg_nr = page.pg_nr;",
                    "                Save_table_positions(table_positions[pos], function (id) {"
                ],
                "filename": "pmd/designer_page.js"
            },
            {
                "func": "submitSaveDialogAndClose",
                "args": "",
                "line": 709,
                "column": "9",
                "context": [
                    "                    callback();",
                    "                }",
                    "            }",
                    "        });",
                    "    } else {",
                    "        Save_to_new_page(db, name, Get_url_pos(), function (page) {",
                    "            MarkSaved();",
                    "            if (page.pg_nr) {",
                    "                selected_page = page.pg_nr;",
                    "            }",
                    "            $('#page_name').text(page.page_descr);"
                ],
                "filename": "pmd/move.js"
            },
            {
                "func": "Save3/<",
                "args": "",
                "line": 746,
                "column": "13",
                "context": [
                    "            .append('<input type=\"hidden\" name=\"save_page\" value=\"new\" />')",
                    "            .append('<label for=\"selected_value\">' + PMA_messages.strPageName +",
                    "                '</label>:<input type=\"text\" name=\"selected_value\" />');",
                    "        $form.on('submit', function(e){",
                    "            e.preventDefault();",
                    "            submitSaveDialogAndClose(callback);",
                    "        });",
                    "        $('<div id=\"page_save_dialog\"></div>')",
                    "            .append($form)",
                    "            .dialog({",
                    "                appendTo: '#page_content',"
                ],
                "filename": "pmd/move.js"
            },
            {
                "func": "ErrorReport.wrap_function/new_func",
                "args": "",
                "line": 249,
                "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": "n.event.dispatch",
                "args": "",
                "line": 3,
                "column": "6414",
                "context": [
                    "/*! jQuery v2.1.4 | (c) 2005, 2015 jQuery Foundation, Inc. | jquery.org/lic//...",
                    "!function(a,b){\"object\"==typeof module&&\"object\"==typeof module.exports?mod//...",
                    "return M.access(a,b,c)},removeData:function(a,b){M.remove(a,b)},_data:funct//...",
                    "void 0===c?d&&\"get\"in d&&null!==(e=d.get(a,b))?e:(e=n.find.attr(a,b),null==//...",
                    ";",
                    "",
                    "function sprintf() {",
                    "/*"
                ],
                "filename": "jquery/jquery-2.1.4.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": "n.event.add/r.handle",
                "args": "",
                "line": 3,
                "column": "3224",
                "context": [
                    "/*! jQuery v2.1.4 | (c) 2005, 2015 jQuery Foundation, Inc. | jquery.org/lic//...",
                    "!function(a,b){\"object\"==typeof module&&\"object\"==typeof module.exports?mod//...",
                    "return M.access(a,b,c)},removeData:function(a,b){M.remove(a,b)},_data:funct//...",
                    "void 0===c?d&&\"get\"in d&&null!==(e=d.get(a,b))?e:(e=n.find.attr(a,b),null==//...",
                    ";",
                    "",
                    "function sprintf() {",
                    "/*"
                ],
                "filename": "jquery/jquery-2.1.4.min.js"
            },
            {
                "func": "n.event.trigger",
                "args": "",
                "line": 3,
                "column": "5572",
                "context": [
                    "/*! jQuery v2.1.4 | (c) 2005, 2015 jQuery Foundation, Inc. | jquery.org/lic//...",
                    "!function(a,b){\"object\"==typeof module&&\"object\"==typeof module.exports?mod//...",
                    "return M.access(a,b,c)},removeData:function(a,b){M.remove(a,b)},_data:funct//...",
                    "void 0===c?d&&\"get\"in d&&null!==(e=d.get(a,b))?e:(e=n.find.attr(a,b),null==//...",
                    ";",
                    "",
                    "function sprintf() {",
                    "/*"
                ],
                "filename": "jquery/jquery-2.1.4.min.js"
            },
            {
                "func": ".trigger/<",
                "args": "",
                "line": 3,
                "column": "11534",
                "context": [
                    "/*! jQuery v2.1.4 | (c) 2005, 2015 jQuery Foundation, Inc. | jquery.org/lic//...",
                    "!function(a,b){\"object\"==typeof module&&\"object\"==typeof module.exports?mod//...",
                    "return M.access(a,b,c)},removeData:function(a,b){M.remove(a,b)},_data:funct//...",
                    "void 0===c?d&&\"get\"in d&&null!==(e=d.get(a,b))?e:(e=n.find.attr(a,b),null==//...",
                    ";",
                    "",
                    "function sprintf() {",
                    "/*"
                ],
                "filename": "jquery/jquery-2.1.4.min.js"
            },
            {
                "func": ".each",
                "args": "",
                "line": 2,
                "column": "2880",
                "context": [
                    "/*! jQuery v2.1.4 | (c) 2005, 2015 jQuery Foundation, Inc. | jquery.org/lic//...",
                    "!function(a,b){\"object\"==typeof module&&\"object\"==typeof module.exports?mod//...",
                    "return M.access(a,b,c)},removeData:function(a,b){M.remove(a,b)},_data:funct//...",
                    "void 0===c?d&&\"get\"in d&&null!==(e=d.get(a,b))?e:(e=n.find.attr(a,b),null==//...",
                    ";",
                    "",
                    "function sprintf() {"
                ],
                "filename": "jquery/jquery-2.1.4.min.js"
            },
            {
                "func": "n.prototype.each",
                "args": "",
                "line": 2,
                "column": "845",
                "context": [
                    "/*! jQuery v2.1.4 | (c) 2005, 2015 jQuery Foundation, Inc. | jquery.org/lic//...",
                    "!function(a,b){\"object\"==typeof module&&\"object\"==typeof module.exports?mod//...",
                    "return M.access(a,b,c)},removeData:function(a,b){M.remove(a,b)},_data:funct//...",
                    "void 0===c?d&&\"get\"in d&&null!==(e=d.get(a,b))?e:(e=n.find.attr(a,b),null==//...",
                    ";",
                    "",
                    "function sprintf() {"
                ],
                "filename": "jquery/jquery-2.1.4.min.js"
            },
            {
                "func": ".trigger",
                "args": "",
                "line": 3,
                "column": "11513",
                "context": [
                    "/*! jQuery v2.1.4 | (c) 2005, 2015 jQuery Foundation, Inc. | jquery.org/lic//...",
                    "!function(a,b){\"object\"==typeof module&&\"object\"==typeof module.exports?mod//...",
                    "return M.access(a,b,c)},removeData:function(a,b){M.remove(a,b)},_data:funct//...",
                    "void 0===c?d&&\"get\"in d&&null!==(e=d.get(a,b))?e:(e=n.find.attr(a,b),null==//...",
                    ";",
                    "",
                    "function sprintf() {",
                    "/*"
                ],
                "filename": "jquery/jquery-2.1.4.min.js"
            },
            {
                "func": "n.fn[b]",
                "args": "",
                "line": 4,
                "column": "5096",
                "context": [
                    "/*! jQuery v2.1.4 | (c) 2005, 2015 jQuery Foundation, Inc. | jquery.org/lic//...",
                    "!function(a,b){\"object\"==typeof module&&\"object\"==typeof module.exports?mod//...",
                    "return M.access(a,b,c)},removeData:function(a,b){M.remove(a,b)},_data:funct//...",
                    "void 0===c?d&&\"get\"in d&&null!==(e=d.get(a,b))?e:(e=n.find.attr(a,b),null==//...",
                    ";",
                    "",
                    "function sprintf() {",
                    "/*",
                    " * Copyright (c) 2013 Kevin van Zonneveld (http://kvz.io)"
                ],
                "filename": "jquery/jquery-2.1.4.min.js"
            },
            {
                "func": "Save3/button_options[PMA_messages.strGo]",
                "args": "",
                "line": 730,
                "column": "13",
                "context": [
                    "        Save2(callback);",
                    "    } else {",
                    "        var button_options = {};",
                    "        button_options[PMA_messages.strGo] = function () {",
                    "            var $form = $(\"#save_page\");",
                    "            $form.submit();",
                    "        }",
                    "        button_options[PMA_messages.strCancel] = function () {",
                    "            $(this).dialog('close');",
                    "        };",
                    ""
                ],
                "filename": "pmd/move.js"
            },
            {
                "func": "._createButtons/</s.click",
                "args": "",
                "line": 11,
                "column": "3354",
                "context": [
                    "(function(e){\"function\"==typeof define&&define.amd?define([\"jquery\"],e):e(j//...",
                    "},_clear:function(){this.helper.removeClass(\"ui-draggable-dragging\"),this.h//...",
                    "this.element.addClass(\"ui-selectable\"),this.dragged=!1,this.refresh=functio//...",
                    "},_refresh:function(){var t,i=this.options,s=i.heightStyle,n=this.element.p//...",
                    "},_destroyDatepicker:function(t){var i,s=e(t),n=e.data(t,\"datepicker\");s.ha//...",
                    "return this._isOpen?(this._moveToTop()&&this._focusTabbable(),void 0):(this//...",
                    "},_keydown:function(t){var i=this.options,s=e.ui.keyCode;switch(t.keyCode){//...",
                    "return t.parent().is(\".ui-effects-wrapper\")&&(t.parent().replaceWith(t),(t[//...",
                    "",
                    "/*jslint browser: true */ /*global jQuery: true */",
                    ""
                ],
                "filename": "jquery/jquery-ui-1.11.4.min.js"
            },
            {
                "func": "ErrorReport.wrap_function/new_func",
                "args": "",
                "line": 249,
                "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": "n.event.dispatch",
                "args": "",
                "line": 3,
                "column": "6414",
                "context": [
                    "/*! jQuery v2.1.4 | (c) 2005, 2015 jQuery Foundation, Inc. | jquery.org/lic//...",
                    "!function(a,b){\"object\"==typeof module&&\"object\"==typeof module.exports?mod//...",
                    "return M.access(a,b,c)},removeData:function(a,b){M.remove(a,b)},_data:funct//...",
                    "void 0===c?d&&\"get\"in d&&null!==(e=d.get(a,b))?e:(e=n.find.attr(a,b),null==//...",
                    ";",
                    "",
                    "function sprintf() {",
                    "/*"
                ],
                "filename": "jquery/jquery-2.1.4.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": "n.event.add/r.handle",
                "args": "",
                "line": 3,
                "column": "3224",
                "context": [
                    "/*! jQuery v2.1.4 | (c) 2005, 2015 jQuery Foundation, Inc. | jquery.org/lic//...",
                    "!function(a,b){\"object\"==typeof module&&\"object\"==typeof module.exports?mod//...",
                    "return M.access(a,b,c)},removeData:function(a,b){M.remove(a,b)},_data:funct//...",
                    "void 0===c?d&&\"get\"in d&&null!==(e=d.get(a,b))?e:(e=n.find.attr(a,b),null==//...",
                    ";",
                    "",
                    "function sprintf() {",
                    "/*"
                ],
                "filename": "jquery/jquery-2.1.4.min.js"
            }
        ],
        "useragent": "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0",
        "uri": "db_designer.php?"
    },
    "script_name": "db_designer.php",
    "microhistory": null
}

Expected behaviour

It was supopsed to save the way I organised my designer page

Actual behaviour

Breaks and doesn't create a page nor saves it.

Server configuration

Windows 10 with wamp

Web server:
Apache

Database:
mysql5.7.14

PHP version:
php5.6.25

phpMyAdmin version:
Latest version: phpMyAdmin4.6.5.2

Client configuration

Browser:
Chrome & Firefox

Operating system:
Windows 10

@nijel nijel added the Bug A problem or regression with an existing feature label Jan 18, 2017
@nijel
Copy link
Contributor

nijel commented Jan 18, 2017

Param Value
Error Type DataError
Error Message Data provided to an operation does not meet requirements.
Exception Type js
Link Report#30499

This comment is posted automatically by phpMyAdmin's error-reporting-server.

@nijel
Copy link
Contributor

nijel commented Jan 18, 2017

Param Value
Error Type DataError
Error Message Data provided to an operation does not meet requirements.
Exception Type js
Link Report#29944

This comment is posted automatically by phpMyAdmin's error-reporting-server.

@nijel
Copy link
Contributor

nijel commented Jan 18, 2017

Param Value
Error Type DataError
Error Message Data provided to an operation does not meet requirements.
Exception Type js
Link Report#29669

This comment is posted automatically by phpMyAdmin's error-reporting-server.

@nijel
Copy link
Contributor

nijel commented Jan 18, 2017

Param Value
Error Type DataError
Error Message Data provided to an operation does not meet requirements.
Exception Type js
Link Report#29503

This comment is posted automatically by phpMyAdmin's error-reporting-server.

@nijel
Copy link
Contributor

nijel commented Jan 18, 2017

Param Value
Error Type DataError
Error Message Data provided to an operation does not meet requirements.
Exception Type js
Link Report#27865

This comment is posted automatically by phpMyAdmin's error-reporting-server.

@nijel
Copy link
Contributor

nijel commented Jan 18, 2017

Param Value
Error Type DataError
Error Message Data provided to an operation does not meet requirements.
Exception Type js
Link Report#26741

This comment is posted automatically by phpMyAdmin's error-reporting-server.

@nijel
Copy link
Contributor

nijel commented Jan 18, 2017

Param Value
Error Type DataError
Error Message Data provided to an operation does not meet requirements.
Exception Type js
Link Report#25360

This comment is posted automatically by phpMyAdmin's error-reporting-server.

@nijel
Copy link
Contributor

nijel commented Jan 18, 2017

Param Value
Error Type DataError
Error Message Data provided to an operation does not meet requirements.
Exception Type js
Link Report#24121

This comment is posted automatically by phpMyAdmin's error-reporting-server.

@nijel
Copy link
Contributor

nijel commented Jan 18, 2017

Param Value
Error Type DataError
Error Message Data provided to an operation does not meet requirements.
Exception Type js
Link Report#23564

This comment is posted automatically by phpMyAdmin's error-reporting-server.

@nijel
Copy link
Contributor

nijel commented Jan 18, 2017

Param Value
Error Type DataError
Error Message Data provided to an operation does not meet requirements.
Exception Type js
Link Report#22352

This comment is posted automatically by phpMyAdmin's error-reporting-server.

@nijel
Copy link
Contributor

nijel commented Jan 18, 2017

Param Value
Error Type DataError
Error Message Data provided to an operation does not meet requirements.
Exception Type js
Link Report#21460

This comment is posted automatically by phpMyAdmin's error-reporting-server.

@nijel
Copy link
Contributor

nijel commented Jan 18, 2017

Param Value
Error Type DataError
Error Message Data provided to an operation does not meet requirements.
Exception Type js
Link Report#17876

This comment is posted automatically by phpMyAdmin's error-reporting-server.

@nijel
Copy link
Contributor

nijel commented Jan 18, 2017

Param Value
Error Type DataError
Error Message Data provided to an operation does not meet requirements.
Exception Type js
Link Report#16449

This comment is posted automatically by phpMyAdmin's error-reporting-server.

@nijel
Copy link
Contributor

nijel commented Jan 18, 2017

Param Value
Error Type DataError
Error Message Data provided to an operation does not meet requirements.
Exception Type js
Link Report#9111

This comment is posted automatically by phpMyAdmin's error-reporting-server.

@nijel
Copy link
Contributor

nijel commented Jan 18, 2017

This error seems to be related to the data we store: http://stackoverflow.com/a/36019922/225718

Though I can't see anything obviously wrong in the code.

@nijel
Copy link
Contributor

nijel commented Jan 18, 2017

The chrome error message seems to be a bit more helpful: Failed to execute 'put' on 'IDBObjectStore': Evaluating the object store's key path yielded a value that is not a valid key.

@nijel
Copy link
Contributor

nijel commented Jan 18, 2017

Param Value
Error Type DataError
Error Message Failed to execute 'put' on 'IDBObjectStore': Evaluating the object store's key path yielded a value that is not a valid key.
Exception Type js
Link Report#20865

This comment is posted automatically by phpMyAdmin's error-reporting-server.

@SSAAVVLL
Copy link

Same error, doesn't work saving page in designer.

@nijel
Copy link
Contributor

nijel commented Sep 4, 2017

Param Value
Error Type DataError
Error Message Failed to execute 'put' on 'IDBObjectStore': Evaluating the object store's key path yielded a value that is not a valid key.
Exception Type js
phpMyAdmin version 4.6.6
Incident count 212
Link Report#30818

This comment is posted automatically by phpMyAdmin's error-reporting-server.

@nijel
Copy link
Contributor

nijel commented Sep 4, 2017

Param Value
Error Type DataError
Error Message Failed to execute 'put' on 'IDBObjectStore': Evaluating the object store's key path yielded a value that is not a valid key.
Exception Type js
phpMyAdmin version 4.7.0-beta1
Incident count 1
Link Report#31148

This comment is posted automatically by phpMyAdmin's error-reporting-server.

@nijel
Copy link
Contributor

nijel commented Sep 4, 2017

Param Value
Error Type DataError
Error Message Failed to execute 'put' on 'IDBObjectStore': Evaluating the object store's key path yielded a value that is not a valid key.
Exception Type js
phpMyAdmin version 4.7.1
Incident count 3
Link Report#32617

This comment is posted automatically by phpMyAdmin's error-reporting-server.

@nijel
Copy link
Contributor

nijel commented Sep 4, 2017

Param Value
Error Type DataError
Error Message Failed to execute 'put' on 'IDBObjectStore': Evaluating the object store's key path yielded a value that is not a valid key.
Exception Type js
phpMyAdmin version 4.7.0
Incident count 8
Link Report#31669

This comment is posted automatically by phpMyAdmin's error-reporting-server.

@nijel
Copy link
Contributor

nijel commented Sep 4, 2017

Param Value
Error Type DataError
Error Message Data provided to an operation does not meet requirements.
Exception Type js
phpMyAdmin version 4.5.2
Incident count 2
Link Report#31416

This comment is posted automatically by phpMyAdmin's error-reporting-server.

@nijel
Copy link
Contributor

nijel commented Sep 4, 2017

Param Value
Error Type DataError
Error Message Data provided to an operation does not meet requirements.
Exception Type js
phpMyAdmin version 4.6.6
Incident count 1
Link Report#31435

This comment is posted automatically by phpMyAdmin's error-reporting-server.

@nijel
Copy link
Contributor

nijel commented Sep 4, 2017

Param Value
Error Type DataError
Error Message Data provided to an operation does not meet requirements.
Exception Type js
phpMyAdmin version 4.5.5.1
Incident count 1
Link Report#33354

This comment is posted automatically by phpMyAdmin's error-reporting-server.

@nijel
Copy link
Contributor

nijel commented Sep 4, 2017

Param Value
Error Type DataError
Error Message Data provided to an operation does not meet requirements.
Exception Type js
phpMyAdmin version 4.7.2
Incident count 228
Link Report#34442

This comment is posted automatically by phpMyAdmin's error-reporting-server.

@nijel
Copy link
Contributor

nijel commented Sep 4, 2017

Param Value
Error Type DataError
Error Message Data provided to an operation does not meet requirements.
Exception Type js
phpMyAdmin version 4.7.3
Incident count 7
Link Report#35057

This comment is posted automatically by phpMyAdmin's error-reporting-server.

@nijel
Copy link
Contributor

nijel commented Sep 4, 2017

Param Value
Error Type DataError
Error Message Data provided to an operation does not meet requirements.
Exception Type js
phpMyAdmin version 4.7.4
Incident count 1
Link Report#35504

This comment is posted automatically by phpMyAdmin's error-reporting-server.

@kryvnus
Copy link

kryvnus commented Nov 23, 2017

I would like to point out that I was having this issue and reported it using the phpMyAdmin internal bug report feature. But then I also noticed I had the error "The phpMyAdmin configuration storage is not completely configured, some extended features have been deactivated. Find out why. Or alternately go to 'Operations' tab of any database to set it up there." After following the steps to resolve that error I was then able to save pages in the designer.

@nijel
Copy link
Contributor

nijel commented Nov 27, 2017

AFAIR I was getting this error even with completely configured configuration storage...

@williamdes
Copy link
Member

Uncaught DOMException: Failed to execute 'put' on 'IDBObjectStore': Evaluating the object store's key path yielded a value that is not a valid key.
    at Object.designerDB.addObject (http://williamdes.local/pma/4.8.4/js/designer/database.js?v=4.8.4:104:32)
    at Create_new_page (http://williamdes.local/pma/4.8.4/js/designer/page.js?v=4.8.4:45:23)
    at Save_to_new_page (http://williamdes.local/pma/4.8.4/js/designer/page.js?v=4.8.4:13:5)
    at submitSaveDialogAndClose (http://williamdes.local/pma/4.8.4/js/designer/move.js?v=4.8.4:745:9)
    at HTMLFormElement.<anonymous> (http://williamdes.local/pma/4.8.4/js/designer/move.js?v=4.8.4:780:13)
    at HTMLFormElement.new_func (http://williamdes.local/pma/4.8.4/js/error_report.js?v=4.8.4:248:33)
    at HTMLFormElement.dispatch (http://williamdes.local/pma/4.8.4/js/vendor/jquery/jquery.min.js?v=4.8.4:2:41772)
    at HTMLFormElement.$event.dispatch (http://williamdes.local/pma/4.8.4/js/vendor/jquery/jquery.event.drag-2.2.js?v=4.8.4:374:19)
    at HTMLFormElement.y.handle (http://williamdes.local/pma/4.8.4/js/vendor/jquery/jquery.min.js?v=4.8.4:2:39791)

@Adwin-Jason
Copy link

Adwin-Jason commented Feb 22, 2019

Two years since the initial bug report and this is still a major problem. Has there been no resolution yet?

Error occurs when clicking either "save page" or "save page as".

Report

{
    "pma_version": "4.8.4",
    "browser_name": "FIREFOX",
    "browser_version": "65.0",
    "user_os": "Win",
    "server_software": "nginx/1.13.3",
    "user_agent_string": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:65.0) Gecko/20100101 Firefox/65.0",
    "locale": "en",
    "configuration_storage": "disabled",
    "php_version": "5.6.39",
    "exception_type": "js",
    "exception": {
        "mode": "stack",
        "name": "DataError",
        "message": "Data provided to an operation does not meet requirements.",
        "stack": [
            {
                "func": "designerDB.addObject",
                "line": "104",
                "column": "23",
                "uri": "index.php?v=4.8.4",
                "scriptname": "index.php"
            },
            {
                "func": "Create_new_page",
                "line": "45",
                "column": "5",
                "uri": "index.php?v=4.8.4",
                "scriptname": "index.php"
            },
            {
                "func": "Save_to_new_page",
                "line": "13",
                "column": "5",
                "uri": "index.php?v=4.8.4",
                "scriptname": "index.php"
            },
            {
                "func": "submitSaveDialogAndClose",
                "line": "745",
                "column": "9",
                "uri": "index.php?v=4.8.4",
                "scriptname": "index.php"
            },
            {
                "func": "Save3/<",
                "line": "780",
                "column": "13",
                "uri": "index.php?v=4.8.4",
                "scriptname": "index.php"
            },
            {
                "func": "new_func",
                "line": "248",
                "column": "28",
                "uri": "index.php?v=4.8.4",
                "scriptname": "index.php"
            },
            {
                "func": "dispatch",
                "line": "2",
                "column": "41720",
                "uri": "index.php?v=4.8.4",
                "scriptname": "index.php"
            },
            {
                "func": "$event.dispatch",
                "line": "374",
                "column": "9",
                "uri": "index.php?v=4.8.4",
                "scriptname": "index.php"
            },
            {
                "func": "add/y.handle",
                "line": "2",
                "column": "39774",
                "uri": "index.php?v=4.8.4",
                "scriptname": "index.php"
            },
            {
                "func": "trigger",
                "line": "2",
                "column": "69549",
                "uri": "index.php?v=4.8.4",
                "scriptname": "index.php"
            },
            {
                "func": "trigger/<",
                "line": "2",
                "column": "70138",
                "uri": "index.php?v=4.8.4",
                "scriptname": "index.php"
            },
            {
                "func": "each",
                "line": "2",
                "column": "2571",
                "uri": "index.php?v=4.8.4",
                "scriptname": "index.php"
            },
            {
                "func": "each",
                "line": "2",
                "column": "1238",
                "uri": "index.php?v=4.8.4",
                "scriptname": "index.php"
            },
            {
                "func": "trigger",
                "line": "2",
                "column": "70117",
                "uri": "index.php?v=4.8.4",
                "scriptname": "index.php"
            },
            {
                "func": "jQuery.fn[name]",
                "line": "479",
                "column": "4",
                "uri": "index.php?v=4.8.4",
                "scriptname": "index.php"
            },
            {
                "func": "Save3/button_options[PMA_messages.strGo]",
                "line": "765",
                "column": "13",
                "uri": "index.php?v=4.8.4",
                "scriptname": "index.php"
            },
            {
                "func": "_createButtons/

The report seems to cut off after that point and is interrupted by a lovely checkbox with "send report automatically"...

@williamdes
Copy link
Member

Follow #14945 (comment) to reproduce the issue

Report

{
    "pma_version": "4.8.6-dev",
    "browser_name": "CHROME",
    "browser_version": "72.0.3626.120",
    "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/72.0.3626.120 Safari/537.36 Vivaldi/2.3.1440.57",
    "locale": "fr",
    "configuration_storage": "disabled",
    "php_version": "7.2.14-1+0~20190113100742.14+stretch~1.gbpd83c69",
    "exception_type": "js",
    "exception": {
        "mode": "stack",
        "name": "DataError",
        "message": "Failed to execute 'put' on 'IDBObjectStore': Evaluating the object store's key path yielded a value that is not a valid key.",
        "stack": [
            {
                "func": "Object.designerDB.addObject",
                "line": "104",
                "column": "32",
                "uri": "index.php?v=4.8.6-dev",
                "scriptname": "index.php"
            },
            {
                "func": "Create_new_page",
                "line": "45",
                "column": "23",
                "uri": "index.php?v=4.8.6-dev",
                "scriptname": "index.php"
            },
            {
                "func": "Save_to_new_page",
                "line": "13",
                "column": "5",
                "uri": "index.php?v=4.8.6-dev",
                "scriptname": "index.php"
            },
            {
                "func": "submitSaveDialogAndClose",
                "line": "745",
                "column": "9",
                "uri": "index.php?v=4.8.6-dev",
                "scriptname": "index.php"
            },
            {
                "func": "HTMLFormElement.",
                "line": "780",
                "column": "13",
                "uri": "index.php?v=4.8.6-dev",
                "scriptname": "index.php"
            },
            {
                "func": "HTMLFormElement.new_func",
                "line": "248",
                "column": "33",
                "uri": "index.php?v=4.8.6-dev",
                "scriptname": "index.php"
            },
            {
                "func": "HTMLFormElement.dispatch",
                "line": "2",
                "column": "41772",
                "uri": "index.php?v=4.8.6-dev",
                "scriptname": "index.php"
            },
            {
                "func": "HTMLFormElement.$event.dispatch",
                "line": "374",
                "column": "19",
                "uri": "index.php?v=4.8.6-dev",
                "scriptname": "index.php"
            },
            {
                "func": "HTMLFormElement.y.handle",
                "line": "2",
                "column": "39791",
                "uri": "index.php?v=4.8.6-dev",
                "scriptname": "index.php"
            },
            {
                "func": "Object.trigger",
                "line": "2",
                "column": "69551",
                "uri": "index.php?v=4.8.6-dev",
                "scriptname": "index.php"
            }
        ],
        "uri": "index.php?"
    },
    "script_name": "index.php",
    "microhistory": null
}

@williamdes
Copy link
Member

Param Value
Error Type DataError
Error Message Data provided to an operation does not meet requirements.
Exception Type js
phpMyAdmin version 4.8.4
Incident count 130
Link Report#54996

This comment is posted automatically by phpMyAdmin's error-reporting-server.

@williamdes williamdes self-assigned this Apr 26, 2019
williamdes added a commit to williamdes/phpmyadmintest that referenced this issue Apr 26, 2019
Signed-off-by: William Desportes <williamdes@wdes.fr>
@williamdes williamdes added this to the 4.8.6 milestone Apr 26, 2019
@williamdes williamdes moved this from To Do to Done in Designer Apr 27, 2019
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 22, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug A problem or regression with an existing feature
Projects
Development

No branches or pull requests

6 participants