If you encounter PHPMyAdmin error: A fatal JavaScript error has occurred. Would you like to send an error report? during an export of a database, you may need to disable your browser extensions.
The example below illustrates the use of Google Chrome, which has numerous extensions installed. The reason for this is that one of the extensions may be interfering or conflicting with JavaScripts that may be needed when executing a task, for instance, when exporting a database from PHPMyAdmin, which is browser-based.
You would normally need to export a database during your regular website maintenance or website database transfer, or migration by securing a backup of your database for CMS such as WordPress, Drupal, and similar website building frameworks.
Quick Fix and Solution
If you have a lot of extensions installed, you may use extensions that disable other extensions on demand by turning them on and off simultaneously without the need to disable one by one. Such extensions include (our favorites):
The error that you may encounter will look something like this:
This report automatically includes data about the error and information about relevant configuration settings. It will be sent to the phpMyAdmin team for debugging the error.
Can you tell us the steps leading to this error? It decisively helps in debugging:
You may examine the data in the error report:
{
"pma_version": "5.2.2",
"browser_name": "CHROME",
"browser_version": "137.0.0.0",
"user_os": "Win",
"server_software": "cpsrvd 11.118.0.44",
"user_agent_string": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36",
"locale": "en",
"configuration_storage": "disabled",
"php_version": "8.3.20",
"script_name": "index.php",
"exception_type": "js",
"exception": {
"mode": "stack",
"name": "TypeError",
"message": "Cannot read properties of undefined (reading 'forEach')",
"stack": [
{
"func": "Array.reduce",
"line": "",
"column": "",
"context": "",
"uri": "index.php?",
"scriptname": "index.php"
},
{
"func": "e",
"line": "1",
"column": "188",
"context": "",
"uri": "js/js.js?",
"scriptname": "js/js.js"
}
],
"uri": "index.php?route=%2Fdatabase%2Fexport"
}
}
Automatically send report next time
