VISIT AND LIKE OUR PAGE ON FACEBOOK
TAKE A LOOK AT OUR TWEETS ON TWITTER
SUBSCRIBE TO THE JOOMFREAK RSS FEED
VISIT OUR CHANNEL ON YOUTUBE

Account Details

Change your name, email, password or permanently delete your account. Change settings

We offer several ways you can get support from our experts: Support ForumKnowledgebaseNewsletter

Your Forum Posts

No posts to display.

Welcome, Guest
Username Password: Remember me

XML Parsing Error after adding a position
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: XML Parsing Error after adding a position

XML Parsing Error after adding a position 01 Oct 2012 04:20 #1149

Hi everyone,

I've got a problem after downloading and installing my first module but I think it should be an easy one for you all.
I added a position in order to have a simple slideshow module running with this site. Below is what I did.

in index.php

<div class="slideshow"></div>

was added before the menu position since I wanted it to be above the main menu.
So the code looks like so:
-------------------------
<div class="header">
<div class="header-left">
<h1 class="logo"><a href="index.php" title="<?php echo $title; ?>"><span><?php echo $title; ?></span></a></h1></div>

<div class="header-right">
<?php if (CountModules($document, 'breadcrumb')) echo Post(null, Modules($document, 'breadcrumb'));?>
<div class="topmenu"></div>
</div>
<div class="cleared"></div>
<div class="slideshow"></div>
</div>
<div id="menu_bg"><div id="horiz-menu" class="nav"><?php echo $main_navigation;?></div></div>
-------------------------

in templateDetails.xml

A line <position>slideshow</position> was added below position user3.
-------------------------
<positions>
<position>breadcrumb</position>
<position>right</position>
<position>banner</position>
<position>user1</position>
<position>user2</position>
<position>user3</position>
<position>slideshow</position>
<position>user4</position>
<position>footer</position>
<position>copyright</position>
<position>syndicate</position>
</positions>
-------------------------

Everything seems to work fine but whenever I enter the Template manager page, I see "XML Parsing Error at 105:1. Error 5: Invalid document end" on top of all the templates. Also, when I save after editing the HTML file, I'll see :XML Parsing Error at 103:11. Error 5: Invalid document end" twice as well as the file is saved successfully message.

I don't know where and how I can fix this problem. Please kindly give me a hand on this. Your help will be highly appreciated.

The site is at 140.136.187.3/joomla15/.
Last Edit: 01 Oct 2012 04:23 by meankid76.

  • Posts:5
  • meankid76
  • Fresh Boarder
  • OFFLINE
  • Karma: 0

Re: XML Parsing Error after adding a position 01 Oct 2012 05:35 #1150

Could you try to restore old xml file? We don't need add position to xml. You can use directly this position in Module manager.
  • mars

Re: XML Parsing Error after adding a position 01 Oct 2012 06:22 #1151

Yes, it works!

It was from joomla and joomlart I learned how to add positions.

Both of them indicating adding position tag in XML file.

Thank you very much!
Wish you a nice day!

  • Posts:5
  • meankid76
  • Fresh Boarder
  • OFFLINE
  • Karma: 0
  • Page:
  • 1
Time to create page: 0.78 seconds
Wednesday 22 May 2019

joomfreak is not affiliated with or endorsed by the Joomla Project or Open Source Matters.
The Joomla logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.