2012-12-19 97 views
-1

当我试图按照http://www.siteground.com/tutorials/drupal-tutorial/drupal_upgrade.htm的说明运行update.php时,一长串错误开始出现。Drupal从6升级到7 undefined veriables

说明:未定义变量:头中包括()(行/home/content/66/9070466/html/ehapsa/ehapsa/sites/all/themes/garlandcustom/page.tpl.php的8)。 注意:未定义变量:include()中的head_title(/home/content/66/9070466/html/ehapsa/ehapsa/sites/all/themes/garlandcustom/page.tpl.php第9行)。 注意:未定义变量:include()中的样式(/ home/content/66/9070466/html/actionscript/ 注意:未定义变量:include()中的脚本(/home/content/66/9070466/html/ehapsa/ehapsa/sites/all/themes/garlandcustom/page.tpl.php第11行)。 注意:未定义的变量:留在include()(第16行/ home/content/66/9070466/html/actionscript/ 注意:未定义的变量:在include()中是正确的(/ home/content/66/9070466/html/actionscript/ 注意:未定义的变量:include()中的头(/ home/content/66/9070466/html/actionscript/ 注意:未定义变量:留在include()(第60行/home/content/66/9070466/html/ehapsa/ehapsa/sites/all/themes/garlandcustom/page.tpl.php)。 注意:未定义的变量:include()中的任务(/ home/content/66/9070466/html/actionscript/orothera/sites/all/themes/garlandcustom/page.tpl.php的69行)。 注意:未定义变量:包含()中的tabs2(/home/content/66/9070466/html/ehapsa/ehapsa/sites/all/themes/garlandcustom/page.tpl.php的第73行)。 注意:未定义变量:include()中的帮助(/home/content/66/9070466/html/ehapsa/ehapsa/sites/all/themes/garlandcustom/page.tpl.php的第75行)。 注意:未定义变量:include()中的内容(/home/content/66/9070466/html/ehapsa/ehapsa/sites/all/themes/garlandcustom/page.tpl.php中的第77行)。 注意:未定义的变量:include()中的页脚(/home/content/66/9070466/html/ehapsa/ehapsa/sites/all/themes/garlandcustom/page.tpl.php的第80行)。 注意:未定义变量:include()中的footer_message(/home/content/66/9070466/html/ehapsa/ehapsa/sites/all/themes/garlandcustom/page.tpl.php的第80行)。 注意:未定义的变量:在include()中是正确的(/ home/content/66/9070466/html/actionscript/ 注意:未定义变量:在include()中关闭(/ home/content/66/9070466/html/ehapsa/ehapsa/sites/all/themes/garlandcustom/page.tpl.php中的第94行)。

我试图升级当前网站的子目录下。

+0

问题是什么? – rae1

+1

Drupal 6 => 7 =升级。 Drupal 6.x => 6.Y =更新。 该教程是关于更新。 –

+0

@ rae1n问题很简单,如何摆脱这些错误。 – user1914585

回答

1

这是解决方案。 自定义区域必须以不同的page.tpl.php中打印

在Drupal的6,当你想打印你刚刚做了一个区域,你只要把这个变成你的page.tpl.php中:

打印$ foo_sidebar;

在Drupal 7的,所有的区域要添加,必须使用渲染和页面变量打印:

打印渲染($页[“foo_sidebar”]);

+1

然后我遇到了问题drupal注意:未定义的属性:stdClass :: $ content位于/sites/all/themes/garland/block.tpl.php。我通过用modules/blocks/block.tpl.php替换文件找到了解决方案 – user1914585