При добавлении данных с формы регистрации сайта, подключение к база данных происходит. скрипт добавления данных формы в таблицу работает без ошибок, но данные в базу данных mysql не добавляются. Обзор phpmyadmin выдаёт: Отображение строк 0 - 0 (1 всего, Запрос занял 0.0000 сек.)
Но внизу окна phpmyadmin высвечивается надпись следующего содержания:
"Произошла фатальная ошибка JavaScript. Хотите отправить отчёт об ошибке?"
Отчёт об ошибке:
pma_version: "4.4.15.5"
browser_name: "CHROME"
browser_version: "44.0.2403.130"
user_os: "Win"
server_software: "Apache"
user_agent_string: "Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.130 Safari/537.36"
locale: "ru"
configuration_storage: "disabled"
php_version: "5.3.29"
exception_type: "js"
exception[mode]: "stack"
exception[name]: "TypeError"
exception[message]: "Cannot read property '0' of null"
exception[stack][0][line]: "235"
exception[stack][0][func]: ""
exception[stack][0][context][0]: " lastException = null;"
exception[stack][0][context][1]: " notifyHandlers.apply(null, [stack, null].concat(args));"
exception[stack][0][context][2]: " }"
exception[stack][0][context][3]: " }, (stack.incomplete ? 2000 : 0));"
exception[stack][0][context][4]: ""
exception[stack][0][context][5]: " throw ex; // re-throw to propagate to the top level (and cause wind//..."
exception[stack][0][context][6]: " }"
exception[stack][0][context][7]: ""
exception[stack][0][context][8]: " report.subscribe = subscribe;"
exception[stack][0][context][9]: " report.unsubscribe = unsubscribe;"
exception[stack][0][context][10]: " return report;"
exception[stack][0][column]: ""
exception[stack][0][filename]: "tracekit/tracekit.js"
exception[stack][1][func]: "getFieldValidators"
exception[stack][1][line]: "302"
exception[stack][1][column]: "40"
exception[stack][1][context][0]: " * @return array of [function, parameters to be passed to function]"
exception[stack][1][context][1]: " */"
exception[stack][1][context][2]: "function getFieldValidators(field_id, onKeyUpOnly)"
exception[stack][1][context][3]: "{"
exception[stack][1][context][4]: " // look for field bound validator"
exception[stack][1][context][5]: " var name = field_id.match(/[^-]+$/)[0];"
exception[stack][1][context][6]: " if (typeof validators._field[name] != 'undefined') {"
exception[stack][1][context][7]: " return [[validators._field[name], null]];"
exception[stack][1][context][8]: " }"
exception[stack][1][context][9]: ""
exception[stack][1][context][10]: " // look for registered validators"
exception[stack][1][filename]: "config.js"
exception[stack][2][func]: "validate_field"
exception[stack][2][line]: "418"
exception[stack][2][column]: "21"
exception[stack][2][context][0]: "{"
exception[stack][2][context][1]: " var args, result;"
exception[stack][2][context][2]: " var $field = $(field);"
exception[stack][2][context][3]: " var field_id = $field.attr('id');"
exception[stack][2][context][4]: " errors[field_id] = [];"
exception[stack][2][context][5]: " var functions = getFieldValidators(field_id, isKeyUp);"
exception[stack][2][context][6]: " for (var i = 0; i < functions.length; i++) {"
exception[stack][2][context][7]: " if (typeof functions[i][1] !== 'undefined' && functions[i][1] !== n//..."
exception[stack][2][context][8]: " args = functions[i][1].slice(0);"
exception[stack][2][context][9]: " } else {"
exception[stack][2][context][10]: " args = [];"
exception[stack][2][filename]: "config.js"
exception[stack][3][func]: "HTMLDocument.<anonymous>"
exception[stack][3][line]: "511"
exception[stack][3][column]: "37"
exception[stack][3][context][0]: " var $check_page_refresh = $('#check_page_refresh');"
exception[stack][3][context][1]: " if ($check_page_refresh.length === 0 || $check_page_refresh.val() == '1') {"
exception[stack][3][context][2]: " // run all field validators"
exception[stack][3][context][3]: " var errors = {};"
exception[stack][3][context][4]: " for (var i = 0; i < $elements.length; i++) {"
exception[stack][3][context][5]: " validate_field($elements[i], false, errors);"
exception[stack][3][context][6]: " }"
exception[stack][3][context][7]: " // run all fieldset validators"
exception[stack][3][context][8]: " $('fieldset').each(function () {"
exception[stack][3][context][9]: " validate_fieldset(this, false, errors);"
exception[stack][3][context][10]: " });"
exception[stack][3][filename]: "config.js"
exception[stack][4][func]: "HTMLDocument.new_func"
exception[stack][4][line]: "279"
exception[stack][4][column]: "33"
exception[stack][4][context][0]: " */"
exception[stack][4][context][1]: " wrap_function: function (func) {"
exception[stack][4][context][2]: " if (!func.wrapped) {"
exception[stack][4][context][3]: " var new_func = function () {"
exception[stack][4][context][4]: " try {"
exception[stack][4][context][5]: " return func.apply(this, arguments);"
exception[stack][4][context][6]: " } catch (x) {"
exception[stack][4][context][7]: " TraceKit.report(x);"
exception[stack][4][context][8]: " }"
exception[stack][4][context][9]: " };"
exception[stack][4][context][10]: " new_func.wrapped = true;"
exception[stack][4][filename]: "error_report.js"
exception[stack][5][func]: "HTMLDocument.m.event.dispatch"
exception[stack][5][line]: "3"
exception[stack][5][column]: "8436"
exception[stack][5][context][0]: "/*! jQuery v1.11.1 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/li//..."
exception[stack][5][context][1]: "!function(a,b){"object"==typeof module&&"object"==typeof module.exports?mod//..."
exception[stack][5][context][2]: "if(k&&j[k]&&(e||j[k].data)||void 0!==d||"string"!=typeof b)return k||(k=i?a//..."
exception[stack][5][context][3]: "},cur:function(){var a=Zb.propHooks[this.prop];return a&&a.get?a.get(this)://..."
exception[stack][5][context][4]: ";"
exception[stack][5][context][5]: ""
exception[stack][5][context][6]: "function sprintf() {"
exception[stack][5][context][7]: "/*"
exception[stack][5][filename]: "jquery/jquery-1.11.1.min.js"
exception[stack][6][func]: "HTMLDocument.$event.dispatch"
exception[stack][6][line]: "374"
exception[stack][6][column]: "19"
exception[stack][6][context][0]: "$event.dispatch = function( event ){"
exception[stack][6][context][1]: " if ( $.data( this, "suppress."+ event.type ) - new Date().getTime() > 0 ){"
exception[stack][6][context][2]: " $.removeData( this, "suppress."+ event.type );"
exception[stack][6][context][3]: " return;"
exception[stack][6][context][4]: " }"
exception[stack][6][context][5]: " return $dispatch.apply( this, arguments );"
exception[stack][6][context][6]: "};"
exception[stack][6][context][7]: ""
exception[stack][6][context][8]: "// event fix hooks for touch events..."
exception[stack][6][context][9]: "var touchHooks = "
exception[stack][6][context][10]: "$event.fixHooks.touchstart = "
exception[stack][6][filename]: "jquery/jquery.event.drag-2.2.js"
exception[stack][7][func]: "HTMLDocument.r.handle"
exception[stack][7][line]: "3"
exception[stack][7][column]: "5139"
exception[stack][7][context][0]: "/*! jQuery v1.11.1 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/li//..."
exception[stack][7][context][1]: "!function(a,b){"object"==typeof module&&"object"==typeof module.exports?mod//..."
exception[stack][7][context][2]: "if(k&&j[k]&&(e||j[k].data)||void 0!==d||"string"!=typeof b)return k||(k=i?a//..."
exception[stack][7][context][3]: "},cur:function(){var a=Zb.propHooks[this.prop];return a&&a.get?a.get(this)://..."
exception[stack][7][context][4]: ";"
exception[stack][7][context][5]: ""
exception[stack][7][context][6]: "function sprintf() {"
exception[stack][7][context][7]: "/*"
exception[stack][7][filename]: "jquery/jquery-1.11.1.min.js"
exception[stack][8][func]: "Object.m.event.trigger"
exception[stack][8][line]: "3"
exception[stack][8][column]: "7537"
exception[stack][8][context][0]: "/*! jQuery v1.11.1 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/li//..."
exception[stack][8][context][1]: "!function(a,b){"object"==typeof module&&"object"==typeof module.exports?mod//..."
exception[stack][8][context][2]: "if(k&&j[k]&&(e||j[k].data)||void 0!==d||"string"!=typeof b)return k||(k=i?a//..."
exception[stack][8][context][3]: "},cur:function(){var a=Zb.propHooks[this.prop];return a&&a.get?a.get(this)://..."
exception[stack][8][context][4]: ";"
exception[stack][8][context][5]: ""
exception[stack][8][context][6]: "function sprintf() {"
exception[stack][8][context][7]: "/*"
exception[stack][8][filename]: "jquery/jquery-1.11.1.min.js"
exception[stack][9][func]: "HTMLDocument.<anonymous>"
exception[stack][9][line]: "3"
exception[stack][9][column]: "15404"
exception[stack][9][context][0]: "/*! jQuery v1.11.1 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/li//..."
exception[stack][9][context][1]: "!function(a,b){"object"==typeof module&&"object"==typeof module.exports?mod//..."
exception[stack][9][context][2]: "if(k&&j[k]&&(e||j[k].data)||void 0!==d||"string"!=typeof b)return k||(k=i?a//..."
exception[stack][9][context][3]: "},cur:function(){var a=Zb.propHooks[this.prop];return a&&a.get?a.get(this)://..."
exception[stack][9][context][4]: ";"
exception[stack][9][context][5]: ""
exception[stack][9][context][6]: "function sprintf() {"
exception[stack][9][context][7]: "/*"
exception[stack][9][filename]: "jquery/jquery-1.11.1.min.js"
exception[stack][10][func]: "Function.m.extend.each"
exception[stack][10][line]: "2"
exception[stack][10][column]: "2973"
exception[stack][10][context][0]: "/*! jQuery v1.11.1 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/li//..."
exception[stack][10][context][1]: "!function(a,b){"object"==typeof module&&"object"==typeof module.exports?mod//..."
exception[stack][10][context][2]: "if(k&&j[k]&&(e||j[k].data)||void 0!==d||"string"!=typeof b)return k||(k=i?a//..."
exception[stack][10][context][3]: "},cur:function(){var a=Zb.propHooks[this.prop];return a&&a.get?a.get(this)://..."
exception[stack][10][context][4]: ";"
exception[stack][10][context][5]: ""
exception[stack][10][context][6]: "function sprintf() {"
exception[stack][10][filename]: "jquery/jquery-1.11.1.min.js"
exception[useragent]: "Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.130 Safari/537.36"
exception[incomplete]: "false"
exception[partial]: "true"
exception[uri]: "index.php?target=sql.php"
script_name: "index.php"
microhistory[current_index]: "0"
Возникновение проблемы и способы устранения найти не удаётся.,нужна помощь..
Спасибо... Mihal/