creating a template through appearance/delta for a theme such as "Fusion", then configuring that template at:
admin/appearance/delta/list/fusion/configure
results in lots of errors
Notice: Undefined index: theme_grid in fusion_core_form_system_theme_settings_alter() (line 68 of /Users/drupal-7.2/sites/all/themes/fusion/fusion_core/theme-settings.php).
Notice: Undefined index: in fusion_core_form_system_theme_settings_alter() (line 68 of /drupal-7.2/sites/all/themes/fusion/fusion_core/theme-settings.php).
Notice: Undefined index: fluid_grid_width in fusion_core_form_system_theme_settings_alter() (line 81 of /drupal-7.2/sites/all/themes/fusion/fusion_core/theme-settings.php).
Notice: Undefined index: in fusion_core_form_system_theme_settings_alter() (line 81 of /drupal-7.2/sites/all/themes/fusion/fusion_core/theme-settings.php).
Notice: Undefined index: sidebar_layout in fusion_core_form_system_theme_settings_alter() (line 93 of /drupal-7.2/sites/all/themes/fusion/fusion_core/theme-settings.php).
Notice: Undefined index: in fusion_core_form_system_theme_settings_alter() (line 93 of /drupal-7.2/sites/all/themes/fusion/fusion_core/theme-settings.php).
Notice: Undefined index: sidebar_first_width in fusion_core_form_system_theme_settings_alter() (line 109 of /drupal-7.2/sites/all/themes/fusion/fusion_core/theme-settings.php).
Notice: Undefined index: in fusion_core_form_system_theme_settings_alter() (line 109 of /drupal-7.2/sites/all/themes/fusion/fusion_core/theme-settings.php).
Notice: Undefined index: sidebar_second_width in fusion_core_form_system_theme_settings_alter() (line 117 of /drupal-7.2/sites/all/themes/fusion/fusion_core/theme-settings.php).
Notice: Undefined index: in fusion_core_form_system_theme_settings_alter() (line 117 of /drupal-7.2/sites/all/themes/fusion/fusion_core/theme-settings.php).
Notice: Undefined index: theme_font_size in fusion_core_form_system_theme_settings_alter() (line 158 of /drupal-7.2/sites/all/themes/fusion/fusion_core/theme-settings.php).
Notice: Undefined index: in fusion_core_form_system_theme_settings_alter() (line 158 of /drupal-7.2/sites/all/themes/fusion/fusion_core/theme-settings.php).
Comment | File | Size | Author |
---|---|---|---|
#5 | fusion-2.x-dev-theme-settings-2.patch | 606 bytes | sheena_d |
#5 | fusion-2.x-beta1-theme-settings2.patch | 633 bytes | sheena_d |
#2 | fusion-2.x-beta1-theme-settings.patch | 665 bytes | sheena_d |
#2 | fusion-2.x-dev-theme-settings.patch | 638 bytes | sheena_d |
#1 | fusion-2.x-dev-theme-settings.patch | 638 bytes | sheena_d |
Comments
Comment #1
sheena_d CreditAttribution: sheena_d commentedThis issue was originally posted in the Delta issue queue, but is actually caused by the way Fusion processes theme settings.
Fusion dynamically renders some theme settings based on information in the theme's .info file. To do this, Fusion core needs to know the name of the theme whose settings are currently being edited and uses the following code to find this information:
This works just fine on the standard theme settings page, but when the Delta module duplicates the theme settings page for creating Delta templates, it does not use the URL format expected in this code.
A more reliable method for determining the theme name seems to be the $form_build variable:
This works well in my limited testing for both the Delta module's theme settings form and the standard Drupal theme settings form. I am not 100% sure that there are not other contexts in which my method would cause problems.
Another possible solution would be that Delta should use the expected URL structure for the path to its theme settings forms (i.e. end the path with the theme's machine name), but I do not think a module has any responsibility to uphold this pattern.
Attached are two patches; one applies to the current 7.x-2.x-beta1 release of Fusion, the other applies to the current 7.x-2.x-dev (Dec 20) version of Fusion.
Comment #2
sheena_d CreditAttribution: sheena_d commentedargh, sorry, I totally typo'd those last patches. Use these patches instead!
Comment #4
sheena_d CreditAttribution: sheena_d commentedThe second patch failed testing because it applies to the dev release rather than the release that is tagged in this ticket.
Comment #5
sheena_d CreditAttribution: sheena_d commentedAfter some consultation from @sociotech, I've changed the method for identifying the theme name to use the global variable $theme_key.
Comment #6
jinhcc CreditAttribution: jinhcc commented#5: fusion-2.x-beta1-theme-settings2.patch queued for re-testing.
Comment #7
sheena_d CreditAttribution: sheena_d commentedThis fix is included in Fusion 7.x-2.0-beta2
Comment #8.0
(not verified) CreditAttribution: commentedremoving local paths