benjaminkott / benjaminkott/bootstrap_package

Cannot cast value of type array to string.Array ( [multiplier] => Array ( [default] => 0.5 [xlarge] => 0.5 [large] => 0.5 [medium] => 0.5 [small] => 0.5 ) [gutters] => Array ( [default] => 16 [xlarge] => 16 [large] => 16 [medium] => 16 [small] => 16 ) [corrections] => Array ( [default] => 2 [xlarge] => 2 [large] => 2 [medium] => 2 [small] => 2 [extrasmall] => 2 ) )

Open
#1,440 4 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
PHP
Stars
355
Forks
212
Avg merge
1h 4m
Merged PRs (30d)
31

Description

# Bug Report

## Prerequisites

* [X] Can you reproduce the problem on TYPO3 v11.5 LTS
* [ ] Can you reproduce the problem on TYPO3 v12.4 LTS
* [ ] Did you [perform a cursory search](https://github.com/issues?q=is%3Aissue+user%3Abenjaminkott+repo%3Abenjaminkott%2Fbootstrap_package)
to see if your bug or enhancement is already reported?

## Description

The card group item is responsible in that case for the exception.
I disabled all elements and reenabled them one-by-one on the page where it occurs.
It's only on that one.
Maybe as well on other bootstrap-content-elements not used there.

## Steps to Reproduce

1. Use card group content element
2. empty cache
3. reload frontend
4. see exception

### Expected behavior

No exception.
Fluid parameter should be passed as string instead of array (array of bootstrap-package breakpoints - in any partial) or object should have a toString method.
Sadly, i was not able to determine in switch fuild partial / template it occured.
I hope, the screenshot may help you (didn't for me).

### Actual behavior

Exception pops up, since fluid viewhelper cannot parse an argument passed falsly as array instead of string.

### Screenshots

![Screenshot 2023-11-03 at 12-55-48 TYPO3 Exception](https://github.com/benjaminkott/bootstrap_package/assets/9478590/bce83f91-4aaf-4881-a0ed-6e54ed9f3a71)

## Versions

Typo3 11.5.32
Bootstrap-Package 14.0.7

Thank you!
Hopfully you can find something here.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.