Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New blog setup, TypeError #269

Open
2 tasks
Doccos opened this issue Apr 15, 2023 · 0 comments
Open
2 tasks

New blog setup, TypeError #269

Doccos opened this issue Apr 15, 2023 · 0 comments

Comments

@Doccos
Copy link

Doccos commented Apr 15, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant