close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

PowerCMS error

Thread began 10/02/2013 10:04 am by russb335115 | Last modified 10/02/2013 1:30 pm by russb335115 | 5827 views | 12 replies |

russb335115

PowerCMS error

I get this error when trying to load my admin user name and password, everything work great up to this point. This is at step 4 of 5 in the install

"ERROR: Failed to save the settings in the database. Please verify your database connection."

I have check the connection in Dreamweaver and it is working fine.

Sign in to reply to this post

Jason ByrnesWebAssist

This error hapens if the wa_settings table falils to be created.

Run the following SQL Command using PHPMyAdmin to create the wa_settings table:

CREATE TABLE IF NOT EXISTS wa_settings (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(50) COLLATE latin1_bin DEFAULT NULL,
`type` varchar(50) COLLATE latin1_bin DEFAULT NULL,
`options` text COLLATE latin1_bin,
`value` varchar(255) COLLATE latin1_bin DEFAULT NULL,
`grp` varchar(50) COLLATE latin1_bin DEFAULT NULL,
`subcategory` varchar(50) COLLATE latin1_bin DEFAULT NULL,
`cond` varchar(255) COLLATE latin1_bin DEFAULT NULL,
`description` varchar(255) COLLATE latin1_bin DEFAULT NULL,
`variable` varchar(50) COLLATE latin1_bin DEFAULT NULL,
`weight` float DEFAULT NULL,
`spry_args` text COLLATE latin1_bin,
`spry_error` text COLLATE latin1_bin,
`help_text` text COLLATE latin1_bin,
PRIMARY KEY (id)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_bin;

INSERT INTO `wa_settings` (`name`,`type`,`options`,`value`,`grp`,`subcategory`,`cond`,`description`,`variable`,`weight`,`spry_args`,`spry_error`,`help_text`)
VALUES
('Site Name', NULL, NULL, 'My Site', NULL, NULL, NULL, NULL,'Site_Name', NULL, NULL, NULL, NULL),
('Serial Number', NULL, NULL, '@@serial_number@@', NULL, NULL, NULL, NULL,'PCMS_Serial', NULL, NULL, NULL, NULL),
('Image Upload Folder', NULL, NULL, 'files', NULL, NULL, NULL, NULL, 'images_folder', NULL, NULL, NULL, NULL),
('Disable Images Upload', NULL, NULL, 0, NULL, NULL, NULL, NULL, 'dis_images_upload', NULL, NULL, NULL, NULL);
Sign in to reply to this post

russb335115

Okay that worked and it took me to the login page, when I logged the UI didn't show up and I got this message:

Table 'antronix_admin2013.pcms2_users' doesn't exist

Sign in to reply to this post

Jason ByrnesWebAssist

Looks like it didn't run the db script to create the tables for some reason.

use the install_cms/scripts/db.sql file to create the CMS tables.

Sign in to reply to this post

russb335115

I copy the code and pasted it into the SQL and ran it but got an error:

Error
SQL query:

--
-- Dumping data for table `optiongroups`
--
INSERT INTO `optiongroups` ( `OptionGroupID` , `OptionGroupName` )
VALUES ( 1, 'color' ) , ( 2, 'size' ) ;


MySQL said:

#1062 - Duplicate entry '1' for key 1

Sign in to reply to this post

Jason ByrnesWebAssist

Ok, i guess, some tables did get created.

use this sql to crreate the users table:

CREATE TABLE `pcms2_users` (
`UserID` int(11) NOT NULL auto_increment,
`UserEmail` varchar(500) default NULL,
`UserPassword` varchar(500) default NULL,
`UserFirstName` varchar(50) default NULL,
`UserLastName` varchar(50) default NULL,
`UserCity` varchar(90) default NULL,
`UserState` varchar(20) default NULL,
`UserZip` varchar(12) default NULL,
`UserEmailVerified` tinyint(1) default '0',
`UserRegistrationDate` timestamp NULL default CURRENT_TIMESTAMP,
`UserVerificationCode` varchar(20) default NULL,
`UserIP` varchar(50) default NULL,
`UserPhone` varchar(20) default NULL,
`UserFax` varchar(20) default NULL,
`UserCountry` varchar(20) default NULL,
`UserAddress` varchar(100) default NULL,
`UserAddress2` varchar(50) default NULL,
`UserGroupID` int(11) NOT NULL default '1',
PRIMARY KEY (`UserID`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
Sign in to reply to this post

russb335115

Okay now I get this in the web page:

Unknown column 'UserGroupID' in 'field list'

Sign in to reply to this post

Jason ByrnesWebAssist

I'll need to troubleshoot directly, see the private message section.

Sign in to reply to this post

russb335115

See private section

Sign in to reply to this post

Jason ByrnesWebAssist

See PM

Sign in to reply to this post
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...