{"action":"created","issue":{"url":"https://api.github.com/repos/ThemeFuse/Unyson/issues/2216","repository_url":"https://api.github.com/repos/ThemeFuse/Unyson","labels_url":"https://api.github.com/repos/ThemeFuse/Unyson/issues/2216/labels{/name}","comments_url":"https://api.github.com/repos/ThemeFuse/Unyson/issues/2216/comments","events_url":"https://api.github.com/repos/ThemeFuse/Unyson/issues/2216/events","html_url":"https://github.com/ThemeFuse/Unyson/issues/2216","id":192104469,"number":2216,"title":"Bunch of undefined indexes after update to 2.6.9 stable","user":{"login":"danyj","id":2340172,"avatar_url":"https://avatars.githubusercontent.com/u/2340172?v=3","gravatar_id":"","url":"https://api.github.com/users/danyj","html_url":"https://github.com/danyj","followers_url":"https://api.github.com/users/danyj/followers","following_url":"https://api.github.com/users/danyj/following{/other_user}","gists_url":"https://api.github.com/users/danyj/gists{/gist_id}","starred_url":"https://api.github.com/users/danyj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danyj/subscriptions","organizations_url":"https://api.github.com/users/danyj/orgs","repos_url":"https://api.github.com/users/danyj/repos","events_url":"https://api.github.com/users/danyj/events{/privacy}","received_events_url":"https://api.github.com/users/danyj/received_events","type":"User","site_admin":false},"labels":[{"id":156083853,"url":"https://api.github.com/repos/ThemeFuse/Unyson/labels/can't%20reproduce","name":"can't reproduce","color":"fbca04","default":false}],"state":"open","locked":false,"assignee":{"login":"moldcraft","id":1475489,"avatar_url":"https://avatars.githubusercontent.com/u/1475489?v=3","gravatar_id":"","url":"https://api.github.com/users/moldcraft","html_url":"https://github.com/moldcraft","followers_url":"https://api.github.com/users/moldcraft/followers","following_url":"https://api.github.com/users/moldcraft/following{/other_user}","gists_url":"https://api.github.com/users/moldcraft/gists{/gist_id}","starred_url":"https://api.github.com/users/moldcraft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moldcraft/subscriptions","organizations_url":"https://api.github.com/users/moldcraft/orgs","repos_url":"https://api.github.com/users/moldcraft/repos","events_url":"https://api.github.com/users/moldcraft/events{/privacy}","received_events_url":"https://api.github.com/users/moldcraft/received_events","type":"User","site_admin":false},"assignees":[{"login":"moldcraft","id":1475489,"avatar_url":"https://avatars.githubusercontent.com/u/1475489?v=3","gravatar_id":"","url":"https://api.github.com/users/moldcraft","html_url":"https://github.com/moldcraft","followers_url":"https://api.github.com/users/moldcraft/followers","following_url":"https://api.github.com/users/moldcraft/following{/other_user}","gists_url":"https://api.github.com/users/moldcraft/gists{/gist_id}","starred_url":"https://api.github.com/users/moldcraft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moldcraft/subscriptions","organizations_url":"https://api.github.com/users/moldcraft/orgs","repos_url":"https://api.github.com/users/moldcraft/repos","events_url":"https://api.github.com/users/moldcraft/events{/privacy}","received_events_url":"https://api.github.com/users/moldcraft/received_events","type":"User","site_admin":false}],"milestone":null,"comments":9,"created_at":"2016-11-28T20:07:55Z","updated_at":"2016-11-29T11:59:53Z","closed_at":null,"body":"again  db model is changing \r\nbunch of notices for Undefined index: from \r\n\r\nhttps://github.com/ThemeFuse/Unyson/blob/master/framework/helpers/class-fw-db-options-model.php#L199\r\n\r\nand \r\n\r\nhttps://github.com/ThemeFuse/Unyson/blob/master/framework/helpers/class-fw-db-options-model.php#L147\r\n\r\n\r\nwhat is changed this time? \r\n\r\ndefault vale are set , what now? "},"comment":{"url":"https://api.github.com/repos/ThemeFuse/Unyson/issues/comments/263552342","html_url":"https://github.com/ThemeFuse/Unyson/issues/2216#issuecomment-263552342","issue_url":"https://api.github.com/repos/ThemeFuse/Unyson/issues/2216","id":263552342,"user":{"login":"danyj","id":2340172,"avatar_url":"https://avatars.githubusercontent.com/u/2340172?v=3","gravatar_id":"","url":"https://api.github.com/users/danyj","html_url":"https://github.com/danyj","followers_url":"https://api.github.com/users/danyj/followers","following_url":"https://api.github.com/users/danyj/following{/other_user}","gists_url":"https://api.github.com/users/danyj/gists{/gist_id}","starred_url":"https://api.github.com/users/danyj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danyj/subscriptions","organizations_url":"https://api.github.com/users/danyj/orgs","repos_url":"https://api.github.com/users/danyj/repos","events_url":"https://api.github.com/users/danyj/events{/privacy}","received_events_url":"https://api.github.com/users/danyj/received_events","type":"User","site_admin":false},"created_at":"2016-11-29T11:59:53Z","updated_at":"2016-11-29T11:59:53Z","body":"this might help to test , add to functions.php\r\n\r\n\r\n\r\n```\r\nfunction thz_test_option($id = null,$default= null){\r\n\t\r\n\t\r\n\tglobal $thz_posthook;\r\n\t\r\n\tif($thz_posthook){\r\n\t\t\r\n\t\treturn fw_get_db_post_option(get_the_ID(),$id ,$default);\r\n\t\t\r\n\t}else{\r\n\t\t\r\n\t\treturn fw_get_db_settings_option($id ,$default);\r\n\t}\r\n\t\r\n\t\r\n}\r\n```\r\n\r\n\r\nand this in hooks \r\n\r\n\r\n```\r\nfunction _thz_action_load_options_hooks() {\r\n\t\r\n\tglobal $thz_posthook;\r\n\t\r\n\t$thz_posthook \t\t= false;\r\n\t if ( !is_admin() ) {\r\n\t\t \r\n\t\t$post_options \t\t= fw_get_db_post_option(get_the_ID(),'custom_post_options/0',array());\r\n\r\n\t\t\r\n\t\tif(!empty ($post_options)){\r\n\t\t\t$thz_posthook = true;\r\n\t\t}\r\n\r\n\r\n\t }\r\n\t\r\n}\r\n\r\nadd_action( 'wp', '_thz_action_load_options_hooks' );\r\n```\r\n\r\n\r\n\r\n\r\nthan call some option via \r\n\r\n\r\n```\r\n$someoption = thz_test_option ('mustbe/an/array', array());\r\n\r\n\r\nif(!empty($someoption )){\r\n    return 'something';\r\n}\r\n```\r\n\r\n\r\nundefined indexes come from  fw_get_db_settings_option  and not from  fw_get_db_post_option so far I can tell , not sure why. "}}
{"actor":{"display_login":"danyj"}}