本地WordPress安装不会验证wp-cli校验和检查以及如何修复该问题。

时间:2015-01-22 作者:rkoller

我今天安装了wp cli,在测试时遇到了一个令人惊讶的问题。在“wp core verify checksums”上显示以下错误:

Warning: File doesn\'t verify against checksum: wp-includes/css/media-views.css
Warning: File doesn\'t verify against checksum: wp-includes/css/media-views.min.css
Warning: File doesn\'t verify against checksum: wp-includes/css/media-views-rtl.min.css
Warning: File doesn\'t verify against checksum: wp-includes/css/media-views-rtl.css
Warning: File doesn\'t verify against checksum: wp-includes/link-template.php
Warning: File doesn\'t verify against checksum: wp-includes/taxonomy.php
Warning: File doesn\'t verify against checksum: wp-admin/css/wp-admin-rtl.min.css
Warning: File doesn\'t verify against checksum: wp-admin/css/themes.css
Warning: File doesn\'t verify against checksum: wp-admin/css/wp-admin.min.css
Warning: File doesn\'t verify against checksum: wp-admin/css/themes-rtl.css
Warning: File doesn\'t verify against checksum: wp-admin/includes/update-core.php
Warning: File doesn\'t verify against checksum: wp-admin/user-edit.php
Error: WordPress install doesn\'t verify against checksums.
这些文件对于我在本地安装的wordpress都有所不同。每一个都是作为基础英语安装的,并在几天或几周后切换到德语本地化。我现在想知道如何修复这些不同的md5校验和。基本上,我可以下载4.1存档文件,只需更换wp admin和wp includes文件夹(与单独交换不同的文件相比,节省时间)。但我想知道我必须使用英语档案还是德语档案?因为我已经下载了这两个版本并进行了区分,但它们有所不同:

Only in /Users/myuser/Downloads/wordpressde: liesmich.html
Files /Users/myuser/Downloads/wordpressen/wp-admin/css/themes-rtl.css and /Users/myuser/Downloads/wordpressde/wp-admin/css/themes-rtl.css differ
Files /Users/myuser/Downloads/wordpressen/wp-admin/css/themes.css and /Users/myuser/Downloads/wordpressde/wp-admin/css/themes.css differ
Files /Users/myuser/Downloads/wordpressen/wp-admin/css/wp-admin-rtl.min.css and /Users/myuser/Downloads/wordpressde/wp-admin/css/wp-admin-rtl.min.css differ
Files /Users/myuser/Downloads/wordpressen/wp-admin/css/wp-admin.min.css and /Users/myuser/Downloads/wordpressde/wp-admin/css/wp-admin.min.css differ
Files /Users/myuser/Downloads/wordpressen/wp-admin/includes/update-core.php and /Users/myuser/Downloads/wordpressde/wp-admin/includes/update-core.php differ
Files /Users/myuser/Downloads/wordpressen/wp-admin/user-edit.php and /Users/myuser/Downloads/wordpressde/wp-admin/user-edit.php differ
Files /Users/myuser/Downloads/wordpressen/wp-config-sample.php and /Users/myuser/Downloads/wordpressde/wp-config-sample.php differ
Only in /Users/myuser/Downloads/wordpressde/wp-content: languages
Files /Users/myuser/Downloads/wordpressen/wp-includes/css/media-views-rtl.css and /Users/myuser/Downloads/wordpressde/wp-includes/css/media-views-rtl.css differ
Files /Users/myuser/Downloads/wordpressen/wp-includes/css/media-views-rtl.min.css and /Users/myuser/Downloads/wordpressde/wp-includes/css/media-views-rtl.min.css differ
Files /Users/myuser/Downloads/wordpressen/wp-includes/css/media-views.css and /Users/myuser/Downloads/wordpressde/wp-includes/css/media-views.css differ
Files /Users/myuser/Downloads/wordpressen/wp-includes/css/media-views.min.css and /Users/myuser/Downloads/wordpressde/wp-includes/css/media-views.min.css differ
Files /Users/myuser/Downloads/wordpressen/wp-includes/link-template.php and /Users/myuser/Downloads/wordpressde/wp-includes/link-template.php differ
Files /Users/myuser/Downloads/wordpressen/wp-includes/taxonomy.php and /Users/myuser/Downloads/wordpressde/wp-includes/taxonomy.php differ
Files /Users/myuser/Downloads/wordpressen/wp-includes/version.php and /Users/myuser/Downloads/wordpressde/wp-includes/version.php differ
在替换中建议的文件夹之前,我是否必须停用插件http://codex.wordpress.org/Updating_WordPress 或者激活维护模式已经足够了吗?

1 个回复
SO网友:PowerKiKi

我的类似问题通过

wp core download --force --locale=de_DE
wp core verify-checksums

结束

相关推荐

Wordpress Installation

首先,我不是技术人员,所以请对我好一点。我正在尝试安装Wordpress。我已经尽可能地遵循Wordpress的安装说明。但是,当我尝试在Wampserver上打开localhost时,会收到一条消息:网站无法显示我认为有一件事可能是错误的,那就是wp配置。php文件,我不知道在“MySQL数据库用户名”中放什么。我放了“root“如示例所示。有什么想法吗?