本地的Wordpress黑屏 [英] Wordpress blank screen in localhost
问题描述
因此,我试图从一个实时站点中获取我激动人心的wordpress博客,并将其放入我的本地主机.我正在使用XAMPP本地主机上的所有其他测试站点都正常运行,而没有空白屏幕.
So I am trying to take my exciting wordpress blog from a live site and put into my localhost. I am using XAMPP All my other testing sites on my localhost work with no blank screen.
当我将wordpress博客带到本地主机时,我做了
When I brought my wordpress blog over to localhost I did
- 将数据库导入本地
- 将site_url和wp_options中的home更改为此
http://localhost:83
- 更改了wp-config.php中的连接值
我得到一个黑屏.....有人知道为什么或如何修复它吗?
And I get a blank screen.....Does anyone know why or how to fix it?
在wp-config.php中
In wp-config.php
我将WP_DEBUG设置为true,它返回了这个...
I turned WP_DEBUG to true and it returned this...
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时遇到的错误
Got my site to appear, but its very messy...here are the errors I get when I turn WP_DEBUG on
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
推荐答案
转到wp-config.php,将WP_DEBUG设置为true,然后看看会发生什么.
Go to wp-config.php, set WP_DEBUG to true and see what happens.
这篇关于本地的Wordpress黑屏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!