I tried to disable advanced ads addons until only core advanced ads plugin stayed active – still notice.
I then deactivated all other plugins – notice is there.
It happens both logged in/out.
Also, it seems to happen only on CPT archive pages.
$query just before the line 54 looks like this:
stdClass Object
(
[labels] => stdClass Object
(
[name] => Téma
[singular_name] => Téma
[add_new] => Prida? novyú tému
[add_new_item] => Prida? novyú tému
[edit_item] => Upravi? tému
[new_item] => Prida? novú tému
[view_item] => Zobrazi? tému
[search_items] => H?ada? %s
[not_found] => Neboli nájdené ?iadne témy
[not_found_in_trash] => V ko?i nie sú ?iadne témy
[parent_item_colon] =>
[all_items] => V?etky Témy
[featured_image] => Prezenta?ny obrázok
[set_featured_image] => Nastavi? prezenta?ny obrázok
[remove_featured_image] => Odstráni? prezenta?ny obrázok
[use_featured_image] => Pou?i? ako prezenta?ny obrázok
[menu_name] => Témy
[name_admin_bar] => Téma
)
[description] =>
[public] => 1
[hierarchical] =>
[exclude_from_search] =>
[publicly_queryable] => 1
[show_ui] => 1
[show_in_menu] => 1
[show_in_nav_menus] => 1
[show_in_admin_bar] => 1
[menu_position] =>
[menu_icon] => dashicons-media-document
[capability_type] => post
[map_meta_cap] => 1
[register_meta_box_cb] =>
[taxonomies] => Array
(
[0] => category
[1] => post_tag
)
[has_archive] => 1
[rewrite] => Array
(
[slug] => longread
[with_front] =>
[pages] => 1
[feeds] => 1
[ep_mask] => 1
)
[query_var] => longread
[can_export] => 1
[delete_with_user] =>
[_builtin] =>
[_edit_link] => post.php?post=%d
[name] => longread
[cap] => stdClass Object
(
[edit_post] => edit_post
[read_post] => read_post
[delete_post] => delete_post
[edit_posts] => edit_posts
[edit_others_posts] => edit_others_posts
[publish_posts] => publish_posts
[read_private_posts] => read_private_posts
[read] => read
[delete_posts] => delete_posts
[delete_private_posts] => delete_private_posts
[delete_published_posts] => delete_published_posts
[delete_others_posts] => delete_others_posts
[edit_private_posts] => edit_private_posts
[edit_published_posts] => edit_published_posts
[create_posts] => edit_posts
)
[label] => Téma
)
What other details would help you investigate this?