Control Panel > Configure DB error

Discuss and get help installing, using and configuring SiT!

Control Panel > Configure DB error

Postby suzarte » Wed Apr 29, 2009 10:17 pm

Hi, after upgrade the SiT 3.41 for 3.45, when I'll need to change some thing in Control Panel > configure, the interface return this error.

Application Warning [512]
Table 'sit.sit_config' doesn't exist REPLACE INTO `sit_config` (`config`, `value`) VALUES ('application_name', 'Sit Central de Suporte') in /www/htdocs/sit-3.45/lib/functions.inc.php @ line 8103 trigger_error() cfgSave()
suzarte
SiT! Contributor
SiT! Contributor
 
Posts: 9
Joined: Sun Feb 08, 2009 2:19 pm

Re: Control Panel > Configure DB error

Postby ivanlucas » Thu Apr 30, 2009 10:00 am

HI Suzarte,

I think this must be a problem with the setup script, for some reason it has not created the config table needed to configure SiT with the GUI interface. I've logged it as Bug 674 you can monitor progress there.

As a work-around, to fix this you can run the following SQL which will create the config table for you:

Code: Select all
CREATE TABLE IF NOT EXISTS `config` (
  `config` varchar(255) NOT NULL,
  `value` text,
  PRIMARY KEY  (`config`)
) TYPE=MyISAM COMMENT='SiT configuration';


Note: if you are using a database prefix you'll have to change the table name above, e.g. if your db prefix is 'sit_' use:

Code: Select all
CREATE TABLE IF NOT EXISTS `sit_config` (
  `config` varchar(255) NOT NULL,
  `value` text,
  PRIMARY KEY  (`config`)
) TYPE=MyISAM COMMENT='SiT configuration';


Hope this helps,

Ivan
Ivan Lucas, Project Lead, Support Incident Tracker (SiT!) GPL. ......... Chat live on irc, #sit on freenode.
Help free software: Make a donation to the SiT! project or Join the Free Software Foundation as an Associate Member.
User avatar
ivanlucas
SiT! Developer
SiT! Developer
 
Posts: 981
Joined: Sun Feb 01, 2009 9:49 pm
Location: Derbyshire, UK

Re: Control Panel > Configure DB error

Postby suzarte » Thu Apr 30, 2009 5:21 pm

Hi, ivanlucas
you solved my problem with this work-around.

thanks so much, for fast answer.
suzarte
SiT! Contributor
SiT! Contributor
 
Posts: 9
Joined: Sun Feb 08, 2009 2:19 pm


Return to Installing, Configuring and Using SiT!

Who is online

Users browsing this forum: No registered users and 2 guests