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

PHP Warning: array_flip(): Can only flip STRING and INTEGER values #10

Closed
franzholz opened this issue May 4, 2021 · 3 comments
Closed

Comments

@franzholz
Copy link
Contributor

franzholz commented May 4, 2021

This happens in TYPO3 9.5 and PHP 7.3.

blog_example 9.5.0

Oops, an error occurred! Code: 202105041047528ec47c25 PHP Warning: array_flip(): Can only flip STRING and INTEGER values! in /var/www/html/typo3_src-9.5.24/typo3/sysext/extbase/Classes/Mvc/Controller/ActionController.php line 254 exception code:1476107295 file:/typo3/sysext/core/Classes/Error/ErrorHandler.php line:132 fh_debug trace: file: " line: function:handleError file: /typo3/sysext/extbase/Classes/Mvc/Controller/ActionController.php" line:254 function:array_flip file: /typo3/sysext/extbase/Classes/Mvc/Controller/ActionController.php" line:154 function:initializeActionMethodValidators file: /typo3/sysext/extbase/Classes/Mvc/Dispatcher.php" line:73 function:processRequest file: /typo3/sysext/extbase/Classes/Mvc/Web/FrontendRequestHandler.php" line:92 function:dispatch file: /typo3/sysext/extbase/Classes/Core/Bootstrap.php" line:172 function:handleRequest file: /typo3/sysext/extbase/Classes/Core/Bootstrap.php" line:159 function:handleRequest file: " line: function:run file: /typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php" line:5969 function:call_user_func_array file: /typo3/sysext/frontend/Classes/ContentObject/UserContentObject.php" line:41 function:callUserFunction file: /typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php" line:815 function:render file: /typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php" line:731 function:render file: /typo3/sysext/fluid/Classes/ViewHelpers/CObjectViewHelper.php" line:189 function:cObjGetSingle

@franzholz
Copy link
Contributor Author

I think this is a bug in TYPO3 9.5.

https://forge.typo3.org/issues/94055

@alexanderschnitzler
Copy link

This is not a core bug but wrong usage of the new annotation.

Please see this as a reference: https://docs.typo3.org/c/typo3/cms-core/master/en-us/Changelog/9.0/Feature-83094-ReplaceIgnorevalidationWithTYPO3CMSExtbaseAnnotationIgnoreValidation.html#

Wrong usage: @TYPO3\CMS\Extbase\Annotation\IgnoreValidation $param
Right usage: @TYPO3\CMS\Extbase\Annotation\IgnoreValidation("param")

@franzholz
Copy link
Contributor Author

Fixed in

#11

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

3 participants