【问题标题】:PHP Fatal Error with PHP 7 and phpMyAdminPHP 7 和 phpMyAdmin 的 PHP 致命错误
【发布时间】:2016-08-16 23:59:05
【问题描述】:

我正在尝试使用 PHP 7 在我的 Ubuntu 服务器上安装 phpMyAdmin,我已经完成了有关使用 PHP 7 安装 pMA 的指南:stackoverflow topic

但是当我尝试访问 /phpmyadmin 时,我得到 500 错误,并且我在错误日志中有这个日志:

[Sat Apr 23 12:44:49.795508 2016] [:error] [pid 18387] [client 10.8.0.7:41840] PHP Fatal error: Uncaught Error: Call to undefined function __() in /usr/share/phpmyadmin/libraries/sanitizing.lib.php:135\nStack trace:\n#0 /usr/share/phpm$

我也无法访问 setup 文件夹或任何与 pMA 相关的东西,我仍然得到同样的东西。我对这个问题进行了研究,但似乎这个问题是新的。我该怎么办?

【问题讨论】:

  • 你要安装什么版本的phpMyAdmin
  • @RiggsFolly 最新的4.6.0,从官网下载的。

标签: php mysql apache ubuntu phpmyadmin


【解决方案1】:

我遇到了同样的问题,我解决了:

apt install php7.0-mbstring
service apache2 restart

【讨论】:

  • 不起作用。 E: 找不到包 php7.0-mbstring E: 找不到任何包 glob 'php7.0-mbstring' E: 找不到任何包 regex 'php7.0-mbstring
  • 不应该是'apt-get'吗?
  • 应该是sudo apt-get install php7.0-mbstring。在 Ubuntu 上为我做了诀窍。
猜你喜欢
  • 2015-01-18
  • 1970-01-01
  • 1970-01-01
  • 2021-08-24
  • 2018-04-04
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多