【问题标题】:"Deprecation Notice" error in PhpMyAdmin with ubuntu 20.04, php8.0使用 ubuntu 20.04、php8.0 在 PhpMyAdmin 中出现“弃用通知”错误
【发布时间】:2021-04-21 01:12:29
【问题描述】:

登录 phpmyadmin 时出现错误

./libraries/classes/Di/ReflectorItem.php#82 中的弃用通知 方法 ReflectionParameter::getClass() 已弃用

回溯

./libraries/classes/Di/ReflectorItem.php#50: PhpMyAdmin\Di\ReflectorItem->_resolveArgs( 大批, 大批, ) ./libraries/classes/Di/FactoryItem.php#27: PhpMyAdmin\Di\ReflectorItem->invoke(array) ./libraries/classes/Di/Container.php#62: PhpMyAdmin\Di\FactoryItem->get(array) ./libraries/classes/Di/AliasItem.php#44: PhpMyAdmin\Di\Container->get( 字符串 'PhpMyAdmin\Controllers\Database\DatabaseStructureController', 大批, ) ./libraries/classes/Di/Container.php#62: PhpMyAdmin\Di\AliasItem->get(array) ./db_structure.php#35: PhpMyAdmin\Di\Container->get( 字符串“数据库结构控制器”, 大批, )

【问题讨论】:

    标签: phpmyadmin


    【解决方案1】:

    您还可以在 config.inc.php 中添加这一行来禁用通知和警告:

    $cfg['SendErrorReports'] = 'never';
    

    来源:PMA Docs

    【讨论】:

      【解决方案2】:

      这很可能是由于使用 PHP 8 和 PHPMyAdmin

      【讨论】:

      • 这不是解决方案。我正在使用 php v8,因为我的应用程序需要它。
      • @HarshalLonare 将 phpMyAdmin 升级到最新版本。它对我有用:)
      【解决方案3】:

      因为 5.0 系列已经结束,5.1 即将推出,所以这个问题不会被修复。 5.1 有一个新的 DI 系统,输出中提到的类不再存在。 但是您可以下载开发中的最新版本(phpMyAdmin 5.1+snapshot),DI 错误应该消失了 :)

      https://github.com/phpmyadmin/phpmyadmin/issues/16268

      【讨论】:

        猜你喜欢
        • 2022-07-09
        • 1970-01-01
        • 2020-06-16
        • 2023-02-19
        • 2020-11-08
        • 2022-11-28
        • 2020-08-09
        • 2018-03-15
        • 2021-11-30
        相关资源
        最近更新 更多