• Hello,

    i was hoping this would be fixed automaticly but since some versions it doesn’t. I now ask to fix: Undefined property: WP_Post_Type::$ID in \wp-content\plugins\cookie-notice\includes\frontend.php on line 200

    this is flooding our logs and very annoying ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author dFactory

    (@dfactory)

    Thanks.
    We’ll have a look at it and provide a fix if the issue is confirmed.

    Thread Starter loki2489

    (@loki2489)

    error_log(__FILE__.":".__LINE__." ".serialize($object));

    shows the following example output:

    O:12:"WP_Post_Type":38:{s:4:"name";s:7:"product";s:5:"label";s:8:"Produkte";s:6:"labels";O:8:"stdClass":37:{s:4:"name";s:8:"Produkte";s:13:"singular_name";s:7:"Produkt";s:7:"add_new";s:9:"Erstellen";s:12:"add_new_item";s:25:"Neues Produkt hinzufügen";s:9:"edit_item";s:18:"Produkt bearbeiten";s:8:"new_item";s:13:"Neues Produkt";s:9:"view_item";s:16:"Produkt anzeigen";s:10:"view_items";s:17:"Produkte anzeigen";s:12:"search_items";s:15:"Produkte suchen";s:9:"not_found";s:23:"Keine Produkte gefunden";s:18:"not_found_in_trash";s:37:"Keine Produkte im Papierkorb gefunden";s:17:"parent_item_colon";N;s:9:"all_items";s:13:"Alle Produkte";s:8:"archives";s:13:"Alle Produkte";s:10:"attributes";s:18:"Beitrags-Attribute";s:16:"insert_into_item";s:21:"Ins Produkt einfügen";s:21:"uploaded_to_this_item";s:30:"Zu diesem Produkt hochgeladen.";s:14:"featured_image";s:11:"Produktbild";s:18:"set_featured_image";s:21:"Produktbild festlegen";s:21:"remove_featured_image";s:21:"Produktbild entfernen";s:18:"use_featured_image";s:25:"Als Produktbild verwenden";s:17:"filter_items_list";s:16:"Produkte filtern";s:14:"filter_by_date";s:18:"Nach Datum filtern";s:21:"items_list_navigation";s:17:"Produktnavigation";s:10:"items_list";s:12:"Produktliste";s:14:"item_published";s:24:"Beitrag ver?ffentlicht.";s:24:"item_published_privately";s:31:"Beitrag privat ver?ffentlicht.";s:22:"item_reverted_to_draft";s:35:"Beitrag auf Entwurf zurückgesetzt.";s:12:"item_trashed";s:47:"Der Beitrag wurde in den Papierkorb verschoben.";s:14:"item_scheduled";s:16:"Beitrag geplant.";s:12:"item_updated";s:21:"Beitrag aktualisiert.";s:9:"item_link";s:12:"Produkt-Link";s:21:"item_link_description";s:26:"Ein Link zu einem Produkt.";s:9:"menu_name";s:8:"Produkte";s:4:"edit";s:10:"Bearbeiten";s:6:"parent";s:23:"übergeordnetes Produkt";s:14:"name_admin_bar";s:7:"Produkt";}s:11:"description";s:63:"An dieser Stelle kannst du Produkte in diesem Shop durchsuchen.";s:6:"public";b:1;s:12:"hierarchical";b:0;s:19:"exclude_from_search";b:0;s:18:"publicly_queryable";b:1;s:7:"show_ui";b:1;s:12:"show_in_menu";b:1;s:17:"show_in_nav_menus";b:1;s:17:"show_in_admin_bar";b:1;s:13:"menu_position";N;s:9:"menu_icon";s:17:"dashicons-archive";s:15:"capability_type";s:7:"product";s:12:"map_meta_cap";b:1;s:20:"register_meta_box_cb";N;s:10:"taxonomies";a:0:{}s:11:"has_archive";s:4:"shop";s:9:"query_var";s:7:"product";s:10:"can_export";b:1;s:16:"delete_with_user";N;s:8:"template";a:0:{}s:13:"template_lock";b:0;s:8:"_builtin";b:0;s:10:"_edit_link";s:16:"post.php?post=%d";s:3:"cap";O:8:"stdClass":15:{s:9:"edit_post";s:12:"edit_product";s:9:"read_post";s:12:"read_product";s:11:"delete_post";s:14:"delete_product";s:10:"edit_posts";s:13:"edit_products";s:17:"edit_others_posts";s:20:"edit_others_products";s:12:"delete_posts";s:15:"delete_products";s:13:"publish_posts";s:16:"publish_products";s:18:"read_private_posts";s:21:"read_private_products";s:4:"read";s:4:"read";s:20:"delete_private_posts";s:23:"delete_private_products";s:22:"delete_published_posts";s:25:"delete_published_products";s:19:"delete_others_posts";s:22:"delete_others_products";s:18:"edit_private_posts";s:21:"edit_private_products";s:20:"edit_published_posts";s:23:"edit_published_products";s:12:"create_posts";s:13:"edit_products";}s:7:"rewrite";a:5:{s:4:"slug";s:8:"/produkt";s:10:"with_front";b:0;s:5:"feeds";b:1;s:5:"pages";b:1;s:7:"ep_mask";i:1;}s:12:"show_in_rest";b:1;s:9:"rest_base";b:0;s:14:"rest_namespace";s:5:"wp/v2";s:21:"rest_controller_class";b:0;s:15:"rest_controller";N;s:31:"revisions_rest_controller_class";b:0;s:25:"revisions_rest_controller";N;s:30:"autosave_rest_controller_class";b:0;s:24:"autosave_rest_controller";N;s:23:"late_route_registration";b:0;}

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Undefined property: WP_Post_Type::$ID’ is closed to new replies.