# Create new User throws error

**URL:** <https://forums.concretecms.org/t/create-new-user-throws-error/1755>\
**Category:** Using Concrete / Help\
**Created:** [November 29, 2021, 11:15pm UTC](https://forums.concretecms.org/t/create-new-user-throws-error/1755 "2021-11-29T23:15:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![juddc](https://forums.concretecms.org/user_avatar/forums.concretecms.org/juddc/32/3655_2.png) [@juddc](https://forums.concretecms.org/u/juddc)\
**Post date:** [November 29, 2021, 11:15pm UTC](https://forums.concretecms.org/t/create-new-user-throws-error/1755/1 "2021-11-29T23:15:54Z")

</div>

9.01 - Trying to add a new User after a basic install throws an error. Can’t add new Users. Anyone have any ideas?

```auto
                $uak->isAttributeKeyRequiredOnRegister()
            );
            if (!$response->isValid()) {
                $error = $response->getErrorObject();
                $this->error->add($error);
            }
        }
 
        if (!$this->error->has()) {
            // do the registration
            $data = ['uName' => $username, 'uPassword' => $password, 'uEmail' => $_POST['uEmail'], 'uDefaultLanguage' => $_POST['uDefaultLanguage'], 'uHomeFileManagerFolderID' => ($_POST['uHomeFileManagerFolderID'] == 0 ? '' : $_POST['uHomeFileManagerFolderID'])];
            $uo = $this->app['user/registration']->create($data);
            if (is_object($uo)) {
                if ($assignment->allowEditAvatar()) {
                    if (!empty($_FILES['uAvatar']) && is_uploaded_file($_FILES['uAvatar']['tmp_name'])) {
                        $config = $this->app->make('config');
                        $image = \Image::open($_FILES['uAvatar']['tmp_name']);
                        $image = $image->thumbnail(new Box(
                            $config->get('concrete.icons.user_avatar.width'),
                            $config->get('concrete.icons.user_avatar.height')
                        ));
                        $uo->updateUserAvatar($image);
                    }
                }
 
                $saveAttributes = [];
                foreach ($aks as $uak) {
                    if (in_array($uak->getAttributeKeyID(), $assignment->getAttributesAllowedArray())) {
                        $saveAttributes[] = $uak;
                    }
                }

```

Arguments

1. “Undefined array key “uDefaultLanguage””

# Concrete Version

Core Version - 9.0.1  
Version Installed - 9.0.1  
Database Version - 20211104161958

# Database Information

Version: 10.5.12-MariaDB-cll-lve  
SQL Mode: STRICT\_TRANS\_TABLES,ERROR\_FOR\_DIVISION\_BY\_ZERO,NO\_AUTO\_CREATE\_USER,NO\_ENGINE\_SUBSTITUTION

# Concrete Packages

None

# Concrete Overrides

None

# Concrete Cache Settings

Block Cache - Off  
Overrides Cache - Off  
Full Page Caching - Off  
Full Page Cache Lifetime - Every 6 hours (default setting).

# Server Software

LiteSpeed

# Server API

litespeed

# PHP Version

8.0.12

# PHP Extensions

bcmath, bz2, calendar, Core, ctype, curl, date, dom, exif, fileinfo, filter, ftp, gd, gettext, gmp, hash, i360, iconv, imap, json, libxml, litespeed, mbstring, mcrypt, mysqli, mysqlnd, openssl, pcntl, pcre, PDO, pdo\_mysql, pdo\_sqlite, Phar, posix, readline, Reflection, session, shmop, SimpleXML, sockets, SPL, sqlite3, standard, tokenizer, xml, xmlreader, xmlwriter, xsl, zip, zlib

# PHP Settings

max\_execution\_time - 30  
log\_errors\_max\_len - 1024  
max\_file\_uploads - 20  
max\_input\_nesting\_level - 64  
max\_input\_time - 80  
max\_input\_vars - 1000  
memory\_limit - 256M  
post\_max\_size - 8M  
upload\_max\_filesize - 2M  
zend.exception\_string\_param\_max\_len - 15  
mbstring.regex\_retry\_limit - 1000000  
mbstring.regex\_stack\_limit - 100000  
mysqli.max\_links - Unlimited  
mysqli.max\_persistent - Unlimited  
pcre.backtrack\_limit - 1000000  
pcre.recursion\_limit - 100000  
session.cache\_limiter - _no value_  
session.gc\_maxlifetime - 7200  
unserialize\_max\_depth - 4096

---

<div class="post-metadata">

**Author:** ![ConcreteOwl](https://forums.concretecms.org/user_avatar/forums.concretecms.org/concreteowl/32/6304_2.png) [@ConcreteOwl](https://forums.concretecms.org/u/ConcreteOwl)\
**Post date:** [November 30, 2021, 7:22am UTC](https://forums.concretecms.org/t/create-new-user-throws-error/1755/2 "2021-11-30T07:22:35Z")

</div>

Go to dashboard/users/search  
Hover over User and click the 3 dots popup and click Edit  
In the Account section click Edit  
Click the Language dropdown and choose your language  
Click Save…  
This will add the uDefaultLanguage data into the Users table of the database.

---

<div class="post-metadata">

**Author:** ![juddc](https://forums.concretecms.org/user_avatar/forums.concretecms.org/juddc/32/3655_2.png) [@juddc](https://forums.concretecms.org/u/juddc)\
**Post date:** [November 30, 2021, 6:59pm UTC](https://forums.concretecms.org/t/create-new-user-throws-error/1755/3 "2021-11-30T18:59:49Z")

</div>

Hi ConcreteOwl,

Thanks for the reply. After logging out I can’t even log back in without getting another error. So I can’t even get to the dashboard.

I think based on this install experience(s) and the feedback I’m seeing from others that v9 needs more time to get sorted out. I don’t have the time to wrestle with a CMS anymore.
