SMF "theme_values" missing on Wamp64 Installs

Started by AmerikanMetz, August 12, 2019, 12:08:16 AM

Previous topic - Next topic

AmerikanMetz

On two installs (fresh and old) I cannot install themes. I get:

Quote from: An error has occurred
The database value you're trying to insert does not exist: theme_values

I can't find any information on the error, or database to make any repairs. I need help ASAP. I can't install/manage any themes.

Anything anyone can suggest would be helpful, thanks.

Sir Osis of Liver

theme_values is not a valid column name in 2.1 (or 2.0).
When in Emor, do as the Snamors.
                              - D. Lister

shawnb61

Are the themes designed for 2.1? 

Most 2.0 themes won't work on 2.1, you need to confirm compatibility. 

SOoL - yes, theme_values is not a column name, but it is used as a key in an array during theme maintenance in 2.1.
A question worth asking is born in experience & driven by necessity. - Fripp

Sir Osis of Liver

Didn't know that, I see it now in Subs-Themes.php.  But strictly speaking, it's not a database value.

When in Emor, do as the Snamors.
                              - D. Lister

AmerikanMetz

Quote from: shawnb61 on August 12, 2019, 12:21:23 AM
Are the themes designed for 2.1? 

Most 2.0 themes won't work on 2.1, you need to confirm compatibility. 

SOoL - yes, theme_values is not a column name, but it is used as a key in an array during theme maintenance in 2.1.

There aren't many themes for SMF 2.1, I used Badem as a base, it included this field, and is marked 2.1 RC2.

Quote from: Theme XML<install for="2.1 - 2.1.99, 2.1 RC2" />

I figured since removing this XML also causes errors, I should use it, so I set the ID for badem as the theme it was based on. This causes the errors. You have to leave the field blank. Seems like a simple fix to include this field to the database, and seems to be a needed field for things such as theme licenses and based on credits.

I based on Badem  because it was modern looking theme for a base that wasn't straight out of 2002.

Arantor

Given that "theme it was based on" is for loading things from that theme, yes, you need to leave it blank unless the user actually has Badem installed and in a folder named that.
Holder of controversial views, all of which my own.


Advertisement: