Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Unable to write new project config files

Open
#430 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
php
Domain
backend

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

bug need more info
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

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from craftcms/ckeditor

All issues in craftcms/ckeditor

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.