{"action":"created","issue":{"url":"https://api.github.com/repos/FluidTYPO3/flux/issues/784","labels_url":"https://api.github.com/repos/FluidTYPO3/flux/issues/784/labels{/name}","comments_url":"https://api.github.com/repos/FluidTYPO3/flux/issues/784/comments","events_url":"https://api.github.com/repos/FluidTYPO3/flux/issues/784/events","html_url":"https://github.com/FluidTYPO3/flux/issues/784","id":63229864,"number":784,"title":"PHP Warning: Illegal string offset 'data' in EXT:flux/Classes/Provider/AbstractProvider.php line 522","user":{"login":"ecentral","id":6725620,"avatar_url":"https://avatars.githubusercontent.com/u/6725620?v=3","gravatar_id":"","url":"https://api.github.com/users/ecentral","html_url":"https://github.com/ecentral","followers_url":"https://api.github.com/users/ecentral/followers","following_url":"https://api.github.com/users/ecentral/following{/other_user}","gists_url":"https://api.github.com/users/ecentral/gists{/gist_id}","starred_url":"https://api.github.com/users/ecentral/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ecentral/subscriptions","organizations_url":"https://api.github.com/users/ecentral/orgs","repos_url":"https://api.github.com/users/ecentral/repos","events_url":"https://api.github.com/users/ecentral/events{/privacy}","received_events_url":"https://api.github.com/users/ecentral/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-03-20T13:34:14Z","updated_at":"2015-06-16T07:03:23Z","closed_at":"2015-04-15T07:47:50Z","body":"Hi,\r\n\r\ni have a strange behaviour of my typo3 6.2.3 system after the update from flux (version 7.1.2) to flux (version 7.2.0).\r\nIf i try to copy and paste any page the following error message accoured:\r\n#1: PHP Warning: Illegal string offset 'data' in EXT:flux/Classes/Provider/AbstractProvider.php line 522\r\n\r\nOn a fresh typo3 install the error dont exist.\r\nAnyone else have problems like this?\r\n\r\n---\r\n\r\nI figured out a small patch, which works for me.\r\nI changed the following lines in the function preProcessRecord in the file AbstractProvider.php:\r\n```php\r\n    public function preProcessRecord(array &$row, $id, DataHandler $reference) {\r\n        $fieldName = $this->getFieldName($row);\r\n        $tableName = $this->getTableName($row);\r\n        $fieldNameData = isset($row[$fieldName]['data'])?$row[$fieldName]['data']:false;\r\n        $fieldNameDataOptions = isset($row[$fieldName]['data']['options']['lDEF'])?$row[$fieldName]['data']['options']['lDEF']:false;\r\n        if (TRUE === is_array($fieldNameData) && TRUE === is_array($fieldNameDataOptions)) {\r\n            foreach ($row[$fieldName]['data']['options']['lDEF'] as $key => $value) {\r\n                if (0 === strpos($key, $tableName)) {\r\n                    $realKey = array_pop(explode('.', $key));\r\n                    if (TRUE === isset($row[$realKey])) {\r\n                        $row[$realKey] = $value['vDEF'];\r\n                    }\r\n                }\r\n            }\r\n        }\r\n    }\r\n```"},"comment":{"url":"https://api.github.com/repos/FluidTYPO3/flux/issues/comments/112314746","html_url":"https://github.com/FluidTYPO3/flux/issues/784#issuecomment-112314746","issue_url":"https://api.github.com/repos/FluidTYPO3/flux/issues/784","id":112314746,"user":{"login":"bjo3rnf","id":1183009,"avatar_url":"https://avatars.githubusercontent.com/u/1183009?v=3","gravatar_id":"","url":"https://api.github.com/users/bjo3rnf","html_url":"https://github.com/bjo3rnf","followers_url":"https://api.github.com/users/bjo3rnf/followers","following_url":"https://api.github.com/users/bjo3rnf/following{/other_user}","gists_url":"https://api.github.com/users/bjo3rnf/gists{/gist_id}","starred_url":"https://api.github.com/users/bjo3rnf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bjo3rnf/subscriptions","organizations_url":"https://api.github.com/users/bjo3rnf/orgs","repos_url":"https://api.github.com/users/bjo3rnf/repos","events_url":"https://api.github.com/users/bjo3rnf/events{/privacy}","received_events_url":"https://api.github.com/users/bjo3rnf/received_events","type":"User","site_admin":false},"created_at":"2015-06-16T07:03:23Z","updated_at":"2015-06-16T07:03:23Z","body":"This is not related to #836 which was introduced much later, right? Or is it?"}}