News:

SMF 2.1.1 has been released! Take it for a spin! Read more.

Main Menu

Custom Form Mod

Started by live627, July 09, 2008, 10:24:44 PM

Previous topic - Next topic

Shades.

#2020
Tried to create a new field on a form for the first time in a while lol but it gave me this error. My form still works as it was but can't add new fields to it or to any other new forms.

QuoteField 'type_vars' doesn't have a default value
File: /home/*****/public_html/*****/Sources/ManageCustomForm.php
Line: 141

QuoteError
Type of error
Database
Error message
Database Error: Field 'type_vars' doesn't have a default value
File
/home/*****/public_html/*****/Sources/ManageCustomForm.php
Line
141
URL of page causing the error
https://*****.com/?action=admin;area=modsettings;sa=customform;form_id=1;add_field;

Backtrace information
#0: smf_db_error()
Called from /home/*****/public_html/*****/Sources/Subs-Db-mysql.php on line 494
#1: smf_db_query()
Called from /home/*****/public_html/*****/Sources/Subs-Db-mysql.php on line 802
#2: smf_db_insert()
Called from /home/*****/public_html/*****/Sources/ManageCustomForm.php on line 141
#3: ModifyCustomFormSettings()
Called from /home/*****/public_html/*****/Sources/Subs.php on line 6064
#4: call_helper()
Called from /home/*****/public_html/*****/Sources/ManageSettings.php on line 145
#5: ModifyModSettings()
Called from /home/*****/public_html/*****/Sources/Admin.php on line 510
#6: AdminMain()
Called from /home/*****/public_html/*****/index.php on line 190

Edit: I was able to correct it in the database by changing Field 'type_vars' to NULL. ;)
ShadesWeb.com - Custom Logos - My Themes on SMF | My Themes on ShadesWeb
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

nishuFun

on a very freshly installed 2.1.1

on creating "add new form" got this php error:
QuoteFatal error: Uncaught AssertionError: assert(isset($editorOptions['value'])) in C:\xampp\htdocs\smf\Sources\Subs-Editor.php:1514 Stack trace: #0 C:\xampp\htdocs\smf\Sources\Subs-Editor.php(1514): assert(false, 'assert(isset($e...') #1 C:\xampp\htdocs\smf\Sources\ManageCustomForm.php(170): create_control_richedit(Array) #2 C:\xampp\htdocs\smf\Sources\Subs.php(6001): ModifyCustomFormSettings() #3 C:\xampp\htdocs\smf\Sources\ManageSettings.php(142): call_helper('ModifyCustomFor...') #4 C:\xampp\htdocs\smf\Sources\Admin.php(499): ModifyModSettings() #5 C:\xampp\htdocs\smf\index.php(187): AdminMain() #6 {main} thrown in C:\xampp\htdocs\smf\Sources\Subs-Editor.php on line 1514

and on refreshing mod settings:

QuoteTitle    Board    Permissions    Modify
   0 ("Invalid Board")    Admin    
(Edit)    (Delete
smf 2.1.2

Advertisement: