The following warnings occurred:
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.27 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.27 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $newpmmsg - Line: 40 - File: global.php(841) : eval()'d code PHP 8.1.27 (Linux)
File Line Function
/global.php(841) : eval()'d code 40 errorHandler->error
/global.php 841 eval
/printthread.php 16 require_once
Warning [2] Undefined array key "style" - Line: 909 - File: global.php PHP 8.1.27 (Linux)
File Line Function
/global.php 909 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$lang_select_default - Line: 5024 - File: inc/functions.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions.php 5024 errorHandler->error
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key "additionalgroups" - Line: 7162 - File: inc/functions.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions.php 7162 errorHandler->error
/inc/functions.php 5044 is_member
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key 1 - Line: 1415 - File: inc/functions.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions.php 1415 errorHandler->error
/inc/functions.php 1370 fetch_forum_permissions
/printthread.php 76 forum_permissions
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error



Form Tools
Two Environments - Printable Version

+- Form Tools (https://forums.formtools.org)
+-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1)
+--- Forum: General Discussion (https://forums.formtools.org/forumdisplay.php?fid=5)
+--- Thread: Two Environments (/showthread.php?tid=482)



Two Environments - scott.adams - Feb 1st, 2010

This might be a stupid question, but I have two environments, a test server and a production server, each with a different host name. Is there a way to do all of the setup of the form(s) in the test system and then when I want to move the form to the production environment, I can take the MYSql data and move it to the production DB? I'm working with 80 forms and to do the setup work twice for each one is really time consuming. I am noticing that in my setup I'm creating a separate view for each form and since the smart fill does not work for me in step 5 I have to create the checkboxes and radio buttons manually. My fear is that I will miss a checkbox or something along the way and the form in the production system won't work as it does in the test system.


RE: Two Environments - Ben - Feb 2nd, 2010

Absolutely. Having to configure things in two different environments would be a total nuisance - time consuming and error prone, as you noted.

The way I do it is to just export the entire database from one environment to the next, and update the config.php file to allow for switching between the different environment variables (DB settings, paths and URLs). Give my response in this post a read:
http://forums.formtools.org/showthread.php?tid=441

But really, there's no perfect way to do it just yet. But I'd strongly recommend working in a single envionment when you can and just exporting the DB.

- Ben


RE: Two Environments - scott.adams - Feb 3rd, 2010

(Feb 2nd, 2010, 11:53 AM)Ben Wrote: Absolutely. Having to configure things in two different environments would be a total nuisance - time consuming and error prone, as you noted.

The way I do it is to just export the entire database from one environment to the next, and update the config.php file to allow for switching between the different environment variables (DB settings, paths and URLs). Give my response in this post a read:
http://forums.formtools.org/showthread.php?tid=441

But really, there's no perfect way to do it just yet. But I'd strongly recommend working in a single envionment when you can and just exporting the DB.

- Ben

Thanks for getting back to me so quickly. Since I don't have a way as of yet to run under one copy of MySQL I will try the MySQL dump (backup) of the test db and then a restore to the production db. The restore will completely erase the data in the production db correct? So I'll get all of my 80 forms configured and all of my clients setup in the test db and then dump it one time to the production db. After that it will be maintaining two separate databases until I can work with just one. Should I perform a fresh install of the application on the production server before the restore so that all of the tables are empty or just let the restore update the production database? I currently have not data in the production database, except for a few test clients, so losing the data is no big deal.
Any suggestions or thoughts as to this plan? I believe that after the restore all I'll have to do is go into the production system and change each form's "verify" URL so that it points to the correct server. That should be the only change needed correct?
Thanks again for your help. This application is just what the doctor order for our site. It is better than anything that I have seen out there as far as functionality and configuration ability.


RE: Two Environments - Ben - Feb 3rd, 2010

Quote:The restore will completely erase the data in the production db correct?

Yup!

And EIGHTY forms? Wow, that's a lot!

You may be interested to know I'll be releasing a small module this weekend that lets you back up (or copy) an existing form & any of its settings (like Views, email templates & any submissions already made). Now that Form Tools has grown up, I know there's a great deal of configuration involved in setting up each form, so this is designed to help you set up multiple, similar forms a whole lot faster. Not sure if it would help in your case, but I thought it might be worth mentioning...

All the best -

Ben