Title: Undefined array key &#8220;post_type&#8221;
Last modified: July 23, 2023

---

# Undefined array key “post_type”

 *  [Ronald](https://wordpress.org/support/users/rottinger/)
 * (@rottinger)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/undefined-array-key-post_type-3/)
 * Good evening!
 * As you can see, I’m working in a development environment as I explore block themes.
   I’ve installed “Ollie” and “Twenty Twenty-Three” (both are block themes), and
   the error message appears in both.
 * After the most recent update (to Version 7.5.6), when I select to add a new post,
   I see the following error message (briefly):
 * Warning: Undefined array key “post_type” in D:\Local Sites\development\app\public\
   wp-content\plugins\link-library-admin.php on line 480
 * Then the blank template for a new post appears. There doesn’t appear to be anything
   wrong, and the post is successfully saved.
 * On my production site, there doesn’t appear to be a problem (currently using 
   the “Blocksy” theme.
 * Thank you for a wonderful plugin. Let me know if you need any additional information.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fundefined-array-key-post_type-3%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Yannick Lefebvre](https://wordpress.org/support/users/jackdewey/)
 * (@jackdewey)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/undefined-array-key-post_type-3/#post-16915830)
 * Hi there Ronald. I don’t think that the warnings are related to the latest version
   of Link Library, as the code in question has been there for a very long time 
   and the changes made in the latest version were nowhere near this code.
 * It sounds more to me like you might have recently activated the WP_DEBUG functions
   of WordPress to debug something and are now seeing these PHP warning messages
   pop-up in the admin section of your site.
 * That being said, it is a valid issue and I have corrected it in version 7.5.7.
   Please update and confirm that the messages go away. Also please consider donating
   to support this plugin’s development.
 *  Thread Starter [Ronald](https://wordpress.org/support/users/rottinger/)
 * (@rottinger)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/undefined-array-key-post_type-3/#post-16916249)
 * Yannick,
 * Thanks for the reply.
 * I did turn on debug mode when I started to see the message since it didn’t stay
   visible for long. Once I reported it, I turned off debug and still had the error
   message come up.
 * I just updated to version 7.5.7 and the error message has gone away. I’ve used
   this plugin on several sites because it works so well (and have donated because
   of that). Thank you for the quick fix!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Undefined array key “post_type”’ is closed to new replies.

 * ![](https://ps.w.org/link-library/assets/icon-256x256.jpg?rev=971117)
 * [Link Library](https://wordpress.org/plugins/link-library/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/link-library/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/link-library/)
 * [Active Topics](https://wordpress.org/support/plugin/link-library/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/link-library/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/link-library/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Ronald](https://wordpress.org/support/users/rottinger/)
 * Last activity: [2 years, 10 months ago](https://wordpress.org/support/topic/undefined-array-key-post_type-3/#post-16916249)
 * Status: not resolved