Amtiskaw
Forum Replies Created
-
Hey, no problem. I’m in the UK myself and should probably be going to bed as well!
I seem to have got it working though. The changes I had to make were all in ninja_initial_setup in nina_forms.php. I’m guessing maybe you’ve changed the table structure recently and forgot to update the initial value population?
I had to modify the wp_ninja_forms INSERT statement to add values to the columns ‘show_title’, ‘desc’, and ‘show_desc’, and the wp_ninja_forms_fields INSERT to add an integer 1 into the ‘form_id’ column, as it was trying to put an empty string in.
OK, I found some blog on debugging plugins, and added the code for displaying errors that occur during activation. This is what I’m seeing:
WordPress database error: [Field ‘show_title’ doesn’t have a default value]
INSERT INTOwp_ninja_forms(title,mailto,subject,new,success_msg,save_subs,send_email,ajax,landing_page,append_page,email_from,email_msg,email_fields,multi,multi_options,post,post_options,save_status,save_status_options) VALUES (‘First Test Form’,’me@me.net’,”,’0′,”,’checked’,’checked’,’checked’,”, ”,”,”,”,’unchecked’,”,’unchecked’,”,’unchecked’,”)and a bit later, but I guess caused by the first error…
WordPress database error: [Incorrect integer value: ” for column ‘form_id’ at row 1]
INSERT INTOwp_ninja_forms_fields(label,type,form_id,value,field_order,req,extra,class,help) VALUES (‘New Label’,”,”,’none’,’9999′,’0′,’a:1:{s:5:\”extra\”;a:2:{s:9:\”show_help\”;s:9:\”unchecked\”;s:4:\”mask\”;s:4:\”none\”;}}’,’Comma,Separated,List’,’Sample Help Text’)Hi,
The tables are definitely there, as I can see them in the DB view. One thing is that I’m creating the site using Microsoft WebMatrix, , which manages all the PHP, MySQL and WordPress configuration itself, so maybe it’s using some slightly unusual settings? WP is also running on port 46228.
I’ll let you know if I make any progress figuring out what the problem is.
Easier said that done, as I’m developing on a localhost installation at the moment. I’ll see what I can do about getting it deployed and get back to you.
Hi, thanks for your quick response!
- 3.3.1
- 1.2.9.1
- Yes – No effect
- No