[Plugin: Formbuilder] can’t create new form
-
Just installed FormBuilder v 0.852
When I try to create a new form, I get the following error message:
Unable to create new form. Attempted to run the following SQL:
INSERT INTO wp_an4nql_formbuilder_forms(name,subject,recipient,thankyoutext) VALUES (‘New Form’, ‘Generic Website Feedback Form’, ‘[email protected]’, ”);Is there a fix for this?
Kind Thanks,
Troy
-
Hey Troy,
What platform are you running on?
WordPress Version
Server Type (IIS or Apache)
MySQL version
….James W
i’m having the same problem
wp 3.0.1
apache
mysql v. 5.1my message looks exactly the same as above…well, obviously with my email address.
thanks in advance for any help.
nate
well, i think i found my problem, although i haven’t yet found a solution. upon activation i get the following mysql errors.
Failed running query: CREATE TABLE IF NOT EXISTS
wp_8yuo70_formbuilder_fields(idbigint(20) NOT NULL auto_increment,form_idbigint(20) NOT NULL default ‘0’,display_orderint(11) NOT NULL default ‘0’,field_typevarchar(255) NOT NULL default ”,field_namevarchar(255) NOT NULL default ”,field_valuetext NOT NULL,field_labeltext NOT NULL,required_datavarchar(255) NOT NULL default ”,error_messagetext NOT NULL, UNIQUE KEYid(id) ) DEFAULT CHARACTER SET DB_CHARSET COLLATE DB_COLLATE;Failed running query: CREATE TABLE IF NOT EXISTS
wp_8yuo70_formbuilder_forms(idbigint(20) NOT NULL auto_increment,namevarchar(255) NOT NULL default ”,subjecttext NOT NULL,recipienttext NOT NULL,methodenum(‘POST’,’GET’) NOT NULL default ‘POST’,actionvarchar(255) NOT NULL default ”,thankyoutexttext NOT NULL,autoresponsebigint(20) NOT NULL default ‘0’, UNIQUE KEYid(id) ) DEFAULT CHARACTER SET DB_CHARSET COLLATE DB_COLLATE;Failed running query: CREATE TABLE IF NOT EXISTS
wp_8yuo70_formbuilder_pages(idbigint(20) NOT NULL auto_increment,post_idbigint(20) NOT NULL default ‘0’,form_idbigint(20) NOT NULL default ‘0’, UNIQUE KEYid(id) ) DEFAULT CHARACTER SET DB_CHARSET COLLATE DB_COLLATE;Failed running query: CREATE TABLE IF NOT EXISTS
wp_8yuo70_formbuilder_responses(idbigint(20) NOT NULL auto_increment,namevarchar(255) NOT NULL default ”,subjecttext NOT NULL,messagetext NOT NULL,from_namevarchar(255) NOT NULL default ”,from_emailvarchar(255) NOT NULL default ”, PRIMARY KEY (id) ) DEFAULT CHARACTER SET DB_CHARSET COLLATE DB_COLLATE;Failed running query: CREATE TABLE IF NOT EXISTS
wp_8yuo70_formbuilder_results(idbigint(20) unsigned zerofill NOT NULL auto_increment,form_idbigint(20) unsigned zerofill NOT NULL default ‘00000000000000000000’,timestampbigint(20) unsigned zerofill NOT NULL,xmldatalongtext NOT NULL, PRIMARY KEY (id), KEYform_id(form_id,timestamp) ) DEFAULT CHARACTER SET DB_CHARSET COLLATE DB_COLLATE;i got these with version 0.852…uninstalled that, and got the same with 0.84
got past the query problem. it’s installed.
however i’m still getting the “Formbuilder needs to be configured” and this same error…
“Unable to create new form. Attempted to run the following SQL:
INSERT INTO wp_8yuo70_formbuilder_forms(name,subject,recipient,thankyoutext) VALUES (‘New Form’, ‘Generic Website Feedback Form’, ‘[email protected]’, ”);”still have not come close to making this work.
probably gonna have to look at other form plugins
Bump
WordPress version: 3.0.1
FormBuilder: v 0.852Database errors when I first visit the admin page, as detailed above.
Solved:
I logged in to phpMyAdmin and tried pasting the SQL CREATE TABLE statements in manually and got the following error:MySQL said: Documentation #1115 - Unknown character set: 'DB_CHARSET'I went to the Home page and made note of the following fields on the overview page:
MySQL charset: UTF-8 Unicode (utf8)
MySQL connection collation: utf8_unicode_ciI then copied the database error messages pasted them into the SQL tab for the WordPress db, removed the texts ‘Failed running query’ from each, replaced the string
DEFAULT CHARACTER SET DB_CHARSET COLLATE DB_COLLATE
with
DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci
..and successfully executed the statements. I can now create forms.
Neither DB_CHARSET or DB_COLLATE are defined in my wp-config.php file. The following guide says to leave them undefined:
http://codex.ww.wp.xz.cn/Editing_wp-config.php#Database_collationHey brylie,
Looks like you found the problem. I guess some WordPress installs don’t include the predefined DB_CHARSET and COLLATE constants. Strange… Anyway, I’ll update the FB code to check for those in the next version. thanks for helping us figure this out.
James W.
The topic ‘[Plugin: Formbuilder] can’t create new form’ is closed to new replies.