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



Form Tools
Adding New Fields to Form from Database Tab - 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: Adding New Fields to Form from Database Tab (/showthread.php?tid=399)



Adding New Fields to Form from Database Tab - axel - Dec 13th, 2009

Heh. =] I'm just having the worst luck recently with Form Tools.

Alrighty! So I added a new form to Form Tools, and I had the page already to go and created the form and uploaded it and then it FINALLY dawns on me I forgot a field.

I went into the Form and under the Database tab to add a new field to my form, and I clicked the "Add [ 1 ] Rows" and it took me to the Add New Row page, and there was no new rows. The system just spat out the header where it tells me what to type in each collum, but no new rows.

So I obviously tried to do the "Add New Row" again on that page, and bam! Nothing!

The Page specifically is: http://domain/admin/forms/edit.php on the ADD FIELDS page.

I have no errors in my logs, and I am using 2.0.0-beta-20091213.
Is it just me, or is it everyone else too?
Because if it's just me I'll try to fix it myself, but I think it was with the last two updates.

Thanks!
-Axel


RE: Adding New Fields to Form from Database Tab - Ben - Dec 14th, 2009

Hey Axel,

Yeah, I'm wondering if something went wrong with an update - things seem to just keep going from bad to worse for you. Smile

What browser & OS are you on? My first guess would be a JS bug, so I'll at least eliminate that possibility before seeing if it's something more severe.

- Ben


RE: Adding New Fields to Form from Database Tab - axel - Dec 15th, 2009

Yeah I figured. It's just been a bag of crap recently.

I've tested it on Google Chrome and Firefox and IE.
IE tells me "errors on page" when I press "add" on the new rows.

I have no idea. :[


RE: Adding New Fields to Form from Database Tab - axel - Dec 16th, 2009

Apparently this is what I am getting from Google Chrome. Firefox spits out something like it.
Code:
edit.php:33
Uncaught SyntaxError: Unexpected token ILLEGAL

/global/scripts/add_fields.js:67
Uncaught TypeError: Cannot read property 'phrase_size_tiny' of undefined

(end result of edit.php)
There is ONE part at the end of here where it goes });";
Not sure if that might be the issue? It calls it bad though... :[
Code:
//<![CDATA[
Event.observe(document, 'dom:loaded',
  function()
  {
    add_fields_ns.add_fields("1");
    add_fields_ns.toggle_db_column_fields($('auto_generate_col_names').checked);
  });";

(add_fields.js)
The JS file calls for a command which flips it out all the time with the g.messages command
Code:
option1.appendChild(document.createTextNode(g.messages["phrase_size_tiny"]));



RE: Adding New Fields to Form from Database Tab - axel - Dec 16th, 2009

Haha! I found it!
Lame thing had me going for 5 hours.

On the page located in:
[formtoolsdirectory]/admin/forms/page_add_fields.php

On line 41 it reads normally:
});";


Correct it to:
});

And it works fine.


RE: Adding New Fields to Form from Database Tab - Ben - Dec 16th, 2009

Thanks Axel. Smile

I'll release a fix for this today. Alexis reported the same issue; sorry I didn't have time to patch it last night.

- Ben