I upgraded my multisite from 5.x to 6.6 the other day. Everything went pretty well, but now every page on every site in every theme has a "O" on top. In the page source, it shows it rendering in the head of the html.

It must be in the "$head," "$styles" or "$scripts" variable called on by page.tpl.php -- where are these variables defined? I'm stumped.

Thanks in advance.

Comments

yelvington’s picture

Can you post an example of the resulting HTML?

CharlieHipHop’s picture

<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
  <title>How to Survive Unemployment | Survive Unemployment!</title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
0
<link rel="shortcut icon" href="/misc/favicon.ico" type="image/x-icon" />
  <link type="text/css" rel="stylesheet" media="all" href="/sites/all/modul......

See the random "0" in the head? It must come from the $head variable in page.tpl.php, the relevant part of which looks like this:

<head>
  <title><?php print $head_title ?></title>
  <?php print $head ?>
  <?php print $styles ?>
  <?php print $scripts ?>
  <script type="text/javascript"><?php /* Needed to avoid Flash of Unstyle Content in IE */ ?> </script>
</head>

<body>

It has to be the $head variable because the "0" shows up before the styles or scripts, but where do you control the $head variable, from where is it called?

yelvington’s picture

The $head variable is produced by http://api.drupal.org/api/function/drupal_get_html_head ... which takes no args and should have no interactions, so that's not the problem. Your 0 may be coming from some hidden junk in page.tpl.php. If possible, replace it with a fresh version.

jcamfield’s picture

See http://drupal.org/node/333189 - the ShareThis module inserts a javascript ref in the head and must be enabled and set up to remove the zero. My earlier "fix" of commenting out the $head printing also disables ShareThis ;)