Actions
Bug #30871
closedError: Invalid argument supplied for foreach()
Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Form Framework
Target version:
-
Start date:
2011-10-13
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
4.6
PHP Version:
5.3
Tags:
FormWizard
Complexity:
Is Regression:
Sprint Focus:
Description
Get following error in log.
Core: Error handler (FE): PHP Warning: Invalid argument supplied for foreach() in www/typo3conf/ext/form/Classes/System/Request/Request.php line 376
change
private function removeFiles() { $values = $this->getByMethod(); foreach ($values as $value) { if (is_array($value) && (isset($value['tempFilename']))) { t3lib_div::unlink_tempfile($value['tempFilename']); } } }
with
private function removeFiles() { $values = $this->getByMethod(); if (is_array($values)) { foreach ($values as $value) { if (is_array($value) && (isset($value['tempFilename']))) { t3lib_div::unlink_tempfile($value['tempFilename']); } } } }
will help.
Updated by Oliver Hader about 13 years ago
- Project changed from 135 to TYPO3 Core
Updated by Oliver Hader about 13 years ago
- Status changed from New to Resolved
- PHP Version set to 5.3
- TYPO3 Version set to 4.6
Seems like you used the code from the old form project on forge.
Since TYPO3 4.6.0-beta1 the form extension was added as system extension.
Actions