Question

Recently I was migrating a web page from joomla 1.5 -> joomla 3.2. The template itself works great. The content is not displayed because of the tag.

The written code I have in my index is as:

<?php
defined('_JEXEC') or die('Restricted access'); // no direct access
JHtml::_('behavior.framework',true);
require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'functions.php';
$document = null;
if (isset($this))
    $document = & $this;
$baseUrl = $this->baseurl;
$templateUrl = $baseUrl . '/templates/' . $this->template;

artxComponentWrapper($document);
?>
<!DOCTYPE html>
<html xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>"
  xmlns:jdoc="http://www.w3.org/1999/XSL/Transform">
<head>
  <jdoc:include type="head" name="all" />
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
  <link rel="stylesheet" href="<?php echo $this->baseUrl; ?>/templates/system/css/system.css" type="text/css" />
  <link rel="stylesheet" href="<?php echo $this->baseUrl; ?>/templates/system/css/general.css" type="text/css" />
  <link rel="stylesheet" type="text/css" href="<?php echo $templateUrl; ?>/css/template.css" media="screen" />

  <!--[if IE 7]><link rel="stylesheet" href="<?php echo $templateUrl; ?>/css/template.ie7.css" type="text/css" media="screen" /><![endif]-->
  <script type="text/javascript" src="<?php echo $templateUrl; ?>/script.js"></script>
</head>
...
</html>

And this renders as:

<html xml:lang="sl-si" lang="sl-si" xmlns:jdoc="http://www.w3.org/1999/XSL/Transform" class="chrome  win">
<head>
  <style type="text/css"></style>
</head>
<body>
  <jdoc:include type="head" name="all">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7">
    <link rel="stylesheet" href="/templates/system/css/system.css" type="text/css">
    <link rel="stylesheet" href="/templates/system/css/general.css" type="text/css">
    <link rel="stylesheet" type="text/css" href="/TKMS/templates/tkms_theme/css/template.css" media="screen">
    <!--[if IE 7]><link rel="stylesheet" href="/TKMS/templates/tkms_theme/css/template.ie7.css" type="text/css" media="screen" /><![endif]-->
    <script type="text/javascript" src="/TKMS/templates/tkms_theme/script.js"></script>
    <!--CONTENT-->..
  </jdoc:include>

Why does this happen? How can I fix this? I read that this happens because of BOM, but I could not fix it.

Was it helpful?

Solution 2

The problem is that the theme is an Artisteer theme. To solve this issue simply open the .artx theme and export for other joomla version. If you don't have the .artx file then I cannot help you because I deemed the problem unsolvable.

OTHER TIPS

try to move the

  <jdoc:include type="head" name="all">

tag into the head-tags, right (You have it in the body). That's at least where it's supposed to be. Not sure if it will actually render, though...

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top