Skip to content
This repository has been archived by the owner on Nov 4, 2023. It is now read-only.

Exception when view a log due to a bug in IsArrayViewHelper #28

Closed
igodorogea opened this issue Nov 7, 2018 · 2 comments
Closed

Exception when view a log due to a bug in IsArrayViewHelper #28

igodorogea opened this issue Nov 7, 2018 · 2 comments

Comments

@igodorogea
Copy link

When I try to view a log in "Formhandler" backend module, I get an exception(stack below).

TYPO3: 8.7.20
Formhandler: 3.0.0

Error stack

Uncaught TYPO3 Exception
Subject given to f:count() is not countable (type: string) 

TYPO3Fluid\Fluid\Core\ViewHelper\Exception thrown in file
.../vendor/typo3fluid/fluid/src/ViewHelpers/CountViewHelper.php in line 70.

31 TYPO3Fluid\Fluid\ViewHelpers\CountViewHelper::renderStatic(array, Closure, TYPO3\CMS\Fluid\Core\Rendering\RenderingContext)

.../public/typo3temp/var/Cache/Code/fluid_template/Module_action_view_19ca6c025e5a7b2a83c84a119983166163e9c96a.php:
00411: $arguments41 = array();
00412: $arguments41['subject'] = NULL;
00413: $renderChildrenClosure42 = ($arguments41['subject'] !== null) ? function() use ($arguments41) { return $arguments41['subject']; } : $renderChildrenClosure42;$array40['0'] = TYPO3Fluid\Fluid\ViewHelpers\CountViewHelper::renderStatic($arguments41, $renderChildrenClosure42, $renderingContext);
00414: $array40['1'] = ' > 0';
00415: 

30 Module_action_view_19ca6c025e5a7b2a83c84a119983166163e9c96a::{closure}()

.../vendor/typo3fluid/fluid/src/Core/ViewHelper/AbstractConditionViewHelper.php:
00083:             }
00084:             if (isset($arguments['__thenClosure'])) {
00085:                 return $arguments['__thenClosure']();
00086:             }
00087:         } elseif (!empty($arguments['__elseClosures'])) {

29 TYPO3Fluid\Fluid\Core\ViewHelper\AbstractConditionViewHelper::renderStatic(array, Closure, TYPO3\CMS\Fluid\Core\Rendering\RenderingContext)

.../public/typo3temp/var/Cache/Code/fluid_template/Module_action_view_19ca6c025e5a7b2a83c84a119983166163e9c96a.php:
00444: };
00445: 
00446: $output33 .= Typoheads\Formhandler\ViewHelpers\IsArrayViewHelper::renderStatic($arguments35, $renderChildrenClosure36, $renderingContext);
00447: 
00448: $output33 .= '
@7elix
Copy link
Collaborator

7elix commented Apr 8, 2021

Would you please rebase your code in order to see wether the issue still exists.
The corresponding code changed in the meantime to static renderStatic call.

@igodorogea
Copy link
Author

Sorry @7elix , that was too long ago.
I don't even remember in what project I was encountering this.
Feel free to close it.

@7elix 7elix closed this as completed Mar 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants