WordPress:帖子/页面列表未显示在 wp-admin 面板中

Jos*_*ree 1 wordpress

我有点引起了一个奇怪的问题。我将客户端移至另一台服务器。升级了wordpress+数据库。我几乎不知道,由于配置具有硬编码的 mysql IP 地址,我实际上是在更新以前服务器上的数据库。

所以我在配置中解决了这个问题,然后它要求更新数据库。

现在它不会在管理中显示帖子/页面,但计数仍然显示在“所有”“已发布”链接中。

数据库更新中是否有未设置的位或“状态”?阻止这些内容在管理员中显示的东西。

它们在首页上显示得很好。

任何帮助,将不胜感激!

更新:升级后创建了一个新帖子,计数增加到 13,但仍然显示“无帖子”。:-\

更新:链接和评论都显示一个巨大的列表。帖子、页面和媒体不显示。

也许这与 WordPress 添加的 post_author 索引有关?我已验证该用户是否存在并具有匹配的 ID。:-\ 示例截图 示例截图 2 示例截图 3

小智 5

我们遇到了完全相同的问题,但仅限于网站的页面。

修复步骤...

  1. 编辑 wp-config.php 添加

    define('WP_ALLOW_REPAIR', true);
    
    Run Code Online (Sandbox Code Playgroud)
  2. 点击数据库修复 URL

    HOSTNAME/wp-admin/maint/repair.php
    
    Run Code Online (Sandbox Code Playgroud)

结果

我的数据库有点混乱,所以我得到以下输出......

    wp_usermeta: 5 clients are using or haven't closed the table properly
    wp_posts: 7 clients are using or haven't closed the table properly
    wp_options: 8 clients are using or haven't closed the table properly
    wp_postmeta: 7 clients are using or haven't closed the table properly
    wp_terms: 1 client is using or hasn't closed the table properly
    wp_term_taxonomy: 3 clients are using or haven't closed the table properly
    wp_term_relationships: 3 clients are using or haven't closed the table properly
Run Code Online (Sandbox Code Playgroud)