将drupal从7.21升级到7.23的一系列错误

时间:2013-08-14 14:37:06

标签: drupal-7 undefined-index

自升级核心代码以来,我收到了大量错误消息: 此消息定期出现:

Notice: Undefined index: name in _ctools_list_themes() (line 567 of /home/xxx/public_html/sites/all/modules/ctools/includes/plugins.inc).

当进入管理页面时,我对此表示欢迎:

Notice: Undefined index: name in block_menu() (line 146 of /home/xxx/public_html/modules/block/block.module).
Notice: Undefined index: name in block_menu() (line 165 of /home/xxx/public_html/modules/block/block.module).
Notice: Undefined index: name in system_menu() (line 647 of /home/xxx/public_html/modules/system/system.module).
Notice: Undefined index: name in _ctools_list_themes() (line 567 of /home/xxx/public_html/sites/all/modules/ctools/includes/plugins.inc).
Notice: Undefined index: name in block_menu() (line 146 of /home/xxx/public_html/modules/block/block.module).
Notice: Undefined index: name in block_menu() (line 165 of /home/xxx/public_html/modules/block/block.module).
Notice: Undefined index: name in system_menu() (line 647 of /home/xxx/public_html/modules/system/system.module).
Notice: Undefined index: name in system_theme_default() (line 378 of /home/xxx/public_html/modules/system/system.admin.inc).
Notice: Undefined index: name in _update_process_info_list() (line 205 of /home/xxx/public_html/modules/update/update.compare.inc).
Notice: Undefined index: name in system_sort_modules_by_info_name() (line 949 of /home/xxx/public_html/modules/system/system.admin.inc).
Notice: Undefined index: name in system_sort_modules_by_info_name() (line 949 of /home/xxx/public_html/modules/system/system.admin.inc).
Notice: Undefined index: name in system_sort_modules_by_info_name() (line 949 of /home/xxx/public_html/modules/system/system.admin.inc).
Warning: uasort(): Array was modified by the user comparison function in system_themes_page() (line 139 of /home/xxx/public_html/modules/system/system.admin.inc).
Notice: Undefined index: name in system_themes_page() (line 148 of /home/xxx/public_html/modules/system/system.admin.inc).
Notice: Undefined index: name in system_themes_page() (line 166 of /home/xxx/public_html/modules/system/system.admin.inc).
Notice: Undefined index: name in system_themes_page() (line 167 of /home/xxx/public_html/modules/system/system.admin.inc).
Notice: Undefined index: name in system_themes_page() (line 190 of /home/xxx/public_html/modules/system/system.admin.inc).
Notice: Undefined index: name in theme_system_themes_page() (line 2739 of /home/xxx/public_html/modules/system/system.admin.inc).

我也无法访问admin / config路径或运行update.php

我尝试过进行注册表重建。这似乎不是问题。

一切都得到支持&我创建了一个sql转储。我应该彻底消灭drupal网站并重新安装吗?或者是否有明显的补丁适用?看起来问题出在核心代码的模块部分。

感谢。

1 个答案:

答案 0 :(得分:0)

升级核心安装时如何处理?由于所有错误似乎都指向Core安装,因此不太可能(尽管可能)错误实际上与Core本身有关。

我最近对7.23进行了一些升级,一切都很顺利。我首选的方法是使用GIT,drush& rsync的。
1 /升级前提交最新状态
2 /将最新版本下载到单独的文件夹中 3 /从下载的版本中删除.git文件夹
4 / rsync最新版本

通常只需不到几分钟。

1/ // Within my current install. let's call it /dev...
   git add .
   git commit -m "Drupal 7.21 before upgrade to 7.23"

2/ // Outside current install
   drush dl drupal //downloads the latest version

3/   rm -r drupal-7.23/.git* // removes all git info

4/ rsync -avz drupal-7.23/ dev //rsync versions