New blog setup, TypeError
Doccos opened this issue · comments
Bug Report
Prerequisites
- Can you reproduce the problem on TYPO3 v9.5 LTS
- Can you reproduce the problem on TYPO3 v10.4 LTS
- [ x] Can you reproduce the problem on TYPO3 v11.x
- [x ] Did you perform a cursory search to see if your bug or feature is already reported?
Description
When i add a new Blog via the backen setup module, following type error occurs:
str_replace(): Argument #2 ($replace) must be of type array|string, int given
Steps to Reproduce
- Go to backend module Blog->Setup
- Press button "Setup a new Blog", give a title and press button "Setup"
- error occurs
Expected behavior:
No exception
Actual behavior:
TypeError:
str_replace(): Argument #2 ($replace) must be of type array|string, int given
in /var/www/html/public/typo3conf/ext/blog/Classes/Service/SetupService.php line 96
i think $blogFolderUid should be casted to string
same problem on line 153 and 146
Versions
t3g/blog: 11.0.2
typo3/cms-core: 11.5.26
php: 8.0.28