Bug #34206
Fatal error: Cannot use string offset as an array in /var/www/FAL/t3lib/file/Factory.php
| Status: | Resolved | Start date: | 2012-02-23 | |
|---|---|---|---|---|
| Priority: | Should have | Due date: | ||
| Assignee: | Susanne Moog | % Done: | 100% |
|
| Category: | - | |||
| Target version: | - | |||
| Votes: | 0 |
Description
Fatal error: Cannot use string offset as an array in /var/www/FAL/t3lib/file/Factory.php on line <i>147</i> because my defaultStorage has no flexform and xml2array returns an error string instead of an array.
Solution:
check if $flexFormData is there before trying to transform it.
if($flexFormData) {
$flexFormContents = t3lib_div::xml2array($flexFormData);
if (!empty($flexFormContents['data']['sDEF']['lDEF']) && is_array($flexFormContents['data']['sDEF']['lDEF'])) {
foreach ($flexFormContents['data']['sDEF']['lDEF'] as $key => $value) {
if (isset($value['vDEF'])) {
$configuration[$key] = $value['vDEF'];
}
}
}
}
Related issues
| duplicated by File Abstraction Layer - Bug #34211: Element browser raises exception | Closed | 2012-02-23 |
History
Updated by Susanne Moog about 1 year ago
- Status changed from New to Accepted
- Assignee set to Susanne Moog
Updated by Oliver Hader about 1 year ago
Fixed in commit:63da6704988b6c457c7781ebe3032daf94598e06
Updated by Oliver Hader about 1 year ago
- Status changed from Accepted to Resolved
- % Done changed from 0 to 100