Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#352 Unable to block removal of essential tags.

open
nobody
5
2010-10-10
2010-10-10
No

I'm using an open source, PHP based, CMS system named "Joomla".
When it encounters this ESSENTIAL tag ' <jdoc:include type="head" />' it removes it and everything. Calling it an "error" and "unexpected" and giving me a empty output document. When I tell it to ignore errors, it stops giving me a blank document, but still removes the essential tag. What am I to do?
And yest, I DID tell it ignore
Original code:
------------------------------------------------------------------------
<?php

/*--------------------------------------------------------------
# October 2010 (for Joomla 1.6)
# Copyright (C) Basketcase Software, Inc. All Rights Reserved.
# License: Copyrighted Commercial Software
# Website: http://www.basketcasesoftware.com
# Support: contact@basketcasesoftware.com
---------------------------------------------------------------*/

defined('_JEXEC') or die ('Restricted access');
// including base setup file
include_once (JPATH_ROOT."/templates/".$this->template.'/lib/php/dj_setup.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 $this->language; ?>" lang="<?php echo $this->language; ?>" dir="<?php echo $direction; ?>" >
<head>
<jdoc:include type="head" />
<?php
// including template header files
include_once (JPATH_ROOT."/templates/".$this->template.'/lib/php/dj_head.php');
JHTML::_('behavior.mootools');
?>
</head>
<body>
</body>
</html>
------------------------------------------------------------------------

Output:
------------------------------------------------------------------------
<?php

/*--------------------------------------------------------------
# October 2010 (for Joomla 1.6)
# Copyright (C) Basketcase Software, Inc. All Rights Reserved.
# License: Copyrighted Commercial Software
# Website: http://www.basketcasesoftware.com
# Support: contact@basketcasesoftware.com
---------------------------------------------------------------*/

defined('_JEXEC') or die ('Restricted access');
// including base setup file
include_once (JPATH_ROOT."/templates/".$this->template.'/lib/php/dj_setup.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 $this->language; ?>"
lang="<?php echo $this->language; ?>"
dir="<?php echo $direction; ?>">
<head>
<?php
// including template header files
include_once (JPATH_ROOT."/templates/".$this->template.'/lib/php/dj_head.php');
JHTML::_('behavior.mootools');
?>

<title></title>
</head>

<body>
</body>
</html>

------------------------------------------------------------------------

Discussion