When running the following command php craft entrify/global-set test1 I get this error:
`php craft entrify/global-set test1
Have you already created a section to replace the “Test 1” global set (yes|no) [no]:
Let’s create one now, then.
Section name: [Test 1]
Section handle: [test1]
Enable entry versioning for the section? (yes|no) [yes]:
Have you already created an entry type for this section? (yes|no) [no]:
Let’s create one now, then.
Entry type name: [Test 1]
Entry type handle: [test1]
→ Saving the entry type … ✓
→ Saving the section … ✕
Error: craft\services\Entries::craft\services{closure}(): Argument #1 ($uid) must be of type string, null given
[ERROR] craft\services\Entries::craft\services{closure}(): Argument #1 ($uid) must be of type string, null given
TypeError
in /Users/stephenmatthews/.../vendor/craftcms/cms/src/services/Entries.php: 677
What happened?
Description
When running the following command
php craft entrify/global-set test1
I get this error:`php craft entrify/global-set test1 Have you already created a section to replace the “Test 1” global set (yes|no) [no]: Let’s create one now, then. Section name: [Test 1] Section handle: [test1] Enable entry versioning for the section? (yes|no) [yes]: Have you already created an entry type for this section? (yes|no) [no]: Let’s create one now, then. Entry type name: [Test 1] Entry type handle: [test1] → Saving the entry type … ✓ → Saving the section … ✕ Error: craft\services\Entries::craft\services{closure}(): Argument #1 ($uid) must be of type string, null given
[ERROR] craft\services\Entries::craft\services{closure}(): Argument #1 ($uid) must be of type string, null given
▓
▓ Stack trace:
▓
▓ #0 [internal function]: craft\services\Entries->craft\services{closure}(NULL)
▓ #1 /vendor/craftcms/cms/src/services/Entries.php(676): array_map(Object(Closure), Array)
▓ #2 /vendor/craftcms/cms/src/base/ApplicationTrait.php(1839):
▓ craft\services\Entries->handleChangedSection(Object(craft\events\ConfigEvent))
▓ #3 /vendor/craftcms/cms/src/services/ProjectConfig.php(1179):
▓ craft\console\Application->craft\base{closure}(Object(craft\events\ConfigEvent))
▓ #4 [internal function]: craft\services\ProjectConfig->handleChangeEvent(Object(craft\events\ConfigEvent))
▓ #5 /vendor/yiisoft/yii2/base/Component.php(641): call_user_func(Array, Object(craft\events\ConfigEvent))
▓ #6 /vendor/craftcms/cms/src/models/ProjectConfigData.php(82): yii\base\Component->trigger('addItem',
▓ Object(craft\events\ConfigEvent))
▓ #7 /vendor/craftcms/cms/src/services/ProjectConfig.php(564): craft\models\ProjectConfigData->commitChanges(NULL,
▓ Array, 'sections.578d3e...', true, 'Save section \xE2\x80...', true)
▓ #8 /vendor/craftcms/cms/src/services/ProjectConfig.php(524):
▓ craft\services\ProjectConfig->_setInternal('sections.578d3e...', Array, 'Save section \xE2\x80...', true, false)
▓ #9 /vendor/craftcms/cms/src/services/Entries.php(580): craft\services\ProjectConfig->set('sections.578d3e...', Array, ▓ 'Save section \xE2\x80...')
▓ #10 /vendor/craftcms/cms/src/console/controllers/SectionsController.php(328):
▓ craft\services\Entries->saveSection(Object(craft\models\Section))
▓ #11 /vendor/craftcms/cms/src/console/Controller.php(456):
▓ craft\console\controllers\SectionsController->craft\console\controllers{closure}()
▓ #12 /vendor/craftcms/cms/src/console/controllers/SectionsController.php(327): craft\console\Controller->do('Saving
▓ the sect...', Object(Closure))
▓ #13 [internal function]: craft\console\controllers\SectionsController->actionCreate()
▓ #14 /vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array)
▓ #15 /vendor/yiisoft/yii2/base/Controller.php(178): yii\base\InlineAction->runWithParams(Array)
▓ #16 /vendor/yiisoft/yii2/console/Controller.php(180): yii\base\Controller->runAction('create', Array)
▓ #17 /vendor/craftcms/cms/src/console/ControllerTrait.php(89): yii\console\Controller->runAction('create', Array)
▓ #18 /vendor/craftcms/cms/src/console/Controller.php(216): craft\console\Controller->traitRunAction('create', Array)
▓ #19 /vendor/yiisoft/yii2/base/Module.php(552): craft\console\Controller->runAction('create', Array)
▓ #20 /vendor/yiisoft/yii2/console/Application.php(180): yii\base\Module->runAction('sections/create', Array)
▓ #21 /vendor/craftcms/cms/src/console/Application.php(91): yii\console\Application->runAction('sections/create',
▓ Array)
▓ #22 /vendor/yiisoft/yii2/base/Controller.php(212): craft\console\Application->runAction('sections/create', Array)
▓ #23 /vendor/craftcms/cms/src/console/Controller.php(207): yii\base\Controller->run('sections/create', Array)
▓ #24 /vendor/craftcms/cms/src/console/controllers/EntrifyController.php(475):
▓ craft\console\Controller->run('sections/create', Array)
▓ #25 [internal function]:
▓ craft\console\controllers\EntrifyController->actionGlobalSet(Object(craft\elements\GlobalSet))
▓ #26 /vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array)
▓ #27 /vendor/yiisoft/yii2/base/Controller.php(178): yii\base\InlineAction->runWithParams(Array)
▓ #28 /vendor/yiisoft/yii2/console/Controller.php(180): yii\base\Controller->runAction('global-set', Array)
▓ #29 /vendor/craftcms/cms/src/console/ControllerTrait.php(89): yii\console\Controller->runAction('global-set', Array) ▓ #30 /vendor/craftcms/cms/src/console/Controller.php(216): craft\console\Controller->traitRunAction('global-set',
▓ Array)
▓ #31 /vendor/yiisoft/yii2/base/Module.php(552): craft\console\Controller->runAction('global-set', Array)
▓ #32 /vendor/yiisoft/yii2/console/Application.php(180): yii\base\Module->runAction('entrify/global-...', Array)
▓ #33 /vendor/craftcms/cms/src/console/Application.php(91): yii\console\Application->runAction('entrify/global-...',
▓ Array)
▓ #34 /vendor/yiisoft/yii2/console/Application.php(147): craft\console\Application->runAction('entrify/global-...',
▓ Array)
▓ #35 /vendor/craftcms/cms/src/console/Application.php(122):
▓ yii\console\Application->handleRequest(Object(craft\console\Request))
▓ #36 /vendor/yiisoft/yii2/base/Application.php(384):
▓ craft\console\Application->handleRequest(Object(craft\console\Request))
▓ #37 /craft(13): yii\base\Application->run()
▓ #38 {main} `
Steps to reproduce
1.run
php craft entrify/global-set
Expected behavior
Actual behavior
Craft CMS version
5.2.8
PHP version
8.3
Operating system and version
No response
Database type and version
No response
Image driver and version
No response
Installed plugins and versions