Getting mkdir error when saving theme settings form.
Error
Warning: mkdir(): File exists in Drupal\Core\File\FileSystem->mkdirCall() (line 237 of core/lib/Drupal/Core/File/FileSystem.php).
Drupal\Core\File\FileSystem->mkdirCall('sites/default/files/seven', 509, , NULL) (Line: 222)
Drupal\Core\File\FileSystem->mkdir('sites/default/files/seven', 509, 1, NULL) (Line: 1184)
drupal_mkdir('sites/default/files/seven', 509, 1) (Line: 451)Steps to reproduce the problem
Save configuration in Bootstrap4 settings or other theme settings page.
Appearance > Bootstrap4 > Settings
/admin/appearance/settings/bootstrap4
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | bootstrap4-mkdir-error-fix-3027311-2-D8.patch | 614 bytes | kelvinwong |
Comments
Comment #2
kelvinwong commentedThe problem happens when the theme folder in the public file directory is already existed. The patch provided added an if statement to avoid the creation of theme folder when it is already there.
Comment #3
kelvinwong commentedComment #5
vladimirausThanks @KelvinWong
Patched and applied to dev and beta 4.
Comment #6
vladimiraus