Call-back icon  Enterprise Sales: +1.310.775.2674 (N. America)   +44 20.3286.4137 (UK)

Magento

eCommerce Software for Online Growth

Magento Forum

   
Huge error when changing the site title…. 
 
jm999
Jr. Member
 
Total Posts:  12
Joined:  2007-10-16
 

I’ve been trying to customize app/design/frontend/default/default/etc/config.xml in order to insert my meta info and site title. Well I tried to update the site title and got this error:

Warning: simplexml_load_string() [function.simplexml-load-string]: Entity: line 52: parser error : Extra content at the end of the document in /home/punkshir/public_html/dev/lib/Varien/Simplexml/Config.php on line 314

Then it goes through about 20 more errors, probably the snowball effect.

I made sure that I was ONLY editing the title and not accidentally deleting anything else. Every time I attempt to change the title I get the error if I go beyond a certain amount of characters. Anyone else have this problem or know why its happening? Here is my config.xml:

<?xml version="1.0"?>
<!--
/**
 * Magento
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Open Software License (OSL 3.0)
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://opensource.org/licenses/osl-3.0.php
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@magentocommerce.com so we can send you a copy immediately.
 *
 * @category   design_default
 * @package    Mage
 * @copyright  Copyright (c) 2004-2007 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
 * @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
 */
-->
<
config>
    <
page>
        <
head>
            <
title>Punk Shirts</title>
            <
media_type>text/html</media_type>
            <
charset>utf8</charset>
            <
description>Default Description</description>
            <
keywords>MagentoVarienE-commerce</keywords>
            <
robots>*</robots>
        </
head>
        <
header>
            <
logo_src>images/logo.gif</logo_src>
            <
logo_alt>Magento Commerce</logo_alt>
            <
welcome>Default welcome msg!</welcome>
        </
header>
        <
footer>
            <
copyright><![CDATA[&copy2007 Magento Demo StoreAll Rights Reserved.]]></copyright>
        </
footer>
    </
page>

    <
themes>
       <default>

       </default>

       <
xmas>
           <
fallback_theme>default</fallback_theme>
       </
xmas>
    </
themes>
</
config>

Here is what I tried to change it to :

<?xml version="1.0"?>
<!--
/**
 * Magento
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Open Software License (OSL 3.0)
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://opensource.org/licenses/osl-3.0.php
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@magentocommerce.com so we can send you a copy immediately.
 *
 * @category   design_default
 * @package    Mage
 * @copyright  Copyright (c) 2004-2007 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
 * @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
 */
-->
<
config>
    <
page>
        <
head>
            <
title>Punk Shirts PunkShirts.Net</title>
            <
media_type>text/html</media_type>
            <
charset>utf8</charset>
            <
description>Default Description</description>
            <
keywords>MagentoVarienE-commerce</keywords>
            <
robots>*</robots>
        </
head>
        <
header>
            <
logo_src>images/logo.gif</logo_src>
            <
logo_alt>Magento Commerce</logo_alt>
            <
welcome>Default welcome msg!</welcome>
        </
header>
        <
footer>
            <
copyright><![CDATA[&copy2007 Magento Demo StoreAll Rights Reserved.]]></copyright>
        </
footer>
    </
page>

    <
themes>
       <default>

       </default>

       <
xmas>
           <
fallback_theme>default</fallback_theme>
       </
xmas>
    </
themes>
</
config>

 
Magento Community Magento Community
Magento Community
Magento Community
 
jm999
Jr. Member
 
Total Posts:  12
Joined:  2007-10-16
 

I even wiped the db and did a fresh install, only to get the same error. Whats the deal? I followed the instructions from the “Designing For Magento” tutorial.  Is it a problem with my host? Is there some kind of character limit built in?  I’d really appreciate any feedback whatsoever.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Tweakmag
Sr. Member
 
Avatar
Total Posts:  284
Joined:  2007-08-31
London, UK
 

have you tested without using the . (dot) or - (hyphen) - it maybe an illegal character issue? That would be the first thing I would test. Also from a SEO standpoint, there is no advantage in putting the domain address in the title of the site - I think users already know what site they are at smile And it gives less relevance to the search phrase “punk shirts”

 Signature 

adam martin: internet consultant / web developer
contact | ukoffice@tweakmag.com
http://www.tweakmag.com - Tweaking and Customizing The Magento eCommerce Platform

 
Magento Community Magento Community
Magento Community
Magento Community
 
Moshe
Magento Team
 
Avatar
Total Posts:  1771
Joined:  2007-08-07
Los Angeles
 

I’ve just got your XML and tested on my copy works perfectly.. The error says that there’s some unexpected content after closing </config> tag.. maybe some editor artifact?..

 Signature 

- I would love to change the world, but they won’t give me the source code -

 
Magento Community Magento Community
Magento Community
Magento Community
 
jm999
Jr. Member
 
Total Posts:  12
Joined:  2007-10-16
 

Thanks for the suggestions. I’ve tried it without the hyphen and period. I even did a test where I just added some words after the original title and it still gave me the error. But if I keep it under a certain amount of characters I don’t get an error. First I used Dreamweaver to edit the xml, then resorted to using TextEdit in plain text mode. Any other suggestions? Thanks.

 
Magento Community Magento Community
Magento Community
Magento Community
 
jm999
Jr. Member
 
Total Posts:  12
Joined:  2007-10-16
 

Hmm. Seems to be working now. I downloaded JEdit and edited the file through that, then uploaded. That seems to have fixed whatever the issue was. Thanks again for the helpful tips folks.

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top
 
© Copyright 2009 Varien. Magento, eCommerce software, is a trademark of Irubin Consulting Inc. DBA Varien
Privacy Policy|Terms of Service
Magento Community Count
108702 users|438 users currently online|199775 forum posts