You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following errors were encountered:
MyBB could not find the theme with the file you uploaded. Please check the file is the correct and is not corrupt.
The Theme File isn't corrupt as the same issue happen when i import the theme again, export it and try to import the exported version.
Would be nice if anyone could help me there.
The text was updated successfully, but these errors were encountered:
While I'm not sure about the cause of the issue, I was able to consistently replicate it on my sites that use myBB as well. I have not tried on a fresh install, and will see if I can do that soon.
Essentially, I'd export a theme out of the myBB admin panel, and immediately be unable to re-import it. I would consistently get the above error mentioned. After inspecting the XML file, I found a consistent set of fixes for when I encountered the issue.
For those searching, this is the fix that has worked every time for me:
Steps to Fix
Export the theme as usual
Open the XML file it gives you in a text editor
Remove the line that says <?xml version="1.0" encoding="UTF-8"?>, and remove any blank lines that come before the starting <theme tag.
Scroll to the very bottom of the file. You will find an unfinished closing tag: </the. Fix it to </theme>
Save the XML file
Import the Theme. Will work flawlessly now
Observations
Consistent issues with the XML files were:
Importer did not like the prepended <?xml> tag
The ending "" was consistently getting cut off to "</the"
Full Error (shown in an red box)
The Theme File isn't corrupt as the same issue happen when i import the theme again, export it and try to import the exported version.
Would be nice if anyone could help me there.
The text was updated successfully, but these errors were encountered: