The following warnings occurred:
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (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.31 (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.31 (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.31 (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.31 (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.31 (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.31 (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.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key 1 - Line: 801 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_parser.php 801 errorHandler->error
/inc/class_parser.php 866 postParser->mycode_parse_post_quotes
[PHP]   postParser->mycode_parse_post_quotes_callback1
/inc/class_parser.php 751 preg_replace_callback
/inc/class_parser.php 431 postParser->mycode_parse_quotes
/inc/class_parser.php 187 postParser->parse_mycode
/printthread.php 179 postParser->parse_message
Warning [2] Undefined array key 1 - Line: 820 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_parser.php 820 errorHandler->error
/inc/class_parser.php 866 postParser->mycode_parse_post_quotes
[PHP]   postParser->mycode_parse_post_quotes_callback1
/inc/class_parser.php 751 preg_replace_callback
/inc/class_parser.php 431 postParser->mycode_parse_quotes
/inc/class_parser.php 187 postParser->parse_mycode
/printthread.php 179 postParser->parse_message
Warning [2] Undefined array key 1 - Line: 801 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_parser.php 801 errorHandler->error
/inc/class_parser.php 866 postParser->mycode_parse_post_quotes
[PHP]   postParser->mycode_parse_post_quotes_callback1
/inc/class_parser.php 751 preg_replace_callback
/inc/class_parser.php 431 postParser->mycode_parse_quotes
/inc/class_parser.php 187 postParser->parse_mycode
/printthread.php 179 postParser->parse_message
Warning [2] Undefined array key 1 - Line: 820 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_parser.php 820 errorHandler->error
/inc/class_parser.php 866 postParser->mycode_parse_post_quotes
[PHP]   postParser->mycode_parse_post_quotes_callback1
/inc/class_parser.php 751 preg_replace_callback
/inc/class_parser.php 431 postParser->mycode_parse_quotes
/inc/class_parser.php 187 postParser->parse_mycode
/printthread.php 179 postParser->parse_message
Warning [2] Undefined array key 1 - Line: 801 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_parser.php 801 errorHandler->error
/inc/class_parser.php 866 postParser->mycode_parse_post_quotes
[PHP]   postParser->mycode_parse_post_quotes_callback1
/inc/class_parser.php 751 preg_replace_callback
/inc/class_parser.php 431 postParser->mycode_parse_quotes
/inc/class_parser.php 187 postParser->parse_mycode
/printthread.php 179 postParser->parse_message
Warning [2] Undefined array key 1 - Line: 820 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_parser.php 820 errorHandler->error
/inc/class_parser.php 866 postParser->mycode_parse_post_quotes
[PHP]   postParser->mycode_parse_post_quotes_callback1
/inc/class_parser.php 751 preg_replace_callback
/inc/class_parser.php 431 postParser->mycode_parse_quotes
/inc/class_parser.php 187 postParser->parse_mycode
/printthread.php 179 postParser->parse_message
Warning [2] Undefined array key 1 - Line: 801 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_parser.php 801 errorHandler->error
/inc/class_parser.php 866 postParser->mycode_parse_post_quotes
[PHP]   postParser->mycode_parse_post_quotes_callback1
/inc/class_parser.php 751 preg_replace_callback
/inc/class_parser.php 431 postParser->mycode_parse_quotes
/inc/class_parser.php 187 postParser->parse_mycode
/printthread.php 179 postParser->parse_message
Warning [2] Undefined array key 1 - Line: 820 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_parser.php 820 errorHandler->error
/inc/class_parser.php 866 postParser->mycode_parse_post_quotes
[PHP]   postParser->mycode_parse_post_quotes_callback1
/inc/class_parser.php 751 preg_replace_callback
/inc/class_parser.php 431 postParser->mycode_parse_quotes
/inc/class_parser.php 187 postParser->parse_mycode
/printthread.php 179 postParser->parse_message
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error



Form Tools
How do I recover database after upgrade? - Printable Version

+- Form Tools (https://forums.formtools.org)
+-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1)
+--- Forum: Installation (https://forums.formtools.org/forumdisplay.php?fid=4)
+--- Thread: How do I recover database after upgrade? (/showthread.php?tid=1638)



How do I recover database after upgrade? - Internaut - Sep 16th, 2011

Hi Ben,
We upgraded from the Beta version to 2.1.2 as per instructions.
Install went great, but all the data we had previously entered, is not to be found by FT. The Dbase tables and data are in the MySQL but 2.1.2 cannot admit that the data is there.

When upgrading, we:
  1. unzipped the file FormTools2.1.2-20110910 to a local folder then
  2. using FTP, transfered the entire folder formtools to the server, replacing the existing one.
  3. walked through the re-setup (as it it were new) but...
    • used the same existing database, letting 2.1.2 overwrite the exiting stuff, that did not include the data itself.
  4. logged in, and it does not see any "forms". eek!
Is there a way to import the database? I'm thinking of exporting it to CSV, then import. But that would end in the same result would it not?

Suggestions so we don't have to re-enter everything?

I




RE: How do I recover database after upgrade? - Ben - Sep 19th, 2011

Hi Internaut,

Yikes! So you don't see any errors at all, just no forms? What about clients? I can't see why this would occur.

What Beta did you upgrade from? A 2.1.0 beta version, or something earlier?

Try this:
1. re-upload everything again and check that there are no errors in the FTP client (i.e. confirm that everything gets there).
2. It's possible that Smarty is being dumb and cached some old stuff, so go to your [FT root]/themes/[your theme]/cache folder and delete everything in there except the index.html file.
3. Clear your browser cache.

Then re-login in.

If still no luck, any chance you could give me temporary access so I could log on and debug the problem directly?

Also, did you back up the database & files before upgrading?

- Ben


RE: How do I recover database after upgrade? - Internaut - Sep 19th, 2011

(Sep 19th, 2011, 10:09 AM)Ben Wrote: Hi Internaut,

Yikes! So you don't see any errors at all, just no forms? What about clients? I can't see why this would occur.
"Yikes" isn't the word I used Smile

Ben Wrote:What Beta did you upgrade from? A 2.1.0 beta version, or something earlier?
No idea - it's gone. I have the backup before the upgrade, but can't find any version numbers in any of the files.

Ben Wrote:Try this:
1. re-upload everything again and check that there are no errors in the FTP client (i.e. confirm that everything gets there).
2. It's possible that Smarty is being dumb and cached some old stuff, so go to your [FT root]/themes/[your theme]/cache folder and delete everything in there except the index.html file.
3. Clear your browser cache.

  1. everything was backed up, the folder deleted, and had a clean install.
  2. there were problems FTP'ing so I had the host install it from their end.
  3. forms is working just fine, except it can't see the old dbase.


Ben Wrote:If still no luck, any chance you could give me temporary access so I could log on and debug the problem directly?
PM'ed

Ben Wrote:Also, did you back up the database & files before upgrading?
Yes.

I




RE: How do I recover database after upgrade? - Ben - Sep 20th, 2011

Hi Internaut,

Sorry for the wait. I just checked your database and there are actually no forms or clients in it... did you do a fresh install or something? This doesn't look like an upgraded database - the upgrade process certainly won't delete any data.

- Ben


RE: How do I recover database after upgrade? - Internaut - Sep 21st, 2011

(Sep 20th, 2011, 2:08 PM)Ben Wrote: Hi Internaut,

Sorry for the wait. I just checked your database and there are actually no forms or clients in it... did you do a fresh install or something? This doesn't look like an upgraded database - the upgrade process certainly won't delete any data.

- Ben

Hmmm. I checked before this thread started, and again when I sent the link, and again today, and I can still see them.

I looked via phpmyadmin and I do see all the fields, columns and rows.
In browsing them, the previously entered data is all there.

Formtools works great, but it just isn't picking up on the dbase, which is there. I did give FT the correct dbase prefix and such.

I do have a backup of dbases, and www/bckup. Should I vape the existing formtools folder, re-install the back up, re-install the update? Can't "upgrade" because like I said, the beta did not show upgrades were needed.

BTW - I think the phpmyadmin access changes so I will re-PM it.
I





RE: How do I recover database after upgrade? - Ben - Sep 22nd, 2011

Hi Internaut,

Hmm.. I see. I just looked at the ft_formstable, which is empty - I guess I didn't notice that the actual forms had content. But I'm still puzzled as to how this could have occurred... There's nothing in the codebase - even in the modules - that would delete the forms and clients... very strange indeed!

Rather than trying patch it up, I think you should return to your backup and try upgrading again. There may well be other problems with your current version, so going back to the last working copy and re-upgrading is definitely the way to go.

If it occurs again, keep track of exactly what happens (and let me know which version you're upgrading from).

Good luck.

- Ben