【问题】
之前已经测试本地wordpress了,发现是没有下载完整:
【记录】本地测试搬家过程中导出的wordpress文件和数据库是否能正常工作
所以这次在完整导出整个wordpress的所有的文件后,接着去本地先测试是否正常工作。
【折腾过程】
1.开启wamp,然后进入本地localhost看看,发现是自己之前的旧的另外一个wordpress。
所以,先去把wordpress整个内容去掉,换成此处要测试的在线的wordpress的备份。看看是否正常工作。
2.把相关的wordpress的所有的文件,都放到www下面的某个目录后,去访问,结果弹出保存,下载后,内容是:
<?php /** * Front to the WordPress application. This file doesn’t do anything, but loads * wp-blog-header.php which does and tells WordPress to load the theme. * * @package WordPress */ /** * Tells WordPress to load the WordPress theme and output it. * * @var bool */ define(‘WP_USE_THEMES’, true); /** Loads the WordPress Environment and Template */ require(‘./wp-blog-header.php’); |
所以参考之前的:
【已解决】在线的wordpress搬家到本地结果无法打开首页却出现文件保存对话框和Front to the WordPress application
去把.htaccess中的对应的行,注释掉:
# Use PHP5 Single php.ini as default #AddHandler application/x-httpd-php5s .php |
3.结果又出现一堆错误,折腾过程参见:
( ! ) Warning: require(E:\dev_install_root\wamp_x64\www\crifan_com_20130602\wordpress_all_files/wp-includes/default-constants.php): failed to open stream: No such file or directory in E:\dev_install_root\wamp_x64\www\crifan_com_20130602\wordpress_all_files\wp-settings.php on line 22 Call Stack # Time Memory Function Location 1 0.0049 248488 {main}( ) ..\index.php:0 2 0.0101 252216 require( ‘E:\dev_install_root\wamp_x64\www\crifan_com_20130602\wordpress_all_files\wp-blog-header.php’ ) ..\index.php:17 3 0.0132 269296 require_once( ‘E:\dev_install_root\wamp_x64\www\crifan_com_20130602\wordpress_all_files\wp-load.php’ ) ..\wp-blog-header.php:12 4 0.0159 281192 require_once( ‘E:\dev_install_root\wamp_x64\www\crifan_com_20130602\wordpress_all_files\wp-config.php’ ) ..\wp-load.php:29 5 0.0238 372528 require_once( ‘E:\dev_install_root\wamp_x64\www\crifan_com_20130602\wordpress_all_files\wp-settings.php’ ) ..\wp-config.php:90 ( ! ) Fatal error: require(): Failed opening required ‘E:\dev_install_root\wamp_x64\www\crifan_com_20130602\wordpress_all_files/wp-includes/default-constants.php’ (include_path=’.;C:\php\pear’) in E:\dev_install_root\wamp_x64\www\crifan_com_20130602\wordpress_all_files\wp-settings.php on line 22 Call Stack # Time Memory Function Location 1 0.0049 248488 {main}( ) ..\index.php:0 2 0.0101 252216 require( ‘E:\dev_install_root\wamp_x64\www\crifan_com_20130602\wordpress_all_files\wp-blog-header.php’ ) ..\index.php:17 3 0.0132 269296 require_once( ‘E:\dev_install_root\wamp_x64\www\crifan_com_20130602\wordpress_all_files\wp-load.php’ ) ..\wp-blog-header.php:12 4 0.0159 281192 require_once( ‘E:\dev_install_root\wamp_x64\www\crifan_com_20130602\wordpress_all_files\wp-config.php’ ) ..\wp-load.php:29 5 0.0238 372528 require_once( ‘E:\dev_install_root\wamp_x64\www\crifan_com_20130602\wordpress_all_files\wp-settings.php’ ) ..\wp-config.php:90 |
然后去查看了一下,结果很悲催的是,实际上,以为此次是完整的下载了对应的全部的文件了,但是实际上,还是缺少了很多的文件:
比如此处的
wp-includes/default-constants.php
所以,接下来要做的事情是:
继续,重新下载,真正的,完整版本的wordpress的所有文件。
然后再继续折腾。
转载请注明:在路上 » 【记录】第二次测试本地的wordpress是否正常工作
Post Views: 857