{"action":"created","issue":{"url":"https://api.github.com/repos/torounit/custom-post-type-permalinks/issues/33","labels_url":"https://api.github.com/repos/torounit/custom-post-type-permalinks/issues/33/labels{/name}","comments_url":"https://api.github.com/repos/torounit/custom-post-type-permalinks/issues/33/comments","events_url":"https://api.github.com/repos/torounit/custom-post-type-permalinks/issues/33/events","html_url":"https://github.com/torounit/custom-post-type-permalinks/issues/33","id":53248578,"number":33,"title":"Object conversion to string error","user":{"login":"dragosmocrii","id":1543960,"avatar_url":"https://avatars.githubusercontent.com/u/1543960?v=3","gravatar_id":"","url":"https://api.github.com/users/dragosmocrii","html_url":"https://github.com/dragosmocrii","followers_url":"https://api.github.com/users/dragosmocrii/followers","following_url":"https://api.github.com/users/dragosmocrii/following{/other_user}","gists_url":"https://api.github.com/users/dragosmocrii/gists{/gist_id}","starred_url":"https://api.github.com/users/dragosmocrii/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dragosmocrii/subscriptions","organizations_url":"https://api.github.com/users/dragosmocrii/orgs","repos_url":"https://api.github.com/users/dragosmocrii/repos","events_url":"https://api.github.com/users/dragosmocrii/events{/privacy}","received_events_url":"https://api.github.com/users/dragosmocrii/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-02T11:38:39Z","updated_at":"2015-01-13T05:13:15Z","closed_at":null,"body":"On line https://github.com/torounit/custom-post-type-permalinks/blob/master/CPTP/Util.php#L71 $post_type is an object. Probably you wanted to use one of its properties."},"comment":{"url":"https://api.github.com/repos/torounit/custom-post-type-permalinks/issues/comments/69696594","html_url":"https://github.com/torounit/custom-post-type-permalinks/issues/33#issuecomment-69696594","issue_url":"https://api.github.com/repos/torounit/custom-post-type-permalinks/issues/33","id":69696594,"user":{"login":"torounit","id":1908815,"avatar_url":"https://avatars.githubusercontent.com/u/1908815?v=3","gravatar_id":"","url":"https://api.github.com/users/torounit","html_url":"https://github.com/torounit","followers_url":"https://api.github.com/users/torounit/followers","following_url":"https://api.github.com/users/torounit/following{/other_user}","gists_url":"https://api.github.com/users/torounit/gists{/gist_id}","starred_url":"https://api.github.com/users/torounit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/torounit/subscriptions","organizations_url":"https://api.github.com/users/torounit/orgs","repos_url":"https://api.github.com/users/torounit/repos","events_url":"https://api.github.com/users/torounit/events{/privacy}","received_events_url":"https://api.github.com/users/torounit/received_events","type":"User","site_admin":false},"created_at":"2015-01-13T05:13:15Z","updated_at":"2015-01-13T05:13:15Z","body":"$post_type in CPTP:: get_permalink_structure is string.\r\nHowever , even if post_type is an object , and modify it to work ."}}