Closed jeanfrancoisbeaulieu closed 7 months ago
Thanks for reporting. I could reproduce it and forward it to the kirby core team.
My test environment: MacOS 14.2 Brave v1.61.114 MAMP 6.8.1 PHP 8.1.13
Following Ahmet's advice, I have adapted the following line in the repository:
Thank you.
After testing some things with a custom formfield and deleting the field .yml file in "site/theme/blueprints/blocks/formfields/", a hidden/special file (.DS_Store) was created in the folder by the OS.
This file is read by
foreach (Dir::read($formblockfolder, [], true) as $f) {
inmergeFormfields()
insideFormBlueprint.php
and throws an empty array error.Adding a custom ignore:
foreach (Dir::read($formblockfolder, ['.DS_Store'], true) as $f) {
removes the error.I'm not sure if this is specific to my local dev setup (macOS + MAMP) and how the Kirby
Dir::read
regular ignore are supposed to work (['.', '..']
). Maybe this error should be directed at Kirby. Let me know what you think.Thank you.
MacOS 12.6.9 Chrome 120.0.6099.109 MAMP 6.6 PHP 8.0.8