After adding new domain, first thing I do is change theme color of new domain. After changing, new domains color is saved and working, but main domain loses it's css. I don't know if it's a bug or I just use it wrong?

Comments

skizzo’s picture

Priority: Critical » Normal

I stepped into the same problem few days ago. Simply re-saving the main site theme configuration (that is: admin/build/themes/settings) fixed it for me, in Garland.

LoyC’s picture

Yes it fixes it, but after adding another domain I got same problem. Temporary fix is chmod files/color/ folder so that module can't write and delete theme information, but I think this is a bug and should be fixed.

agentrickard’s picture

Category: support » bug
Status: Active » Needs work

I don't know that it is fixable. This keeps coming up over and over again.

It's a problem with how color module stores data.

The 6.x branch is essentially critical bugfix only, so I don't intend to even look at this issue unless there is a patch.

agentrickard’s picture

BTW: I think this only happens if the main domain isn't set (is using 'default'). So the fix may be to simply save settings for the primary domain first.

agentrickard’s picture

Title: color.module crashes main domains theme » color.module resets main domains theme

*crashes* is the wrong term here.

agentrickard’s picture

Steps to replicate.

-- Set the primary domain theme.
-- Set a secondary domain theme to 'default'. It will inherit settings from the primary domain.
-- Set the secondary domain theme to something other than default. It will remove the settings for the primary domain.

If you can figure out how to stop this behavior, go for it, but color.module is a nightmare.

agentrickard’s picture

You might be able to trick this by removing the 'Bluemarine (default)' option on domain-specific settings forms. Just replace it with parameters that are 1 off. (e.g. #dc1234 becomes #dc1233). That should fool color.module.

agentrickard’s picture

Well, it does fool color.module, but then it thinks you have saved a custom theme.

dqd’s picture

Issue summary: View changes
Status: Needs work » Closed (outdated)