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 "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 "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
Renaming/Deleting DB Column - 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: Renaming/Deleting DB Column (/showthread.php?tid=1492)



Renaming/Deleting DB Column - Hannes - Jul 31st, 2011

Hei,

when renaming or deleting a DB Column in the Field Settings
I will get a error message when trying to add submissions again.
Code:
Unknown column 'fieldname' in 'field list'
If manually renaming/deleting in mysql it is fine again.
I use this feature quite a lot when sharing the database with other applications.

This is for 2.1.0-beta-20110730

Best regards,
Hannes


RE: Renaming/Deleting DB Column - Ben - Jul 31st, 2011

Hmm! Curious - I haven't encountered that.

I'll check it out. Thanks!

- Ben


RE: Renaming/Deleting DB Column - Hannes - Aug 1st, 2011

Hmm!, too... You did not change anything here in the last update?
I was just going to test whether there was a problem with my mysql privileges...
But now it's working even without having changed anything from my side.

If I can reproduce the problem again I will let you know...
But for now it is working again...


RE: Renaming/Deleting DB Column - Ben - Aug 2nd, 2011

Curious! No, I don't think I made any fixes for this one, so do let me know if it crops up again!

- Ben


RE: Renaming/Deleting DB Column - Hannes - Aug 9th, 2011

Hi Ben,

I was able to catch this bug in action - it was a very tiny one... (-;
It does happen also in 2.1.0-beta-20110808 when you do both, delete a column and add a column, before pressing "update".

delete-update-add-update - works...
delete-add-update - does not... it does not delete from mysql.

Nice time.
Hannes.


RE: Renaming/Deleting DB Column - Ben - Aug 9th, 2011

Hi Hannes!

I just fixed this problem locally. It was introduced a little while ago in which field records were deleted in the Form Tools database, but the actual database table wasn't updated to remove the column. So if you try to create new fields with field names that already exist in the db, you'll see an error.

I'll include this fix in today's build. However, you'll need to manually delete those fields from your database if you want to reuse the same database column names.

- Ben

[One of the modules I would like to eventually get around to, is a "Spring Clean" module that checks the integrity of the database content - sort of like a data counterpart to the Database Integrity module. That would identify and fix problems like this. Just thought I'd mention it.]


RE: Renaming/Deleting DB Column - Hannes - Aug 9th, 2011

(Aug 9th, 2011, 7:21 AM)Ben Wrote: Hi Hannes!

I just fixed this problem locally. It was introduced a little while ago in which field records were deleted in the Form Tools database, but the actual database table wasn't updated to remove the column. So if you try to create new fields with field names that already exist in the db, you'll see an error.

I'll include this fix in today's build. However, you'll need to manually delete those fields from your database if you want to reuse the same database column names.

- Ben

[One of the modules I would like to eventually get around to, is a "Spring Clean" module that checks the integrity of the database content - sort of like a data counterpart to the Database Integrity module. That would identify and fix problems like this. Just thought I'd mention it.]

Ok. Great!
When I opened this thread, I thought it was a general bug in column management.
It did not cause any problem, later everything was running perfect until I finally got it again.
I was just happy to find out where the problem was i had in the beginning and that it was not only a problem on my side. (-;