Okay I think I get what you mean haha 
Basically, if you choose a theme with a variation and then switch to a completly different theme it tries to use the same variation with that theme.
I'll look into this and post a fix soon
Okay, fixed. Simply open / modules / theme_manager / code / controller.ext.php and replace:
with this instead:

Basically, if you choose a theme with a variation and then switch to a completly different theme it tries to use the same variation with that theme.
I'll look into this and post a fix soon

Okay, fixed. Simply open / modules / theme_manager / code / controller.ext.php and replace:
Code:
static function ExecuteUpdateTheme($uid, $theme)
{
global $zdbh;
$sql = $zdbh->prepare("
UPDATE x_accounts
SET ac_usertheme_vc = :theme
WHERE ac_reseller_fk = :uid
OR ac_id_pk = :uid2");
$sql->bindParam(':theme', $theme);
$sql->bindParam(':uid', $uid);
$sql->bindParam(':uid2', $uid);
$sql->execute();
return true;
}
Code:
static function ExecuteUpdateTheme($uid, $theme)
{
global $zdbh;
/* Set CSS back to default */
self::ExecuteUpdateCSS($uid, 'default');
/* Set new theme */
$sql = $zdbh->prepare("
UPDATE x_accounts
SET ac_usertheme_vc = :theme
WHERE ac_reseller_fk = :uid
OR ac_id_pk = :uid2");
$sql->bindParam(':theme', $theme);
$sql->bindParam(':uid', $uid);
$sql->bindParam(':uid2', $uid);
$sql->execute();
return true;
}
Before posting, update your profile with your OS, Sentora version and server type!