Sorry if this is the wrong place to ask. Been at my wit's end for a while. Environment detail is at the end. When a user attempts to self-register I get the following error:
[25-Jun-2020 16:08:51 America/Los_Angeles] Default exception handler: Error writing to database Debug: Field 'province' doesn't have a default value
INSERT INTO mdl_user (username,password,email,firstname,lastname,city,country,confirmed,lang,firstaccess,timecreated,mnethostid,secret,auth,firstnamephonetic,lastnamephonetic,middlename,alternatename,calendartype,maildisplay,mailformat,maildigest,autosubscribe,trackforums,timemodified) VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)
[array (
0 => 'test2',
1 => '$2y$10$50e7zNmW48KbToLCc4CuDOWsRzCU4s3trDcosqPBaY5PT5a7QHDwy',
2 => 'email@redacted',
3 => 'Test',
4 => 'Munkey',
5 => 'Los Angeles',
6 => 'US',
7 => 0,
8 => 'en',
9 => 0,
10 => 1593126531,
11 => '3',
12 => '2DGArGbdkqN8DhU',
13 => 'email',
14 => '',
15 => '',
16 => '',
17 => '',
18 => 'gregorian',
19 => '0',
20 => '1',
21 => '0',
22 => '1',
23 => '0',
24 => 1593126531,
)]
Error code: dmlwriteexception
line 489 of /lib/dml/moodle_database.php: dml_write_exception thrown
line 1357 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
line 1403 of /lib/dml/mysqli_native_moodle_database.php: call to mysqli_native_moodle_database->insert_record_raw()
line 111 of /user/lib.php: call to mysqli_native_moodle_database->insert_record()
line 126 of /auth/email/auth.php: call to user_create_user()
line 99 of /auth/email/auth.php: call to auth_plugin_email->user_signup_with_confirmation()
line 92 of /login/signup.php: call to auth_plugin_email->user_signup()
Server checks
version 3.5 is required and you are running 3.9+ (Build: 20200618)
OK
unicode
must be installed and enabled
OK
database
mariadb (10.2.32-MariaDB-log-cll-lve)
version 10.2.29 is required and you are running 10.2.32
OK
php
version 7.2.0 is required and you are running 7.2.31
OK
pcreunicode
should be installed and enabled for best results
OK
php_extension
iconv
must be installed and enabled
OK
php_extension
mbstring
must be installed and enabled
OK
php_extension
curl
must be installed and enabled
OK
php_extension
openssl
must be installed and enabled
OK
php_extension
tokenizer
should be installed and enabled for best results
OK
php_extension
xmlrpc
should be installed and enabled for best results
OK
php_extension
soap
should be installed and enabled for best results
OK
php_extension
ctype
must be installed and enabled
OK
php_extension
zip
must be installed and enabled
OK
php_extension
zlib
must be installed and enabled
OK
php_extension
gd
must be installed and enabled
OK
php_extension
simplexml
must be installed and enabled
OK
php_extension
spl
must be installed and enabled
OK
php_extension
pcre
must be installed and enabled
OK
php_extension
dom
must be installed and enabled
OK
php_extension
must be installed and enabled
OK
php_extension
xmlreader
must be installed and enabled
OK
php_extension
intl
must be installed and enabled
OK
php_extension
json
must be installed and enabled
OK
php_extension
hash
must be installed and enabled
OK
php_extension
fileinfo
must be installed and enabled
OK
php_setting
memory_limit
recommended setting detected
OK
php_setting
file_uploads
recommended setting detected
OK
php_setting
opcache.enable
recommended setting detected