Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: kittonium on June 26, 2018, 08:38:53 PM

Title: Can't delete a theme after forum reset
Post by: kittonium on June 26, 2018, 08:38:53 PM
I've reinstalled my forum (2.0.14 to 2.0.15) but kept the same database.

I need to remove icecube, as i don't have it anymore (doesn't exist in the files)
but theres no check, but theres a check to remove the Default (???)
how can i set the default to Default and remove icecube?

(https://i.imgur.com/4Xddqsl.png)
Title: Re: Can't delete a theme after forum reset
Post by: GigaWatt on June 26, 2018, 09:15:54 PM
You have to delete it from the database. Open the database in phpMyAdmin and look for the *something*_themes (most likely smf_themes) table. Click on it and set the sorting of the table by the id_theme column, but in a reverse order (from a larger to a smaller value). The Core theme should have a value of 2, the Curve theme should have a value of 1. Any other theme should have a value greater than 1 or 2. Delete all rows that don't contain a 1 or a 2 in the id_theme column and that should leave you with only the core themes to choose from. Don't forget to do a clear reload of the admin menu (Ctrl + F5) after you do this.

Oh, and of course, make a database backup before you do any of this ;).
Title: Re: Can't delete a theme after forum reset
Post by: Kindred on June 26, 2018, 10:21:37 PM
You have something very wrong. You should never be able to delete the default theme
Title: Re: Can't delete a theme after forum reset
Post by: GigaWatt on June 27, 2018, 03:17:05 PM
I was not referring to the default theme, I was referring to icecube_20rc5. If it was the only other theme installed except the core and default theme, it should have an id_theme value of 3. Deleting all rows that contain an id_theme value other than 1 or 2, should get rid of all of other themes that appear in the Themes Admin menu.

And definitely do not delete any rows that contain an id_theme value of 1 or 2. Those are the settings for the default and core themes. In any case, first make a backup of the database before you do anything inside phpMyAdmin.
Title: Re: Can't delete a theme after forum reset
Post by: Aleksi "Lex" Kilpinen on June 27, 2018, 03:18:27 PM
I think Kindred was referring to the picture, it has the option to delete Default, but not the icecube. There's something fishy.
Title: Re: Can't delete a theme after forum reset
Post by: GigaWatt on June 27, 2018, 08:00:18 PM
Oh, yeah, I just noticed that.