Hi. I am having trouble with my wordpress installation. I have upgraded to the 2.3.3 release and after my previous install I had this error. It was not corrected with this upgrade and I have no idea what to do to fix it. It does not seem to be effecting my blog functionality that I can see.

Parse error: syntax error, unexpected T_STRING in /home/lezigan/.fantasticodata/WordPress/wordpress.2007-12-28.xml on line 1
/ (2.3.3)

Any help would be greatly appreciated - Thank you

    We'll need to see the first few lines of the file mentioned in the error message. Please copy-and-paste them within

     [url=http://phpbuilder.com/board/misc.php?do=bbcode]bbcode tags[/url] to make it easy to read and possibly reveal the error by the color-coding that is applied.

      (Changed [ CODE ] tags to [ PHP ] tags -- NogDog)

      <?xml version="1.0" encoding="UTF-8"?>
      <!-- This is a WordPress eXtended RSS file generated by WordPress as an export of your blog. -->
      <!-- It contains information about your blog's posts, comments, and categories. -->
      <!-- You may use this file to transfer that content from one site to another. -->
      <!-- This file is not intended to serve as a complete backup of your blog. -->
      
      <!-- To import this information into a WordPress blog follow these steps. -->
      <!-- 1. Log into that blog as an administrator. -->
      <!-- 2. Go to Manage: Import in the blog's admin panels. -->
      <!-- 3. Choose "WordPress" from the list. -->
      <!-- 4. Upload this file using the form provided on that page. -->
      <!-- 5. You will first be asked to map the authors in this export file to users -->
      <!--    on the blog.  For each author, you may choose to map to an -->
      <!--    existing user on the blog or to create a new user -->
      <!-- 6. WordPress will then import each of the posts, comments, and categories -->
      <!--    contained in this file into your blog -->
      
      <!-- generator="wordpress/MU" created="2007-12-28 04:13"-->
      <rss version="2.0"
      	xmlns:content="http://purl.org/rss/1.0/modules/content/"
      	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
      	xmlns:dc="http://purl.org/dc/elements/1.1/"
      	xmlns:wp="http://wordpress.org/export/1.0/"
      
      
      <channel>
      	<title>Its A Dogs Life</title>
      	<link>http://pawspark.wordpress.com</link>
      	<description>The site dedicated to my life - that's gone to the dogs!</description>
      	<pubDate>Thu, 27 Dec 2007 14:14:26 +0000</pubDate>
      	<generator>http://wordpress.org/?v=MU</generator>
      	<language>en</language>
      	<wp:wxr_version>1.0</wp:wxr_version>
      	<wp:base_site_url>http://wordpress.com/</wp:base_site_url>
      	<wp:base_blog_url>http://pawspark.wordpress.com</wp:base_blog_url>
      	<wp:category><wp:category_nicename>blogroll</wp:category_nicename><wp:category_parent></wp:category_parent><wp:cat_name><![CDATA[Blogroll]]></wp:cat_name></wp:category>
      	<wp:category><wp:category_nicename>dog</wp:category_nicename><wp:category_parent></wp:category_parent><wp:cat_name><![CDATA[Dog]]></wp:cat_name></wp:category>
      	<wp:category><wp:category_nicename>foster</wp:category_nicename><wp:category_parent></wp:category_parent><wp:cat_name><![CDATA[Foster]]></wp:cat_name></wp:category>
      	<wp:category><wp:category_nicename>labrador-retrieiver</wp:category_nicename><wp:category_parent></wp:category_parent><wp:cat_name><![CDATA[Labrador Retrieiver]]></wp:cat_name></wp:category>
      	<wp:category><wp:category_nicename>playing</wp:category_nicename><wp:category_parent></wp:category_parent><wp:cat_name><![CDATA[Playing]]></wp:cat_name></wp:category>
      	<wp:category><wp:category_nicename>saint-bernard</wp:category_nicename><wp:category_parent></wp:category_parent><wp:cat_name><![CDATA[Saint Bernard]]></wp:cat_name></wp:category>
      	<wp:category><wp:category_nicename>st-bernard</wp:category_nicename><wp:category_parent></wp:category_parent><wp:cat_name><![CDATA[St Bernard]]></wp:cat_name></wp:category>
      	<wp:category><wp:category_nicename>uncategorized</wp:category_nicename><wp:category_parent></wp:category_parent><wp:cat_name><![CDATA[Uncategorized]]></wp:cat_name></wp:category>
      	<wp:tag><wp:tag_slug>3275901</wp:tag_slug></wp:tag>
      	<wp:tag><wp:tag_slug>3277144</wp:tag_slug></wp:tag>
      	<wp:tag><wp:tag_slug>3414195</wp:tag_slug></wp:tag>
      	<wp:tag><wp:tag_slug>3414597</wp:tag_slug></wp:tag>
      	<wp:tag><wp:tag_slug>3416549</wp:tag_slug></wp:tag>
      	<wp:tag><wp:tag_slug>3528635</wp:tag_slug></wp:tag>
      	<wp:tag><wp:tag_slug>3528086</wp:tag_slug></wp:tag>
      	<wp:tag><wp:tag_slug>3643746</wp:tag_slug></wp:tag>
      	<wp:tag><wp:tag_slug>3646833</wp:tag_slug></wp:tag>
      	<wp:tag><wp:tag_slug>3646300</wp:tag_slug></wp:tag>
      	<wp:tag><wp:tag_slug>3646490</wp:tag_slug></wp:tag>
      	<wp:tag><wp:tag_slug>3644500</wp:tag_slug></wp:tag>
      		<item>

        The problem is that you have the short_open_tag option enabled, and the file is being sent through the PHP parser, thus the PHP parser interprets the "<?xml" as a "<?" PHP start tag followed by the text which follows as un-parsable PHP code.

        You'll either need to turn off that option (realizing that any PHP scripts that use short tags will need to be edited), change the file suffix or your web server settings so that the file is not processed through the PHP parser, or actually use PHP to output that xml tag:

        <?php echo '<?xml version="1.0" encoding="UTF-8"?>'; ?>
        
          Write a Reply...