2013-09-30 57 views
0

,并得到这个错误:错误移动的WordPress到感动的WordPress到子目录子域

Fatal error: Function name must be a string in /home/content/61/11855861/html/wordpress/index.php on line 17

这里是我的代码:

<?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 $wordpress ('/wordpress/wp-blog-header.php'); 
+0

您是否更改了db中wp-option表中的路径? – Lab

+0

这个:'$ wordpress('/wordpress/wp-blog-header.php');'似乎没有意义,我可以在代码库中的其他地方找到它。你确定你没有意外地粘贴'$ wordpress'吗? –

回答

3

你的错误就在这条线上

require $wordpress ('/wordpress/wp-blog-header.php'); 

这不是WordPress'index.php脚本中的默认行。 $wordpress变量是未定义的,即使它已被定义,您也没有正确连接它。默认的是

require('./wp-blog-header.php'); 
相关问题