MyBB Community Forums

Full Version: Corrupted Theme Export
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I was trying to export and reimport the theme for Swim Forums, but it kept giving me a Corrupted Error when I tried importing.

I uploaded it via FTP to see if it would work, but it didn't. So I looked at the file, and it's giving me this error:

XML Parsing Error: unclosed token
Location: (THEME LOCATION
Line Number 3444, Column 2: </te
--------^


Taking a closer look at the source code, the very last template that it seems to export is portal_welcome, which contains the following code:

<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead"><strong>{$lang->welcome}</strong></td>
</tr>
<tr>
<td class="trow1">
{$welcometext}
</td>
</tr>
</table><br />
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr><td class="thead"><strong>Recommended Sites</strong></td></tr>
<tr><td class="trow1 smalltext">
Some sites you may find useful:<br style="margin-bottom:10px" />
&raquo; <a href="http://www.swimcoachtools.com">Swim Coach Tools</a><br />
&raquo; <a href="http://www.fina.org">FINA Official Website</a><br />
&raquo; <a href="http://www.usaswimming.org/usasweb/DesktopDefault.aspx">USA Swimming Official Site</a>
</td>
</tr>
</table>
<br />

And here are the last 6 lines of the XML, showing that something caused it to stop:
&raquo; <a href="http://www.usaswimming.org/usasweb/DesktopDefault.aspx">USA Swimming Official Site</a>
</td>
</tr>
</table>
<br />]]></template>
	</te
I had this same problem. Only at the end I only had </theme instead of </theme>
Any way you know to fix it?
I just opened the file in XML Notepad and went to the very last line and edited it.
OK, I was just worried that some templates were missing.
This is still a bug though.
I closed it to say </templates> and now I'm getting:

XML Parsing Error: no element found
Location: (THEME URL )
Line Number 3444, Column 14: </templates>
--------------------^

Fixed it, forgot to add '</theme>' as well.
Oh sorry I didnt see that it cut off the </templates> part for you. For me it only cut off part of the </theme> part.