Title: Error on custom post type
Last modified: August 23, 2021

---

# Error on custom post type

 *  Resolved [acegoulet](https://wordpress.org/support/users/acegoulet/)
 * (@acegoulet)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/error-on-custom-post-type/)
 * When apple news is activated for a custom post type, we are getting the following
   errors when trying to create or edit posts in that custom post type, rendering
   the block editor unusable:
 *     ```
       TypeError: Cannot read property 'apple_news_api_created_at' of undefined
           at render (https://roadtrippers.com/wp-content/plugins/publish-to-apple-news/build/pluginSidebar.js?ver=399a6e300bdaabf151f1faecd2cfb13e:2:34671)
           at we (https://roadtrippers.com/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:84:293)
           at zj (https://roadtrippers.com/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:226:496)
           at Th (https://roadtrippers.com/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:152:223)
           at tj (https://roadtrippers.com/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:152:152)
           at Te (https://roadtrippers.com/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:146:151)
           at https://roadtrippers.com/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:61:68
           at unstable_runWithPriority (https://roadtrippers.com/wp-includes/js/dist/vendor/react.min.js?ver=16.13.1:25:260)
           at Da (https://roadtrippers.com/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:60:280)
           at Pg (https://roadtrippers.com/wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:61:14)
       ```
   
 * I also deactivated all other plugins and switched to the default 2021 WP theme
   and the error is still present.
    -  This topic was modified 4 years, 9 months ago by [acegoulet](https://wordpress.org/support/users/acegoulet/).

Viewing 1 replies (of 1 total)

 *  Thread Starter [acegoulet](https://wordpress.org/support/users/acegoulet/)
 * (@acegoulet)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/error-on-custom-post-type/#post-14796866)
 * Sorry, I’m now seeing this is a duplicate of this issue, which has the fix in
   the thread: [https://wordpress.org/support/topic/issue-with-last-update-custom-post-types/](https://wordpress.org/support/topic/issue-with-last-update-custom-post-types/)

Viewing 1 replies (of 1 total)

The topic ‘Error on custom post type’ is closed to new replies.

 * ![](https://ps.w.org/publish-to-apple-news/assets/icon-256x256.png?rev=3017580)
 * [Publish To Apple News](https://wordpress.org/plugins/publish-to-apple-news/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/publish-to-apple-news/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/publish-to-apple-news/)
 * [Active Topics](https://wordpress.org/support/plugin/publish-to-apple-news/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/publish-to-apple-news/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/publish-to-apple-news/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [acegoulet](https://wordpress.org/support/users/acegoulet/)
 * Last activity: [4 years, 9 months ago](https://wordpress.org/support/topic/error-on-custom-post-type/#post-14796866)
 * Status: resolved