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

FileRequired errorcheck PHP error > count() on noncountable object #61

Open
vizlot opened this issue Jan 28, 2021 · 0 comments
Open

FileRequired errorcheck PHP error > count() on noncountable object #61

vizlot opened this issue Jan 28, 2021 · 0 comments

Comments

@vizlot
Copy link

vizlot commented Jan 28, 2021

suggestion to make a simpler condition avoiding null variable

      if (!$found && !$sessionFiles[$this->formFieldName]) {
   		$checkFailed = $this->getCheckFailed();
       }

if (!$found && count($sessionFiles[$this->formFieldName]) === 0) {

TYPO3 8.7
Core: Error handler (FE): PHP Warning: count(): Parameter must be an array or an object that implements Countable in /sites/gazvacancy/htdocs/typo3conf/ext/formhandler/Classes/Validator/ErrorCheck/FileRequired.php line 35

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

1 participant