【发布时间】:2020-12-11 07:45:53
【问题描述】:
我正在开发一个 node.js 项目,但我使用 XAMPP 来托管我的数据库和 phpmyadmin,以便查看数据并对其进行管理。今天的问题是,每当我打开一个表时,它就会开始向我显示这个错误,如果它查询它,我的机器人就会崩溃,而它就是这个表。我用其他需要查询的命令进行了测试,但它们工作得很好。 谢谢!
Notice in .\libraries\classes\Display\Results.php#4439
Trying to access array offset on value of type null
Backtrace
.\libraries\classes\Display\Results.php#4197: PhpMyAdmin\Display\Results->_getSortedColumnMessage(
,
string '`tieBreakerMatchNeeded`',
)
.\libraries\classes\Sql.php#1666: PhpMyAdmin\Display\Results->getTable(
,
array,
array,
boolean true,
)
.\libraries\classes\Sql.php#1468: PhpMyAdmin\Sql->getHtmlForSqlQueryResultsTable(
,
string './themes/pmahomme/img/',
NULL,
array,
boolean false,
integer 0,
integer 0,
boolean true,
,
array,
boolean true,
)
.\libraries\classes\Sql.php#2250: PhpMyAdmin\Sql->getQueryResponseForNoResultsReturned(
array,
string 'torneos_wild_gaming',
string 'matches',
NULL,
integer 0,
,
NULL,
string './themes/pmahomme/img/',
NULL,
,
string 'SELECT * FROM `matches` ORDER BY `tieBreakerMatchNeeded` ASC ',
NULL,
)
.\libraries\classes\Sql.php#2100: PhpMyAdmin\Sql->executeQueryAndGetQueryResponse(
array,
boolean true,
string 'torneos_wild_gaming',
string 'matches',
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
string '',
string './themes/pmahomme/img/',
NULL,
NULL,
NULL,
string 'SELECT * FROM `matches` ORDER BY `tieBreakerMatchNeeded` ASC ',
NULL,
NULL,
)
.\sql.php#241: PhpMyAdmin\Sql->executeQueryAndSendQueryResponse(
array,
boolean true,
string 'torneos_wild_gaming',
string 'matches',
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
string '',
string './themes/pmahomme/img/',
NULL,
NULL,
NULL,
string 'SELECT * FROM `matches`',
NULL,
NULL,
)
【问题讨论】:
-
PD:我尝试从我的备份中复制它,但仍然失败。
-
这是PHP错误,需要出示相关的PHP脚本。
-
问题是我没有 PHP 错误,因为一切都在 nodejs 中完成。我将保留与该表交互的 nodejs 文件。 hastebin.com/xozikaqafi.js
标签: php mysql node.js phpmyadmin