【发布时间】:2014-06-09 07:27:33
【问题描述】:
我正在使用 Drupal 7 并尝试使用相同的数据库创建多站点,为此我使用 Domain Access 和 Domain Theme 模块。对于我的默认站点,我使用/sites/all 文件夹theme 和module,而对于另一个站点,我在/sites/example.com 位置创建了一个文件夹,还创建了一个Module 和Theme 文件夹和setting.php 到example.com 文件夹并为相关文件夹放置主题和模块。
现在我放入该目录/sites/example.com/themes的主题没有从主站点的后端出现在外观部分中。对于域站点,它显示在外观部分。当我为它启用的域站点启用该主题时,但在刷新主站点后,它再次为域站点禁用。
对于这种情况,我没有在domain theme setting section 中找到该主题。如果我转到Home/Administration/Appearance 部分的Setting 并选择example theme,则会显示以下错误。
Notice: Undefined index: example in system_theme_settings() (line 404 of /modules/system/system.admin.inc).
Notice: Trying to get property of non-object in system_theme_settings() (line 404 of /modules/system/system.admin.inc).
Warning: in_array() expects parameter 2 to be array, null given in system_theme_settings() (line 442 of /modules/system/system.admin.inc).
Notice: Undefined index: example in system_theme_settings() (line 547 of /modules/system/system.admin.inc).
Notice: Trying to get property of non-object in system_theme_settings() (line 547 of /modules/system/system.admin.inc).
Notice: Undefined index: example in system_theme_settings() (line 575 of /modules/system/system.admin.inc).
Notice: Trying to get property of non-object in system_theme_settings() (line 575 of /modules/system/system.admin.inc).
Notice: Undefined index: example in system_help() (line 103 of /modules/system/system.module).
Notice: Trying to get property of non-object in system_help() (line 104 of /modules/system/system.module).
谁能告诉我如何解决这个theme 问题,以便使用Domain theme 和Domain access 模块在Drupal 7 中创建多站点??
【问题讨论】:
标签: php .htaccess drupal drupal-7