本文介绍了WordPress 网络安装错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

重新安装 wordpress 多站点

Reinstalling wordpress multisite

警告:检测到现有的 wordpress 网络.

我尝试了多种解决方案,包括删除表、重置 .htaccess 和完全重置 wp_config.第一次安装正常,但是当我注销并登录时出现此错误.

I tried multiple solutions including dropping tables, resetting .htaccess and completely resetting wp_config. It installs fine the first time but when I log out and log in I get this error.

推荐答案

按此顺序操作

1) 将您的 wp-config.php 文件重置回其原始状态,删除任何 MULTISITE 引用

1) Reset your wp-config.php file back to its original state, remove any MULTISITE references

2) 删除.htaccess文件或临时移动

2) Delete the .htaccess file or move it temporarily

3) 从您的数据库中删除以下表格,如果您不习惯直接修改表格数据,请使用 phpMyAdmin 之类的工具

3) Drop the following tables from your DB, use a tool like phpMyAdmin if you are not comfortable directly modifying table data

  • wp_blogs
  • wp_blog_versions
  • wp_registration_log
  • wp_site
  • wp_sitemeta
  • wp_signups
  • wp_sitecategories

4) 注销并重新登录您的站点并启动网络设置.

4) Log out and Log back into your site and initiate the Network Setup.

5) 使用复制粘贴的数据重新创建 .htaccess 文件

5) Recreate the .htaccess file with the copy pasted data

6) 修改 wp-config.php 文件,记得把那些行粘贴在它说的行上方

6) Modify the wp-config.php file, remember to paste those lines above the line where it says

/* 就是这样,停止编辑!快乐的博客.*/

/* That's all, stop editing! Happy blogging. */

第 6 步很重要,见下文:

Step 6 is important see below :

http://premium.wpmudev.org/forums/topic/multisite-not-working-warning-an-existing-wordpress-network-was-detected

另请阅读:

http://blog.ashfame.com/2010/07/remove-wordpress-multisite-data/

这篇关于WordPress 网络安装错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-27 16:38