Magento

eCommerce Software for Online Growth

Magento Forum

From setting up your store to managing your products, pages and promotions to generating detailed reports, the Magento User Guide empowers the user to utilize the platform for all of its vast capacity.
Available in eBook and Print formats – Download Now!!!
   
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
Guru
 
Avatar
Total Posts:  301
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
Tweakmag Advanced RSS Feeds - A Powerful Marketing Solution

 
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 2010 Magento Inc.
Privacy Policy|Terms of Service
Magento Community Count
194420 users|716 users currently online|363829 forum posts