WordPress: Debugging WPMU:修订间差异

来自站长百科
跳转至: 导航、​ 搜索
(新页面: If you are reading this, you may have been directed here by an error upon install. if that is the case, here's some things you can try to force a re-install. - delete the .htaccess file....)
 
无编辑摘要
第1行: 第1行:
If you are reading this, you may have been directed here by an error upon install. if that is the case, here's some things you can try to force a re-install.
If you are reading this, you may have been directed here by an error upon install. if that is the case, here's some things you can try to force a re-install.
如果你阅读这篇文章,你在安装过程中,可能遇到了问题。如果真的是这样,你可以遵循下面的一些步骤,重新安装。


- delete the .htaccess file. If you are on a cpanel host, an empty one keeps getting recreated automatically. Try going in through ftp and deleting it, then running the install.
- delete the .htaccess file. If you are on a cpanel host, an empty one keeps getting recreated automatically. Try going in through ftp and deleting it, then running the install.
-删除.htaccess文件。如果你在cpanel主机上,一个空主机能够保持不断地自动重建。试着仔细检查ftp并且将其删除,然后运行安装。
- check the database. Were any tables created? Drop them all and run the install again. *Only do this on a NEW install!!!* Also delete the created wp-config file.
- check the database. Were any tables created? Drop them all and run the install again. *Only do this on a NEW install!!!* Also delete the created wp-config file.


-检查数据库。是否创建了任何表格?去除这些表格,然后再次安装。*只有新安装的时候,才执行这个操作!!!*同时删除已创建的wp-config文件。
When you submit a [[WordPress:Reporting Bugs|bug report]], there are a few rules and guidelines to follow:
When you submit a [[WordPress:Reporting Bugs|bug report]], there are a few rules and guidelines to follow:
当你递交[[WordPress:Reporting Bugs|程序缺陷报告]]的时候,你需要遵循下面的一些规则和指南:


Please report problems using [[WordPress:WPMU Trac|Trac]] and remember to select "[[WordPress:WordPress MU|MU]] 1.0" as your milestone.
Please report problems using [[WordPress:WPMU Trac|Trac]] and remember to select "[[WordPress:WordPress MU|MU]] 1.0" as your milestone.
请使用[[WordPress:WPMU Trac|Trac]]报告程序缺陷并且记住选择"[[WordPress:WordPress MU|MU]] 1.0"作为你的里程碑。


Also please don't post files within the forum unless asked to do so. Since the forum software will occasionally cause problems with formatting or strip out parts of the code, it's best to place the code within your site as a *.txt or *.phps file and link to it from your post.  We all have the same files anyway, especially the .htaccess file so, it's rather moot.
Also please don't post files within the forum unless asked to do so. Since the forum software will occasionally cause problems with formatting or strip out parts of the code, it's best to place the code within your site as a *.txt or *.phps file and link to it from your post.  We all have the same files anyway, especially the .htaccess file so, it's rather moot.
如果你没有被要求,不要在论坛上粘贴文件。因为论坛软件有时候会导致格式问题并且去除部分代码,最好将代码放在你的站点上,作为*.txt 或者 *.phps文件或者从你的文章上链接代码。我们都有同样地文件,特别是.htaccess文件,没有实际意义。


Always give specifics when you post.  Changing text doesn't allow others to see if maybe you have an error with what you have in there. (Feel free to change any passwords though of course.)
Always give specifics when you post.  Changing text doesn't allow others to see if maybe you have an error with what you have in there. (Feel free to change any passwords though of course.)
当你发表的时候,提供一些详细信息。如果文本有错误,更改文本,不要让其他人看见。(当然,可以自由地更改任何密码。)


Include the following in the description of the problem:
Include the following in the description of the problem:
在问题描述中,包含以下内容:


* Is VHOST true or false?
* Is VHOST true or false?
*VHOST是正确的还是错误的?
* Is the path to your WordPress? MU install "/" or some directory?
* Is the path to your WordPress? MU install "/" or some directory?
*是到达你的WordPress的路径?MU安装"/"或者某个目录?
* '''''Anything in the error logs'''''? If you didn't get a welcome email, check your mail logs.
* '''''Anything in the error logs'''''? If you didn't get a welcome email, check your mail logs.
* '''''错误登录中的任何内容'''''?如果你没有得到表示欢迎的电子邮件,请检查你的电子邮件登录。
* Did you receive any sort of error within your browser? If so, what was the specific error?
* Did you receive any sort of error within your browser? If so, what was the specific error?
*你的浏览器中收到任何错误信息了吗?如果收到了,具体是什么错误?
* Does the information in wp_blogs, wp_users and wp_site match your blog, user and site?
* Does the information in wp_blogs, wp_users and wp_site match your blog, user and site?
* wp_blogs, wp_users和wp_site中的信息与你的博客相匹配吗,用户和站点?
* Mention the version number, SVN check-in number or the date you downloaded the snapshot.
* Mention the version number, SVN check-in number or the date you downloaded the snapshot.
*提到版本数字,SVN check-in数字,或者你下载snapshot的日期。
* Plugins in place? Have you tried turning them off and seeing if that affects the issue?
* Plugins in place? Have you tried turning them off and seeing if that affects the issue?
*插件放在正确的位置吗?你是否尝试关闭插件,看看是否有影响?
* Server environment: Apache or IIS? What OS are you running? Any proxy or cache server in place?
* Server environment: Apache or IIS? What OS are you running? Any proxy or cache server in place?
*服务器环境:Apache或者IIS?你运行什么OS?在适当的位置上有代理或者储存服务器吗?
* End user environment: Browser and version? (IE, Opera, Netscape, Safari?) OS? Security programs?
* End user environment: Browser and version? (IE, Opera, Netscape, Safari?) OS? Security programs?
*终端用户环境:浏览器或者版本?(IE, Opera, Netscape, Safari?) OS?安全程序?
* How to dupe the error. Please provide the specifics as to what you did to arrive at the error. Where within the site did the error appear? What is the specific error that you have received if you are getting one?
* How to dupe the error. Please provide the specifics as to what you did to arrive at the error. Where within the site did the error appear? What is the specific error that you have received if you are getting one?
*怎样处理错误。请提供你得到这个错误的详细信息。这个错误在站点的哪里出现?如果你看到了错误,这个错误具体是什么?
* Give details.  Please remember that you're the one seeing the error and many times, you're the only one seeing that error.  Folks can't read minds or else they would be in Vegas playing cards instead of trying to help other folks on the Mu forums.  
* Give details.  Please remember that you're the one seeing the error and many times, you're the only one seeing that error.  Folks can't read minds or else they would be in Vegas playing cards instead of trying to help other folks on the Mu forums.  
*给出详细信息。请记住,你看到了错误,而且就你一个人多次遇到了这个错误。人们不会了解你的情况,他们会在维加斯打扑克牌,而不是试着在Mu论坛上给你提供帮助。


Other things to do:
Other things to do:
其它需要执行的操作:


* Read the README.txt file. There are important instructions there on how to configure your web server.
* Read the README.txt file. There are important instructions there on how to configure your web server.
*请阅读README.txt文件。文件上有关于怎样配置你的网络服务器的指示说明。
* Check the following: wp-config for $base, database tables wp_blogs and wp_site match the URL you're using.
* Check the following: wp-config for $base, database tables wp_blogs and wp_site match the URL you're using.
*检查以下内容:wp-config for $base,数据库表格 wp_blogs 和wp_site 匹配你正在使用的URL 。
* If your new install doesn't work, you should debug wpmu-settings.php to figure out where it's going wrong. Use print, print_r and error_log to dump variables, especially $blogname.
* If your new install doesn't work, you should debug wpmu-settings.php to figure out where it's going wrong. Use print, print_r and error_log to dump variables, especially $blogname.
*如果你新安装的内容不能够运行,你应该调试wpmu-settings.php,了解问题的原因。使用print, print_r and error_log 放置变数,特别是$blogname。
* If it did work, and then it broke, what did you do last?
* If it did work, and then it broke, what did you do last?
*如果不能够运行,毁坏了,你应该该什么办?
* Check if your bug hasn't been already fixed:
* Check if your bug hasn't been already fixed:
*查看你的程序缺陷是否已经得到解决:
** Search Trac's [[WordPress:http://trac.mu.wordpress.org/report/6][closed tickets] to see if your bug was reported and fixed.
** Search Trac's [[WordPress:http://trac.mu.wordpress.org/report/6][closed tickets] to see if your bug was reported and fixed.
**搜索Trac的[[WordPress:http://trac.mu.wordpress.org/report/6][closed tickets]看看你的程序缺陷是否已经报告或者解决。
** Check the forums at http://mu.wordpress.org/forums/ for relevant threads.
** Check the forums at http://mu.wordpress.org/forums/ for relevant threads.
**查看http://mu.wordpress.org/forums/论坛上的相关主题。
* Provide a link to your WPMU install so those trying to help can actually see what is occurring.  
* Provide a link to your WPMU install so those trying to help can actually see what is occurring.  
*提供链接,链接到你的WPMU,这样那些试图帮助你的人,能够查看问题所在。


If you post a message to the forum saying, "my blog doesn't work! Please help!!!" you will be pointed at this page. Please don't regard this as being unhelpful, we're trying to help you help yourself.
If you post a message to the forum saying, "my blog doesn't work! Please help!!!" you will be pointed at this page. Please don't regard this as being unhelpful, we're trying to help you help yourself.
如果你向论坛发表信息,显示,"我的博客不能运行! 请帮帮我!!!"你可能被指引到这个页面。请不要认为这没用,我们会帮助你自助。

2008年9月25日 (四) 10:36的版本

If you are reading this, you may have been directed here by an error upon install. if that is the case, here's some things you can try to force a re-install.

如果你阅读这篇文章,你在安装过程中,可能遇到了问题。如果真的是这样,你可以遵循下面的一些步骤,重新安装。

- delete the .htaccess file. If you are on a cpanel host, an empty one keeps getting recreated automatically. Try going in through ftp and deleting it, then running the install.

-删除.htaccess文件。如果你在cpanel主机上,一个空主机能够保持不断地自动重建。试着仔细检查ftp并且将其删除,然后运行安装。

- check the database. Were any tables created? Drop them all and run the install again. *Only do this on a NEW install!!!* Also delete the created wp-config file.

-检查数据库。是否创建了任何表格?去除这些表格,然后再次安装。*只有新安装的时候,才执行这个操作!!!*同时删除已创建的wp-config文件。 When you submit a bug report, there are a few rules and guidelines to follow:

当你递交程序缺陷报告的时候,你需要遵循下面的一些规则和指南:

Please report problems using Trac and remember to select "MU 1.0" as your milestone.

请使用Trac报告程序缺陷并且记住选择"MU 1.0"作为你的里程碑。

Also please don't post files within the forum unless asked to do so. Since the forum software will occasionally cause problems with formatting or strip out parts of the code, it's best to place the code within your site as a *.txt or *.phps file and link to it from your post. We all have the same files anyway, especially the .htaccess file so, it's rather moot.

如果你没有被要求,不要在论坛上粘贴文件。因为论坛软件有时候会导致格式问题并且去除部分代码,最好将代码放在你的站点上,作为*.txt 或者 *.phps文件或者从你的文章上链接代码。我们都有同样地文件,特别是.htaccess文件,没有实际意义。

Always give specifics when you post. Changing text doesn't allow others to see if maybe you have an error with what you have in there. (Feel free to change any passwords though of course.)

当你发表的时候,提供一些详细信息。如果文本有错误,更改文本,不要让其他人看见。(当然,可以自由地更改任何密码。)

Include the following in the description of the problem:

在问题描述中,包含以下内容:

  • Is VHOST true or false?
  • VHOST是正确的还是错误的?
  • Is the path to your WordPress? MU install "/" or some directory?
  • 是到达你的WordPress的路径?MU安装"/"或者某个目录?
  • Anything in the error logs? If you didn't get a welcome email, check your mail logs.
  • 错误登录中的任何内容?如果你没有得到表示欢迎的电子邮件,请检查你的电子邮件登录。
  • Did you receive any sort of error within your browser? If so, what was the specific error?
  • 你的浏览器中收到任何错误信息了吗?如果收到了,具体是什么错误?
  • Does the information in wp_blogs, wp_users and wp_site match your blog, user and site?
  • wp_blogs, wp_users和wp_site中的信息与你的博客相匹配吗,用户和站点?
  • Mention the version number, SVN check-in number or the date you downloaded the snapshot.
  • 提到版本数字,SVN check-in数字,或者你下载snapshot的日期。
  • Plugins in place? Have you tried turning them off and seeing if that affects the issue?
  • 插件放在正确的位置吗?你是否尝试关闭插件,看看是否有影响?
  • Server environment: Apache or IIS? What OS are you running? Any proxy or cache server in place?
  • 服务器环境:Apache或者IIS?你运行什么OS?在适当的位置上有代理或者储存服务器吗?
  • End user environment: Browser and version? (IE, Opera, Netscape, Safari?) OS? Security programs?
  • 终端用户环境:浏览器或者版本?(IE, Opera, Netscape, Safari?) OS?安全程序?
  • How to dupe the error. Please provide the specifics as to what you did to arrive at the error. Where within the site did the error appear? What is the specific error that you have received if you are getting one?
  • 怎样处理错误。请提供你得到这个错误的详细信息。这个错误在站点的哪里出现?如果你看到了错误,这个错误具体是什么?
  • Give details. Please remember that you're the one seeing the error and many times, you're the only one seeing that error. Folks can't read minds or else they would be in Vegas playing cards instead of trying to help other folks on the Mu forums.
  • 给出详细信息。请记住,你看到了错误,而且就你一个人多次遇到了这个错误。人们不会了解你的情况,他们会在维加斯打扑克牌,而不是试着在Mu论坛上给你提供帮助。

Other things to do:

其它需要执行的操作:

  • Read the README.txt file. There are important instructions there on how to configure your web server.
  • 请阅读README.txt文件。文件上有关于怎样配置你的网络服务器的指示说明。
  • Check the following: wp-config for $base, database tables wp_blogs and wp_site match the URL you're using.
  • 检查以下内容:wp-config for $base,数据库表格 wp_blogs 和wp_site 匹配你正在使用的URL 。
  • If your new install doesn't work, you should debug wpmu-settings.php to figure out where it's going wrong. Use print, print_r and error_log to dump variables, especially $blogname.
  • 如果你新安装的内容不能够运行,你应该调试wpmu-settings.php,了解问题的原因。使用print, print_r and error_log 放置变数,特别是$blogname。
  • If it did work, and then it broke, what did you do last?
  • 如果不能够运行,毁坏了,你应该该什么办?
  • Check if your bug hasn't been already fixed:
  • 查看你的程序缺陷是否已经得到解决:
    • 查看http://mu.wordpress.org/forums/论坛上的相关主题。
  • Provide a link to your WPMU install so those trying to help can actually see what is occurring.
  • 提供链接,链接到你的WPMU,这样那些试图帮助你的人,能够查看问题所在。

If you post a message to the forum saying, "my blog doesn't work! Please help!!!" you will be pointed at this page. Please don't regard this as being unhelpful, we're trying to help you help yourself.

如果你向论坛发表信息,显示,"我的博客不能运行! 请帮帮我!!!"你可能被指引到这个页面。请不要认为这没用,我们会帮助你自助。