toad78
December 14, 2015, 9:50pm
1
On this page I’m seeing
but do not see where to fix it. I ran the code through the HTML Markup Validation and the only thing I’m seeing is:
PHP code is as follows:
code.txt (8.9 KB)
I’m not seeing any closure issues with the PHP code, so I don’t know where else to look.
Check all your PHP files. It seems to be coming from a different page if it’s not in your snippet.
@toad78
Try this:
copying all content between the <body> and </body>
save contents to “BODY-CONTENTS.php”
create new file “TEST.php” with content below
open “TEST.php” in your browser which will render Works OK Up to here
gradually include blocks until error re-appears.
<?php
// file: TEST.php
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $gantry->language; ?>" lang="<?php echo $gantry->language;?>" >
<head>
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1" />
<?php
/*
$gantry->displayHead();
$gantry->addStyles(array('template.css','joomla.css','overlays.css','typography.css'));
if (!$gantry->get('rotator-enabled'))
{
$gantry->addInlineScript("
window.addEvent('domready', function() {
var content = $$('#rt-rotator .rotator-desc'), overlay = $$('.rotator-overlay');
if (!content.length) { if (overlay.length) overlay.setStyle('display', 'none'); }
});
");
}
if ($gantry->get('articledetails') == 'layout3' && $gantry->browser->engine == 'trident')
{
$gantry->addScript('gantry-ie-zindex.js');
}
*/
?>
<link type="image/x-icon" rel="shortcut icon" href="/templates/rt_panacea_j15/images/favicon.ico" />
</head>
<body>
<h1> Works OK Up to here :) </h1>
<?php # require 'BODY-STUFF.php'; ?>
<?php # gantry->finalize();?>
</body>
</html>
1 Like
toad78
December 15, 2015, 7:51pm
4
If it matters, I used http://phpcodechecker.com/ and didn’t come across any errors with any of my PHP code. Is there no other analysis method that I can use to determine the issue?
Gandalf
December 15, 2015, 7:58pm
5
The code that is causing the problem comes even before your <!doctype>
is being sent.
Unless you have an auto_prepend_file
(not likely, but possibly) that error is most likely in a file that is included /required.
If you know how that page is put together I think checking for those should help
Gandalf
December 16, 2015, 7:36am
7
What I meant to say is even before the doctype is being sent! - which means it’s not in the code you attached.
system
Closed
March 16, 2016, 2:52pm
8
This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.