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
/showthread.php 26 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
/showthread.php 26 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
/showthread.php 26 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
/showthread.php 26 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
/showthread.php 26 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
/showthread.php 26 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
/showthread.php 137 forum_permissions
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 1380 fetch_forum_permissions
/inc/functions.php 2909 forum_permissions
/showthread.php 621 build_forum_jump
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 1380 fetch_forum_permissions
/inc/functions.php 2909 forum_permissions
/showthread.php 621 build_forum_jump
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 1380 fetch_forum_permissions
/inc/functions.php 2909 forum_permissions
/showthread.php 621 build_forum_jump
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 1380 fetch_forum_permissions
/inc/functions.php 2909 forum_permissions
/showthread.php 621 build_forum_jump
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 1380 fetch_forum_permissions
/inc/functions.php 2909 forum_permissions
/showthread.php 621 build_forum_jump
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 1380 fetch_forum_permissions
/inc/functions.php 2909 forum_permissions
/showthread.php 621 build_forum_jump
Warning [2] Undefined property: MyLanguage::$ratings_update_error - Line: 5 - File: showthread.php(732) : eval()'d code PHP 8.1.31 (Linux)
File Line Function
/showthread.php(732) : eval()'d code 5 errorHandler->error
/showthread.php 732 eval
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_user.php 844 is_member
/inc/functions_post.php 406 purgespammer_show
/showthread.php 1070 build_postbit
Warning [2] Undefined array key "profilefield" - Line: 6 - File: inc/functions_post.php(474) : eval()'d code PHP 8.1.31 (Linux)
File Line Function
/inc/functions_post.php(474) : eval()'d code 6 errorHandler->error
/inc/functions_post.php 474 eval
/showthread.php 1070 build_postbit
Warning [2] Undefined array key "canonlyreplyownthreads" - Line: 660 - File: inc/functions_post.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions_post.php 660 errorHandler->error
/showthread.php 1070 build_postbit
Warning [2] Undefined array key "showimages" - Line: 741 - File: inc/functions_post.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions_post.php 741 errorHandler->error
/showthread.php 1070 build_postbit
Warning [2] Undefined array key "showvideos" - Line: 746 - File: inc/functions_post.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions_post.php 746 errorHandler->error
/showthread.php 1070 build_postbit
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_user.php 844 is_member
/inc/functions_post.php 406 purgespammer_show
/showthread.php 1070 build_postbit
Warning [2] Undefined array key "profilefield" - Line: 6 - File: inc/functions_post.php(474) : eval()'d code PHP 8.1.31 (Linux)
File Line Function
/inc/functions_post.php(474) : eval()'d code 6 errorHandler->error
/inc/functions_post.php 474 eval
/showthread.php 1070 build_postbit
Warning [2] Undefined array key "canonlyreplyownthreads" - Line: 660 - File: inc/functions_post.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions_post.php 660 errorHandler->error
/showthread.php 1070 build_postbit
Warning [2] Undefined array key "showimages" - Line: 741 - File: inc/functions_post.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions_post.php 741 errorHandler->error
/showthread.php 1070 build_postbit
Warning [2] Undefined array key "showvideos" - Line: 746 - File: inc/functions_post.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions_post.php 746 errorHandler->error
/showthread.php 1070 build_postbit
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_user.php 844 is_member
/inc/functions_post.php 406 purgespammer_show
/showthread.php 1070 build_postbit
Warning [2] Undefined array key "profilefield" - Line: 6 - File: inc/functions_post.php(474) : eval()'d code PHP 8.1.31 (Linux)
File Line Function
/inc/functions_post.php(474) : eval()'d code 6 errorHandler->error
/inc/functions_post.php 474 eval
/showthread.php 1070 build_postbit
Warning [2] Undefined array key "canonlyreplyownthreads" - Line: 660 - File: inc/functions_post.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions_post.php 660 errorHandler->error
/showthread.php 1070 build_postbit
Warning [2] Undefined array key "showimages" - Line: 741 - File: inc/functions_post.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions_post.php 741 errorHandler->error
/showthread.php 1070 build_postbit
Warning [2] Undefined array key "showvideos" - Line: 746 - File: inc/functions_post.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions_post.php 746 errorHandler->error
/showthread.php 1070 build_postbit
Warning [2] Undefined array key "invisible" - Line: 1506 - File: showthread.php PHP 8.1.31 (Linux)
File Line Function
/showthread.php 1506 errorHandler->error
Warning [2] Undefined variable $threadnotesbox - Line: 30 - File: showthread.php(1533) : eval()'d code PHP 8.1.31 (Linux)
File Line Function
/showthread.php(1533) : eval()'d code 30 errorHandler->error
/showthread.php 1533 eval
Warning [2] Undefined variable $addremovesubscription - Line: 79 - File: showthread.php(1533) : eval()'d code PHP 8.1.31 (Linux)
File Line Function
/showthread.php(1533) : eval()'d code 79 errorHandler->error
/showthread.php 1533 eval



FORUMS


The Form Tools forums are no longer active, but the old posts have been archived here. Please see the Help page on how to get help / report issues.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Error when setting field types
#1
Ben, I don't know how I do it but I seem to find everything that can go wrong. Most likely something to do with this form. The form I am working with is big and has some conditional form fields. However, they all exist, just not shown until something is selected. I can email you a link if you need it. When I am trying to set the field types, it takes forever to auto detect, in fact, it never does auto detect. When I skip this step, it produces the following error:

Code:
Error: Invalid JSON:
Failed query in ft_finalize_form, /home/applied/public_html/admin/formtools/global/code/forms.php, line 312:
CREATE TABLE ft_form_1 (
submission_id MEDIUMINT UNSIGNED NOT NULL AUTO_INCREMENT,
PRIMARY KEY(submission_id),
col_1 VARCHAR(255),
col_2 VARCHAR(255),
col_3 VARCHAR(255),
col_4 VARCHAR(255),
col_5 VARCHAR(255),
col_6 VARCHAR(255),
col_7 VARCHAR(255),
col_8 VARCHAR(255),
col_9 VARCHAR(255),
col_10 VARCHAR(255),
col_11 VARCHAR(255),
col_12 VARCHAR(255),
col_13 VARCHAR(255),
col_14 VARCHAR(255),
col_15 VARCHAR(255),
col_16 VARCHAR(255),
col_17 VARCHAR(255),
col_18 VARCHAR(255),
col_19 VARCHAR(255),
col_20 VARCHAR(255),
col_21 VARCHAR(255),
col_22 VARCHAR(255),
col_23 VARCHAR(255),
col_24 VARCHAR(255),
col_25 VARCHAR(255),
col_26 VARCHAR(255),
col_27 VARCHAR(255),
col_28 VARCHAR(255),
col_29 VARCHAR(255),
col_30 VARCHAR(255),
col_31 VARCHAR(255),
col_32 VARCHAR(255),
col_33 VARCHAR(255),
col_34 VARCHAR(255),
col_35 VARCHAR(255),
col_36 VARCHAR(255),
col_37 VARCHAR(255),
col_38 VARCHAR(255),
col_39 VARCHAR(255),
col_40 VARCHAR(255),
col_41 VARCHAR(255),
col_42 VARCHAR(255),
col_43 VARCHAR(255),
col_44 VARCHAR(255),
col_45 VARCHAR(255),
col_46 VARCHAR(255),
col_47 VARCHAR(255),
col_48 VARCHAR(255),
col_49 VARCHAR(255),
col_50 VARCHAR(255),
col_51 VARCHAR(255),
col_52 VARCHAR(255),
col_53 VARCHAR(255),
col_54 VARCHAR(255),
col_55 VARCHAR(255),
col_56 VARCHAR(255),
col_57 VARCHAR(255),
col_58 VARCHAR(255),
col_59 VARCHAR(255),
col_60 VARCHAR(255),
col_61 VARCHAR(255),
col_62 VARCHAR(255),
col_63 VARCHAR(255),
col_64 VARCHAR(255),
col_65 VARCHAR(255),
col_66 VARCHAR(255),
col_67 VARCHAR(255),
col_68 VARCHAR(255),
col_69 VARCHAR(255),
col_70 VARCHAR(255),
col_71 VARCHAR(255),
col_72 VARCHAR(255),
col_73 VARCHAR(255),
col_74 VARCHAR(255),
col_75 VARCHAR(255),
col_76 VARCHAR(255),
col_77 VARCHAR(255),
col_78 VARCHAR(255),
col_79 VARCHAR(255),
col_80 VARCHAR(255),
col_81 VARCHAR(255),
col_82 VARCHAR(255),
col_83 VARCHAR(255),
col_84 VARCHAR(255),
col_85 VARCHAR(255),
col_86 VARCHAR(255),
col_87 VARCHAR(255),
col_88 VARCHAR(255),
col_89 VARCHAR(255),
col_90 VARCHAR(255),
col_91 VARCHAR(255),
col_92 VARCHAR(255),
col_93 VARCHAR(255),
col_94 VARCHAR(255),
col_95 VARCHAR(255),
col_96 VARCHAR(255),
col_97 VARCHAR(255),
col_98 VARCHAR(255),
col_99 VARCHAR(255),
col_100 VARCHAR(255),
col_101 VARCHAR(255),
col_102 VARCHAR(255),
col_103 VARCHAR(255),
col_104 VARCHAR(255),
col_105 VARCHAR(255),
col_106 VARCHAR(255),
col_107 VARCHAR(255),
col_108 VARCHAR(255),
col_109 VARCHAR(255),
col_110 VARCHAR(255),
col_111 VARCHAR(255),
col_112 VARCHAR(255),
col_113 VARCHAR(255),
col_114 VARCHAR(255),
col_115 VARCHAR(255),
col_116 VARCHAR(255),
col_117 VARCHAR(255),
col_118 VARCHAR(255),
col_119 VARCHAR(255),
col_120 VARCHAR(255),
col_121 VARCHAR(255),
col_122 VARCHAR(255),
col_123 VARCHAR(255),
col_124 VARCHAR(255),
col_125 VARCHAR(255),
col_126 VARCHAR(255),
col_127 VARCHAR(255),
col_128 VARCHAR(255),
col_129 VARCHAR(255),
col_130 VARCHAR(255),
col_131 VARCHAR(255),
col_132 VARCHAR(255),
col_133 VARCHAR(255),
col_134 VARCHAR(255),
col_135 VARCHAR(255),
col_136 VARCHAR(255),
col_137 VARCHAR(255),
col_138 VARCHAR(255),
col_139 VARCHAR(255),
col_140 VARCHAR(255),
col_141 VARCHAR(255),
col_142 VARCHAR(255),
col_143 VARCHAR(255),
col_144 VARCHAR(255),
col_145 VARCHAR(255),
col_146 VARCHAR(255),
col_147 VARCHAR(255),
col_148 VARCHAR(255),
col_149 VARCHAR(255),
col_150 VARCHAR(255),
col_151 VARCHAR(255),
col_152 VARCHAR(255),
col_153 VARCHAR(255),
col_154 VARCHAR(255),
col_155 VARCHAR(255),
col_156 VARCHAR(255),
col_157 VARCHAR(255),
col_158 VARCHAR(255),
col_159 VARCHAR(255),
col_160 VARCHAR(255),
col_161 VARCHAR(255),
col_162 VARCHAR(255),
col_163 VARCHAR(255),
col_164 VARCHAR(255),
col_165 VARCHAR(255),
col_166 VARCHAR(255),
col_167 VARCHAR(255),
col_168 VARCHAR(255),
col_169 VARCHAR(255),
col_170 VARCHAR(255),
col_171 VARCHAR(255),
col_172 VARCHAR(255),
col_173 VARCHAR(255),
col_174 VARCHAR(255),
col_175 VARCHAR(255),
col_176 VARCHAR(255),
col_177 VARCHAR(255),
submission_date DATETIME NOT NULL,
last_modified_date DATETIME NOT NULL,
ip_address VARCHAR(15),
is_finalized ENUM('yes','no') default 'yes')
DEFAULT CHARSET=utf8

As I said, a large form. I don't have a clue what is gong on here. Another version of this form, not attached to formtools, works fine.

Dave
Reply
#2
Just wanted to add this info. I have attached two screenshots. The first one shows that formtools has received a test submission with all of the data from the fields. The second shows that formtools is not recognizing field types. I am lost. Perhaps this form is not compatible with formtools?

   
   

Reply
#3
Hey Dave,

The problem is that the database row is simply too big: MySQL can only handle row sizes of up to 65,000 KB or so of VARCHARs.

Try changing some of the fields to smaller or bigger sizes. Larger sizes - Mediumtext's & Texts - don't get included in the row size count.

[btw, better error handling for this situation WILL be included in 2.1.9 - I've meant to get it into every 2.1.x release but never got around to it.]

- Ben
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)