Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

CSSThemes - default Vanilla 2 plugin error

edited May 2010 in Vanilla 2.0 - 2.8
Hey all,

Just wanted to raise awareness of an error when re-enabling the CSSThemes plugin on Vanilla 2 (if you've had it enabled and disabled previously) - I receive a Fatal Error in Gdn_Database.Query(); as follows:

Duplicate entry 'Banner Background Color' for key 'PRIMARY'
insert GDN_ThemeSetting (Name, Setting) values ('Banner Background Color', '#44c7f4'),
('Banner Font Color', '#fff'),
('Banner Font Shadow Color', '#30ACD6'),
('Banner Hover Font Color', '#f3fcff'),
('Body Alt Background Color', '#f8f8f8'),
('Body Background Color', '#ffffff'),
('Body Default Font Color', '#000'),
('Body Heading Font Color', '#000'),
('Body Hover Font Color', '#ff0084'),
('Body Line Color', '#eee'),
('Body Link Font Color', '#2786c2'),
('Body Subheading Font Color', '#6C6C6C'),
('Body Text Font Color', '#555'),
('Discussion My Background Color', '#F5FCFF'),
('Discussion New Background Color', '#ffd'),
('Menu Background Color', '#44c7f4'),
('Menu Font Color', '#fff'),
('Menu Hover Background Color', '#28bcef'),
('Menu Hover Font Color', '#fff'),
('Meta Font Color', '#2b2d33'),
('Meta Label Font Color', '#80828c'),
('Panel Background Color', '#E9F9FF'),
('Panel Font Color', '#2786C2'),
('Panel Hover Font Color', '#e9f9ff'),
('Panel Inlay Background Color', '#f0fbff'),
('Panel Inlay Border Color', '#caf0fe'),
('Panel Inlay Font Color', '#0766a2'),
('Panel Selected Background Color', '#fff'),
('Panel Selected Font Color', '#ff0084')
The error occurred on or near: /

I can see that when re-enabling CSSThemes, it presumably doesn't check to see if the fields are already in the database before trying to insert/create them again.


  • Options
    due to the active development of vanilla 2, the plugins are currently subject to non-stability. Once an official release hits the addon developers would be more inclined to update accordingly.

    I'm hoping the css editor/theme editor will be updated to include a file editor, that would be great

    @Mark Have you ever thought about canned responses?
  • Options
    Cheers @bobtheman, that makes sense. I hope Vanilla/Garden reaches an official release soon because it's bloody fantastic!
Sign In or Register to comment.