hi,
i have an “Notice: Trying to get property of non-object” error when saving/publishing a post.
this line is the problem:
[code]public function get_translation(...) {
$slug = $this->get_language($lang)->slug;
....
}[/code]
it throws an error with a custom post type i use to add field sets to other (custom) post types with the plugin “Advanced Custom Fields”.
is it possible to add a fallback? for me that works for the moment, but for sure its not a nice solution:
[code]if(empty($this->get_language($lang)->slug)) {
$slug = 'de';
} else {
$slug = $this->get_language($lang)->slug;
}[/code]