TYPO3GmbH / blog

This blog extension uses TYPO3s core concepts and elements to provide a full-blown blog that users of TYPO3 can instantly understand and use.

Home Page:https://typo3.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

New blog setup, TypeError

Doccos opened this issue · comments

commented

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

  1. Go to backend module Blog->Setup
  2. Press button "Setup a new Blog", give a title and press button "Setup"
  3. 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