Unable to write new project config files
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
Research direction
Start by tracing craftcms/cms/src/services/ProjectConfig.php around lines 1645–1652 and the related clearDirectory calls in craftcms/cms/src/helpers/FileHelper.php. Reproduce the project-config write during the category operation and determine why removing the configs directory fails; done means the operation completes and project config files are written successfully.
Written by the indexing model from the issue text.
Description
Description
entrification of a category aborts with exception after the "💡 Run this command on other environments immediately after deploying these changes:" message.
The file /srv/www/kt_craft5_dev/config/project/ckeditor/configs dosnt exists, even its parent /srv/www/kt_craft5_dev/config/project/ckeditor dosnt exists.
`Exception 'yii\base\Exception' with message 'Unable to write new project config files'
in /srv/www/kt_craft5_dev/vendor/craftcms/cms/src/services/ProjectConfig.php:1652
Caused by: PHP Warning 'yii\base\ErrorException' with message 'rmdir(/srv/www/kt_craft5_dev/config/project/ckeditor/configs): Directory not empty'
in /srv/www/kt_craft5_dev/vendor/yiisoft/yii2/helpers/BaseFileHelper.php:466
Stack trace:
#0 [internal function]: yii\base\ErrorHandler->handleError()
#1 /srv/www/kt_craft5_dev/vendor/yiisoft/yii2/helpers/BaseFileHelper.php(466): rmdir()
#2 /srv/www/kt_craft5_dev/vendor/craftcms/cms/src/helpers/FileHelper.php(187): yii\helpers\BaseFileHelper::removeDirectory()
#3 /srv/www/kt_craft5_dev/vendor/yiisoft/yii2/helpers/BaseFileHelper.php(456): craft\helpers\FileHelper::removeDirectory()
#4 /srv/www/kt_craft5_dev/vendor/craftcms/cms/src/helpers/FileHelper.php(187): yii\helpers\BaseFileHelper::removeDirectory()
#5 /srv/www/kt_craft5_dev/vendor/craftcms/cms/src/helpers/FileHelper.php(579): craft\helpers\FileHelper::removeDirectory()
#6 /srv/www/kt_craft5_dev/vendor/craftcms/cms/src/services/ProjectConfig.php(1645): craft\helpers\FileHelper::clearDirectory()
#7 /srv/www/kt_craft5_dev/vendor/craftcms/cms/src/services/ProjectConfig.php(421): craft\services\ProjectConfig->writeYamlFiles()
#8 [internal function]: craft\services\ProjectConfig->flush()
#9 /srv/www/kt_craft5_dev/vendor/yiisoft/yii2/base/Component.php(645): call_user_func()
#10 /srv/www/kt_craft5_dev/vendor/craftcms/cms/src/base/ApplicationTrait.php(547): yii\base\Component->trigger()
#11 /srv/www/kt_craft5_dev/vendor/yiisoft/yii2/base/Application.php(387): craft\console\Application->trigger()
#12 /srv/www/kt_craft5_dev/craft(13): yii\base\Application->run()
#13 {main}
`
Additional info
- Craft version: crtaft 5.7.6
- PHP version: 8.3.8.
- Database driver & version: 10.11.11-MariaDB
- Plugins & versions: 4.8.0
- Dominant language
- PHP
- Stars
- 47
- Forks
- 32
- Avg merge
- 3d 20h
- Merged PRs (30d)
- 3
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from craftcms/ckeditor
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
[5.x]: InvalidSubpathException when Default Upload Location uses an object template like {slug}Possibly taken @i-just claimed this 7 days ago. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
-
Image Editor reload appends stacking cache timestamp and doesn't reflect edits behind a CDNMay be free again @i-just claimed this 107 days ago, and no pull request is open. Openbug
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 55/100
All issues in craftcms/ckeditor
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
-
sync-en
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Maintainers usually reply within 1 day
-
sync-en
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Yoast/wordpress-seo#23658 ·
Maintainers usually reply within 3 days
-
fixed
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
firefly-iii/firefly-iii#12934 · 2 comments ·
Maintainers usually reply within 1 day