简体   繁体   English

更新到PHP 7.2.0后phpmyadmin中的错误

[英]error in phpmyadmin after updating to PHP 7.2.0

Recently I update my PHP version to 7.2.0 . 最近我将我的PHP版本更新到7.2.0。 When I open my phpmyadmin I have face this warning every time when i open any table in database. 当我打开我的phpmyadmin时,每次打开数据库中的任何表时都会遇到此警告。 phpmyadmin中的错误

If anyone have know about it, Let me know. 如果有人知道,请告诉我。 Thanks in advance. 提前致谢。

I have the same issue. 我有同样的问题。 Take care about the error. 小心错误。 If you see the image the warning are on the line 601, in my case was on line 613. 如果您看到图像警告在第601行,我的情况是在第613行。

To solve edit sql.lib.php 解决编辑sql.lib.php

change this line: 改变这一行:

|| (count($analyzed_sql_results['select_expr'] == 1)

By: 通过:

|| (count($analyzed_sql_results['select_expr']) == 1

Regards and happy new year 2019 ! 关心和新年快乐2019年!

https://launchpad.net/~nijel/+archive/ubuntu/phpmyadmin https://launchpad.net/~nijel/+archive/ubuntu/phpmyadmin

Note: This repository is currently a bit behind as I struggle to find time to update it to 4.7 series, see https://bugs.debian.org/879741 . 注意:此存储库目前有点落后,因为我很难抽出时间将其更新为4.7系列,请参阅https://bugs.debian.org/879741 There are no severe security vulnerabilities in the 4.6.6 currently packaged here ( https://www.phpmyadmin.net/security/PMASA-2017-9/ applies only to 4.7 series). 目前打包的4.6.6中没有严重的安全漏洞( https://www.phpmyadmin.net/security/PMASA-2017-9/仅适用于4.7系列)。 The only major problem is that 4.6.6 doesn't work properly with PHP 7.2. 唯一的主要问题是4.6.6与PHP 7.2无法正常工作。

It will have this error for php7.2 at the moment. 目前它将在php7.2中出现此错误。

You can manually download/unzip the phpmyadmin and install in your server. 您可以手动下载/解压缩phpmyadmin并安装在您的服务器中。

This #601 error was also tied to #532 line error too in my case. 在我的情况下, #601错误也与#532行错误有关。 The additional #532 complication is phpmyadmin's attempt to try to count some parameter, invalid in newer PHP versions as they can't use count() or sizeof() with an array type. 额外的#532复杂化是phpmyadmin试图计算一些参数的尝试,在较新的PHP版本中无效,因为它们不能将count()sizeof()array类型一起使用。

Edit /usr/share/phpmyadmin/libraries/plugin_interface.lib.php line #532 in whatever text editor you please. 在任何文本编辑器中编辑/usr/share/phpmyadmin/libraries/plugin_interface.lib.php line #532 find this erronous code: 找到这个错误的代码:

if ($options != null && count($options) > 0) {

Force parameter to array is easy way to solve this: 强制参数到数组是解决这个问题的简单方法:

if ($options != null && count((array)$options) > 0) {

big thanks @chaloemphonthipkasorn for the suggestions 非常感谢@chaloemphonthipkasorn的建议

if you have an existing or old version of phpMyAdmin configuration on your computer, always check if you already remove or make sure that the old files/history of the config is fully or successfully deleted/already empty in order for your newly installed/updated config to work properly with no any bugs or errors. 如果您的计算机上有现有或旧版本的phpMyAdmin配置,请始终检查您是否已删除或确保配置的旧文件/历史记录已完全或已成功删除/已为空以便新安装/更新配置正常工作,没有任何错误或错误。 After you make sure that the old file configuration is already clean, your existing version of phpMyAdmin will be replaced by the version you've configured. 确保旧文件配置已经清除后,现有版本的phpMyAdmin将替换为您配置的版本。

For more information. 欲获得更多信息。 See this link: https://docs.phpmyadmin.net/en/latest/setup.html#upgrading-from-an-older-version 请看这个链接: https//docs.phpmyadmin.net/en/latest/setup.html#upgrading-from-an-older-version

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM