Problem with Form Wizard Pro

This is an open forum for any mojoPortal topics that don't fall into the other categories.

This thread is closed to new posts. You must sign in to post in the forums.
1/6/2011 11:03:15 AM
Gravatar
Total Posts 11

Problem with Form Wizard Pro

Hi, I just purchased and installed Form Wizard Pro. I'm connecting to a MySql db. I copied the mysql db provider into the bin folder and then copied the contents of wwwroot into my root folder and went through setup. The setup did install the new tables into the mysql db. When I went to add a FWPro feature to a page, it allowed me to do so, but when I went to view and edit the page, I got the following error:

Unknown column 'TotalPages' in 'field list'

Exception Details: MySql.Data.MySqlClient.MySqlException: Unknown column 'TotalPages' in 'field list'

[MySqlException (0x80004005): Unknown column 'TotalPages' in 'field list']
   MySql.Data.MySqlClient.MySqlStream.ReadPacket() +195
   MySql.Data.MySqlClient.NativeDriver.GetResult(Int32& affectedRow, Int32& insertedId) +73
   MySql.Data.MySqlClient.Driver.GetResult(Int32 statementId, Int32& affectedRows, Int32& insertedId) +20
   MySql.Data.MySqlClient.Driver.NextResult(Int32 statementId) +90
   MySql.Data.MySqlClient.MySqlDataReader.NextResult() +365
   MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior) +1286
   MySql.Data.MySqlClient.MySqlCommand.ExecuteNonQuery() +36
   MySql.Data.MySqlClient.MySqlHelper.ExecuteNonQuery(MySqlConnection connection, String commandText, MySqlParameter[] commandParameters) +125
   MySql.Data.MySqlClient.MySqlHelper.ExecuteNonQuery(String connectionString, String commandText, MySqlParameter[] parms) +80
   sts.FormWizard.Data.DBWebForm.Create(Guid guid, Int32 moduleId, Guid moduleGuid, Guid siteGuid, String name, String title, String instructions, String completedMessage, Int32 totalPages, DateTime createdUtc, Guid creatorId) +1703
   sts.Business.WebForm.Create() +143
   sts.Business.WebForm.GetByModule(Module module) +153
   sts.FormWizard.Web.UI.FormWizardModule.LoadSettings() +249
   sts.FormWizard.Web.UI.FormWizardModule.Page_Load(Object sender, EventArgs e) +43
   System.Web.UI.Control.OnLoad(EventArgs e) +91
   System.Web.UI.Control.LoadRecursive() +74
   System.Web.UI.Control.LoadRecursive() +146
   System.Web.UI.Control.LoadRecursive() +146
   System.Web.UI.Control.LoadRecursive() +146
   System.Web.UI.Control.LoadRecursive() +146
   System.Web.UI.Control.LoadRecursive() +146
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2207

I am using .Net 4.0

I would really appreciate any help as I am at a loss to figure out what is going on.

1/6/2011 11:09:22 AM
Gravatar
Total Posts 18439

Re: Problem with Form Wizard Pro

Hi Dale,

You did visit the /Setup/Default.aspx page?

When you go to Administration > System Information what version does it report for mojoPortal and what version does it report for Form Wizard Pro?

Best,

Joe

1/6/2011 11:10:51 AM
Gravatar
Total Posts 11

Re: Problem with Form Wizard Pro

Well, I just figured out that the mysql script does not include a 'TotalPages' field in the sts_webform table, but looking at the SqlServer scripts indicates that it does have this field. I'm going to add it manually and see if that works.

1/6/2011 11:13:07 AM
Gravatar
Total Posts 18439

Re: Problem with Form Wizard Pro

The MySql script for 0.0.1.2.config should have added that column during setup. The content of that upgrade script is as follows:

ALTER TABLE sts_WebForm ADD COLUMN `TotalPages` int(11);

UPDATE sts_WebForm
SET TotalPages = 1; 

The script is located under /Setup/applications/sts-FormWizardPro/SchemaUpgradeScripts/mysql

1/6/2011 11:21:02 AM
Gravatar
Total Posts 1203
Proud member of the mojoPortal team

Help support mojoPortal!
Add-on modules

Re: Problem with Form Wizard Pro

It sounds like maybe setup didn't complete successfully. You also need to be careful, because Form Wizard Pro is very closely coupled to mojoPortal, so you have to be sure that you are running compatible versions. Is your mojoPortal installation up to date?

1/6/2011 11:45:27 AM
Gravatar
Total Posts 11

Re: Problem with Form Wizard Pro

Hey, Joe. Thanks for a fabulous product. Well, the only script  in the mysql  folder of SchemaInstallScripts was 0.0.0.1. In the mysql folder of SchemaUpgradeScripts, the 0.0.2.1 file is an empty text file. In fact I looked at several of the files in the SchemaUpgradeScripts folder, and they're all empty. 

I just downloaded this earlier today, so I don't know if I had a bad download or if something else is going on. By the way, I did add the field manually, and it seems to be working ok in mojoportal. I was able to create a form and view it, although I haven't tested it yet to see if it emails correctly, etc..  Thanks for your help.

1/6/2011 11:51:23 AM
Gravatar
Total Posts 11

Re: Problem with Form Wizard Pro

Oops, I did look at 0.0.1.2 and you are correct. The file is not empty and it contains sql to update the table with the new field. I don't know what the heck could have happened, but I strongly suspect when I FTP'd the files over that something in the upgrade scripts didn't get copied over. I will follow up later just to close the thread.

Thanks everybody.

1/6/2011 12:11:13 PM
Gravatar
Total Posts 11

Re: Problem with Form Wizard Pro

Well, it turns out that in fact not all the schema upgrade scripts made it over FTP. I re-tried the transfer, verified that all files were present and accounted for, and then re-ran setup. This time it successfully ran all the upgrade scripts, and FWPro is working great. Thank you guys for listening while I was thinking out loud on this forum. Apologies for not thinking of the FTP sooner

1/6/2011 12:19:19 PM
Gravatar
Total Posts 18439

Re: Problem with Form Wizard Pro

Hi Dale,

Glad it is working for you now. Thanks for purchasing my product and supporting mojoPortal!

Best,

Joe

You must sign in to post in the forums. This thread is closed to new posts.