Problem/Motivation

On a Drupal 7 system that has no visible content for the anonymous contacts but just the login page, the following notice appears:
Notice: Undefined variable: head_title in include() (line 62 of /bootstrap/templates/system/html.tpl.php).

Steps to reproduce

Proposed resolution

On html.tpl.php on line 62, replace:

<title><?php print $head_title; ?></title>

with

<title><?php (isset($head_title) ? print $head_title : print '') ; ?></title>

I've supplied a patch for this (attached)

Remaining tasks

User interface changes

API changes

Data model changes

CommentFileSizeAuthor
7.x-3.26-html.tpl_.php_.patch735 bytesVangelisP
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

VangelisP created an issue. See original summary.

VangelisP’s picture

Issue summary: View changes
markhalliwell’s picture

Category: Bug report » Support request
Status: Active » Closed (cannot reproduce)

This variable is automatically (and always) provided by core in template_preprocess_html().

If this variable does not exist, then it means something else is explicitly removing it.

You will need to search for any contrib and custom extensions that may be responsible for doing this.