Community

Data belonging in head loaded in body instead

We're having a strange problem: we have /** appearing on every page. After disabling our custom modules, the problem persists. Looking at the HTML in Firebug, I see:

<html class="js" xmlns:xsd="http://www.w3.org/2001/XMLSchema#" xmlns:skos="http://www.w3.org/2004/02/skos/core#" xmlns:sioct="http://rdfs.org/sioc/types#" xmlns:sioc="http://rdfs.org/sioc/ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:og="http://ogp.me/ns#" xmlns:foaf="http://xmlns.com/foaf/0.1/" xmlns:dc="http://purl.org/dc/terms/" xmlns:content="http://purl.org/rss/1.0/modules/content/" dir="ltr" version="XHTML+RDFa 1.0" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head></head>
<body class="html not-front logged-in one-sidebar sidebar-first page-node page-node- page-node-47720 node-type-article toolbar toolbar-drawer i18n-en" style="border-bottom: 0px none; padding-top: 65px;">
/**
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<link type="image/vnd.microsoft.icon" href="http://botswana/sites/all/themes/danland/favicon.ico" rel="shortcut icon">
<meta property="dc:title" about="/content/cancelled-las-cruces-extra-territorial-zoning-authority-schedules-meeting-agenda-september" content="CANCELLED: THE LAS CRUCES EXTRA-TERRITORIAL ZONING AUTHORITY SCHEDULES MEETING AGENDA ON SEPTEMBER 19">
<link href="/content/cancelled-las-cruces-extra-territorial-zoning-authority-schedules-meeting-agenda-september" rel="canonical">
<meta content="Drupal 7 (http://drupal.org)" name="Generator">
<link href="/node/47720" rel="shortlink">
<title>CANCELLED: THE LAS CRUCES EXTRA-TERRITORIAL ZONING AUTHORITY SCHEDULES MEETING AGENDA ON SEPTEMBER 19 | Doña Ana County</title>
<style media="all" type="text/css">
<style media="all" type="text/css">
<style media="all" type="text/css">
<style media="all" type="text/css">
<style media="all" type="text/css">
<script src="http://botswana/misc/jquery.js?v=1.4.4" type="text/javascript">
<script src="http://botswana/misc/jquery.once.js?v=1.2" type="text/javascript">
<script src="http://botswana/misc/drupal.js?me9wdu" type="text/javascript">
<script src="http://botswana/misc/ui/jquery.ui.core.min.js?v=1.8.7" type="text/javascript">

There's nothing in the page head, and everything that should be there is being loaded in the body instead! Changing themes doesn't help; so it's not that html.tpl.php is being overwritten. The html.tpl.php in the system module hasn't been tampered with ... Any ideas?

Comments

Your problem will be

Your problem will be happening at one of three places:

1) Core
2) Module
3) Theme

This is the entirety of Drupal. It's probably not happening in #1 (core), unless you've hacked core, are using a modified version of Drupal (ex - pressflow) or have applied a dodgy patch to core.

That leaves 2 (module) or 3 (theme). I know you said you disabled all your modules and changed your theme, with the problem persisting, but it's really doubtful the problem would reside in core, so maybe try this again. Did you clear the cache after disabling the modules/changing the theme? If you didn't, it's possible that you had disabled the correct element, but were viewing a cache that still contained the bad code.

Jaypan We build websites

It did indeed turn out to be

It did indeed turn out to be one of our custom modules. Must have missed it yesterday. Perhaps because it hadn't been (intentionally) changed in months.

Thanks for your response - it was helpful to know I was thinking about the problem in the right way.

Xenia

nobody click here