Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I installed the bootstrap theme on my site and I wanted to theme, after enabling the Theme developer in the admin menu there wasn't any error but when I went to see my website page I faced to the WSOD and when I get back to the admin menu I saw couple of messages same as below.
Notice: Undefined index: main_menu in bootstrap_preprocess_page() (line 37 of /var/www/html/rgpars.com/sites/all/themes/bootstrap/templates/system/page.vars.php).
Notice: Undefined index: secondary_menu in bootstrap_preprocess_page() (line 46 of /var/www/html/rgpars.com/sites/all/themes/bootstrap/templates/system/page.vars.php).
Notice: Undefined variable: logo in include() (line 79 of /var/www/html/rgpars.com/sites/all/themes/bootstrap/templates/system/page.tpl.php).
Notice: Undefined variable: messages in include() (line 146 of /var/www/html/rgpars.com/sites/all/themes/bootstrap/templates/system/page.tpl.php).
Notice: Undefined index: language in bootstrap_preprocess_html() (line 23 of /var/www/html/rgpars.com/sites/all/themes/bootstrap/templates/system/html.vars.php).
Notice: Trying to get property of non-object in bootstrap_preprocess_html() (line 23 of /var/www/html/rgpars.com/sites/all/themes/bootstrap/templates/system/html.vars.php).
Notice: Undefined index: language in bootstrap_preprocess_html() (line 24 of /var/www/html/rgpars.com/sites/all/themes/bootstrap/templates/system/html.vars.php).
Notice: Trying to get property of non-object in bootstrap_preprocess_html() (line 24 of /var/www/html/rgpars.com/sites/all/themes/bootstrap/templates/system/html.vars.php).
Notice: Undefined index: attributes_array in bootstrap_preprocess_html() (line 44 of /var/www/html/rgpars.com/sites/all/themes/bootstrap/templates/system/html.vars.php).
Notice: Undefined index: main_menu in bootstrap_preprocess_page() (line 37 of /var/www/html/rgpars.com/sites/all/themes/bootstrap/templates/system/page.vars.php).
Notice: Undefined index: secondary_menu in bootstrap_preprocess_page() (line 46 of /var/www/html/rgpars.com/sites/all/themes/bootstrap/templates/system/page.vars.php).
Notice: Undefined variable: logo in include() (line 79 of /var/www/html/rgpars.com/sites/all/themes/bootstrap/templates/system/page.tpl.php).
Notice: Undefined variable: messages in include() (line 146 of /var/www/html/rgpars.com/sites/all/themes/bootstrap/templates/system/page.tpl.php).
Notice: Undefined index: language in bootstrap_preprocess_html() (line 23 of /var/www/html/rgpars.com/sites/all/themes/bootstrap/templates/system/html.vars.php).
Notice: Trying to get property of non-object in bootstrap_preprocess_html() (line 23 of /var/www/html/rgpars.com/sites/all/themes/bootstrap/templates/system/html.vars.php).
Notice: Undefined index: language in bootstrap_preprocess_html() (line 24 of /var/www/html/rgpars.com/sites/all/themes/bootstrap/templates/system/html.vars.php).
Notice: Trying to get property of non-object in bootstrap_preprocess_html() (line 24 of /var/www/html/rgpars.com/sites/all/themes/bootstrap/templates/system/html.vars.php).
Notice: Undefined index: attributes_array in bootstrap_preprocess_html() (line 44 of /var/www/html/rgpars.com/sites/all/themes/bootstrap/templates/system/html.vars.php).
I disable the module and everything get back to normal.
Comments
Comment #2
mohammadyou CreditAttribution: mohammadyou commentedComment #3
markhalliwellThis is an issue with the devel_theme module. It's not a "bug" in this base theme. The problem likely has something to do with that module not initiating a theme properly or, at the very least, including all the file includes provided with a theme hook (to properly preprocess it).
Comment #4
mohammadyou CreditAttribution: mohammadyou commentedThanks mark and sorry that I put the issue here