【发布时间】:2012-08-18 03:21:52
【问题描述】:
所以我正试图从一个现场站点中获取我令人兴奋的 wordpress 博客并将其放入我的本地主机中。我正在使用 XAMPP 我本地主机上的所有其他测试站点都可以正常工作,没有空白屏幕。
当我将我的 wordpress 博客带到本地主机时,我做到了
- 已将数据库导入本地
- 将 wp_options 中的 site_url 和 home 更改为
http://localhost:83 - 更改了我在 wp-config.php 中的连接值
我得到一个空白屏幕.....有人知道为什么或如何解决它吗?
在 wp-config.php 中
我将 WP_DEBUG 设置为 true,它返回了这个...
Warning: mysql_connect() [function.mysql-connect]: MySQL server has gone away in C:\xampp\htdocs\taran\wp-includes\wp-db.php on line 1038
Warning: mysql_connect() [function.mysql-connect]: Error while reading greeting packet. PID=5832 in C:\xampp\htdocs\taran\wp-includes\wp-db.php on line 1038
Warning: mysql_connect() [function.mysql-connect]: MySQL server has gone away in C:\xampp\htdocs\taran\wp-includes\wp-db.php on line 1038
Fatal error: Maximum execution time of 30 seconds exceeded in C:\xampp\htdocs\taran\wp-includes\wp-db.php on line 1038
让我的网站出现了,但它非常混乱......这是我打开 WP_DEBUG 时遇到的错误
Notice: Use of undefined constant JQUERYCOLORBOX_TEXTDOMAIN - assumed 'JQUERYCOLORBOX_TEXTDOMAIN' in C:\xampp\htdocs\taran\wp-content\plugins\jquery-colorbox\jquery-colorbox.php on line 34
Notice: Constant WPECAUTHNET_PLUGIN_NAME already defined in C:\xampp\htdocs\taran\wp-content\plugins\gold_cart_plugin\merchants\wpec_auth_net\wpec_auth_net.php on line 11
Notice: Constant WPECAUTHNET_CLASSES already defined in C:\xampp\htdocs\taran\wp-content\plugins\gold_cart_plugin\merchants\wpec_auth_net\wpec_auth_net.php on line 13
Notice: register_sidebar_widget is deprecated since version 2.8! Use wp_register_sidebar_widget() instead. in C:\xampp\htdocs\taran\wp-includes\functions.php on line 2705
Notice: register_widget_control is deprecated since version 2.8! Use wp_register_widget_control() instead. in C:\xampp\htdocs\taran\wp-includes\functions.php on line 2705
Notice: Undefined index: authorized in C:\xampp\htdocs\taran\wp-content\plugins\wp-login\wp-login.php on line 63
Notice: Undefined index: scheme in C:\xampp\htdocs\taran\wp-includes\canonical.php on line 398
【问题讨论】:
-
在您的 wordpress 文件夹中,转到您的 wp-config 文件,然后将
define("WP_DEBUG", false)更改为define("WP_DEBUG", true)然后转到 localhost,然后告诉我们屏幕上的内容。 -
我不确定您的问题的解决方案是什么,但我的建议是您在 localhost 上重新安装 wordpress,然后导入所有内容。
标签: php database wordpress xampp localhost