MyBB Community Forums

Full Version: Re-installing MyBB with errors. Theme stays the same
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Because of a few mistakes I did on my part while upgrading MyBB (I totally did it the wrong way), I'm attempting to re-install and replace all of the files except for the settings.php and config.php files.

After doing so, I am un-able to remove the theme the old install I had and I'm unable to upload a theme as well. It has an error message. (Forgot what it was, did this a few weeks ago)

Why does the old theme stick with the new install? And why am I un-able to upload a theme to replace it?
Themes are saved in the database so a re-installing with fresh files and the same database will show the old theme.

Would help if you told us which error message you are getting, try upload a theme and provide us with the error.
Alright, had some time to do this:

Quote:Error: MyBB could not find the theme with the file you uploaded. Please check the file is the correct and is not corrupt.

After taking a look at the XML file, there were two problems:

Large block of code before <theme>

<div class="php_warning"><strong>Warning</strong> [2] Creating default object from empty value - Line: 349 - File: C:\Users\...\localhost\newforum\admin\index.php PHP 5.4.7 (WINNT)<br />
<table style="width: 100%; margin: 10px 0; border: 1px solid #aaa; border-collapse: collapse; border-bottom: 0;" cellspacing="0" cellpadding="0" border="0">
<thead><tr>
<th style="border-bottom: 1px solid #aaa; background: #ccc; padding: 4px; text-align: left; font-size: 11px;">File</th>
<th style="border-bottom: 1px solid #aaa; background: #ccc; padding: 4px; text-align: left; font-size: 11px;">Line</th>
<th style="border-bottom: 1px solid #aaa; background: #ccc; padding: 4px; text-align: left; font-size: 11px;">Function</th>
</tr></thead>
<tbody>
<tr>
<td style="font-size: 11px; padding: 4px; border-bottom: 1px solid #ccc;">C:\Users\...\localhost\newforum\admin\index.php</td>
<td style="font-size: 11px; padding: 4px; border-bottom: 1px solid #ccc;">349</td>
<td style="font-size: 11px; padding: 4px; border-bottom: 1px solid #ccc;">errorHandler->error</td>
</tr>
</tbody></table>
</div><?xml version="1.0" encoding="UTF-8"?>
<theme name="CraftBlock" version="1609">

And the theme does not export fully. Last line of theme file:

<div class="float_left">
	<div class="float_left">
		<dl class="thread_legend smalltext">
			<dd><img src="{$theme['imgdir']}/newfolder.gif" alt="{$lang->new_thread}" title="{$lang->new_thread}" /> {$lang->n
MyBB 1.6.9 does not fully support PHP 5.4, therefore you can't export the theme properly.
Derp. And theres 1.6.10 to fix that. Thank you.