{"action":"created","issue":{"url":"https://api.github.com/repos/qTranslate-Team/qtranslate-x/issues/127","labels_url":"https://api.github.com/repos/qTranslate-Team/qtranslate-x/issues/127/labels{/name}","comments_url":"https://api.github.com/repos/qTranslate-Team/qtranslate-x/issues/127/comments","events_url":"https://api.github.com/repos/qTranslate-Team/qtranslate-x/issues/127/events","html_url":"https://github.com/qTranslate-Team/qtranslate-x/issues/127","id":67459924,"number":127,"title":"PHP Fatal error: Cannot unset string offsets.... qtx_configuration.php on line 143","user":{"login":"picasso","id":399395,"avatar_url":"https://avatars.githubusercontent.com/u/399395?v=3","gravatar_id":"","url":"https://api.github.com/users/picasso","html_url":"https://github.com/picasso","followers_url":"https://api.github.com/users/picasso/followers","following_url":"https://api.github.com/users/picasso/following{/other_user}","gists_url":"https://api.github.com/users/picasso/gists{/gist_id}","starred_url":"https://api.github.com/users/picasso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/picasso/subscriptions","organizations_url":"https://api.github.com/users/picasso/orgs","repos_url":"https://api.github.com/users/picasso/repos","events_url":"https://api.github.com/users/picasso/events{/privacy}","received_events_url":"https://api.github.com/users/picasso/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/qTranslate-Team/qtranslate-x/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-04-09T21:59:57Z","updated_at":"2015-04-11T12:40:51Z","closed_at":null,"body":"Version: 3.2.9.8.4\r\n\r\nPHP Fatal error: Cannot unset string offsets in ..... /plugins/qtranslate-x/admin/qtx_configuration.php on line 143\r\n\r\nIt happens when I try to save a new post of custom type with additional fields... one of these fields is empty... and in processing of this empty field in qtranxf_collect_translations - fatal error happens...\r\n\r\nI think you should add a check before processing the field in qtranxf_collect_translations\r\n\r\nhope this helps to improve the plugin. I like it."},"comment":{"url":"https://api.github.com/repos/qTranslate-Team/qtranslate-x/issues/comments/91837106","html_url":"https://github.com/qTranslate-Team/qtranslate-x/issues/127#issuecomment-91837106","issue_url":"https://api.github.com/repos/qTranslate-Team/qtranslate-x/issues/127","id":91837106,"user":{"login":"picasso","id":399395,"avatar_url":"https://avatars.githubusercontent.com/u/399395?v=3","gravatar_id":"","url":"https://api.github.com/users/picasso","html_url":"https://github.com/picasso","followers_url":"https://api.github.com/users/picasso/followers","following_url":"https://api.github.com/users/picasso/following{/other_user}","gists_url":"https://api.github.com/users/picasso/gists{/gist_id}","starred_url":"https://api.github.com/users/picasso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/picasso/subscriptions","organizations_url":"https://api.github.com/users/picasso/orgs","repos_url":"https://api.github.com/users/picasso/repos","events_url":"https://api.github.com/users/picasso/events{/privacy}","received_events_url":"https://api.github.com/users/picasso/received_events","type":"User","site_admin":false},"created_at":"2015-04-11T12:40:51Z","updated_at":"2015-04-11T12:40:51Z","body":"here you ca see the result of `qtranxf_dbg_log('qtranxf_collect_translations_posted: REQUEST: ',$_REQUEST);`\r\n\r\n```js\r\nqtranxf_collect_translations_posted: REQUEST: array (\r\n  '_wp_http_referer' => '/wp-admin/post.php?post=1228&action=edit&message=10',\r\n  'action' => 'editpost',\r\n  'originalaction' => 'editpost',\r\n  'post_type' => 'event',\r\n  'original_post_status' => 'draft',\r\n  'post_ID' => '1228',\r\n  'meta-box-order-nonce' => '71512b41ab',\r\n  'closedpostboxesnonce' => '52718054db',\r\n  'qtranslate-fields' => \r\n  array (\r\n    'post_title' => \r\n    array (\r\n      'en' => 'Tuscany',\r\n      'ru' => 'Тоскана',\r\n    ),\r\n    'content' => \r\n    array (\r\n      'en' => 'about',\r\n      'ru' => 'кое-что',\r\n    ),\r\n    'wpcf' => \r\n    array (\r\n      'en' => \r\n      array (\r\n        'program' => 'some days',\r\n        'terms' => '',\r\n      ),\r\n      'ru' => \r\n      array (\r\n        'program' => 'Программа',\r\n        'terms' => '',\r\n      ),\r\n    ),\r\n  ),\r\n  'post_title' => 'Tuscany',\r\n  'content' => 'about',\r\n  'save' => 'Save Draft',\r\n  'wp-preview' => '',\r\n  'hidden_post_status' => 'draft',\r\n  'post_status' => 'draft',\r\n  'hidden_post_password' => '',\r\n  'hidden_post_visibility' => 'public',\r\n  'visibility' => 'public',\r\n  'mm' => '04',\r\n  'jj' => '11',\r\n  'aa' => '2015',\r\n  'hh' => '15',\r\n  'mn' => '26',\r\n  'ss' => '41',\r\n  'hidden_mm' => '04',\r\n  'cur_mm' => '04',\r\n  'hidden_jj' => '11',\r\n  'cur_jj' => '11',\r\n  'hidden_aa' => '2015',\r\n  'cur_aa' => '2015',\r\n  'hidden_hh' => '15',\r\n  'cur_hh' => '15',\r\n  'hidden_mn' => '26',\r\n  'cur_mn' => '26',\r\n  'original_publish' => 'Publish',\r\n  'wpcf' => \r\n  array (\r\n    'year' => '',\r\n    'start-date' => \r\n    array (\r\n      'datepicker' => '1428796800',\r\n    ),\r\n    'end-date' => \r\n    array (\r\n      'datepicker' => '1428969600',\r\n    ),\r\n    'price' => '2500',\r\n    'program' => 'some days',\r\n    'terms' => '',\r\n    'url' => '',\r\n    'lat' => '',\r\n    'lng' => '',\r\n    'zoom' => '',\r\n  ),\r\n  'post_name' => 'tuscany2015',\r\n  '_wpcf_relationship_items_per_page' => '5',\r\n  'wpcf_pr_belongs' => \r\n  array (\r\n    1228 => \r\n    array (\r\n      'region' => '0',\r\n    ),\r\n  ),\r\n  'qtrans_edit_language' => 'en',\r\n  'qtranslate-admin-general' => '1',\r\n  'qtranslate-admin-advanced' => '1',\r\n  'qtrans_admin_language' => 'en',\r\n  'qtrans_front_language' => 'en',\r\n)\r\n```\r\n\r\nas you can see the filleds `start-date` and `end-date` are filled but they will be empty when request will be processed.\r\n\r\nI suspect that it's connected with name of these fields - `name=\"wpcf[start-date][datepicker]\"`\r\n\r\nMaybe it will give you some ideas about what happens..."}}