WPIntell

Source evidence

Create New: “Invalid post type”

Log Deprecated Notices · support · 2018-05-15T17:48:00+00:00

mixedsentiment
highseverity
0.95relevance
7replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

5 / 31 rows with source links

16.1% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

26 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
Jacob Medley resolved
Hello, Testing this out on my local dev. When creating a new “Deprecated Call” it errors. query String: ?post_type=deprecated_log error: Invalid Post Type Video: https://www.screencast.com/t/Vr2lgVUmo I have the same problem, nobody knows a solution? Thank you. Might help if you add some details like version of WP, version of the plugin, a more complete URL, the actual error message. I’m guessing you are viewing wp-admin/edit.php?post_type=deprecated_log but could be wrong… I do see an error “Undefined property: stdClass::$delete_posts in /var/www/wpdev/public/wp/wp-admin/includes/class-wp-posts-list-table.php” on that page. If that’s the error you are seeing, it will only affect the ability to use bulk actions on the page. This site appears to require Flash to display video content. I’m not installing the security hole plagued, and soon to be unsupported, Flash application so can’t view your video. Thanks for the reply. Meanwhile I reply by adding some details: – WordPress version: 4.9.6 – Log Deprecated Notices (plugin) version: 0.4 – link of the generated error page: http://localhost:8888/theme/wp-admin/post-new.php?post_type=deprecated_log – while the actual error message is just the one written previously: “Invalid post type.” This reply was modified 8 years ago by meshuu . This reply was modified 8 years ago by meshuu . This reply was modified 8 years ago by meshuu . How are you getting to that URL? AFAIK, you should not be using post-new.php to create a log entry. They are generated automatically by calls to _doing_it_wrong(), _deprecated_function() et al. See the comments above action_load_edit_php() in the plugin source. I think you are … doing it wrong. 🙂 I tried to deliberately insert a deprecated function into one of the template files and it was automatically recognized. So I imagine that the “Add New” button serves no purpose. Hello, Video that was previously posted: https://www.screencast.com/t/Vr2lgVUmo The ability to manually add deprecated notices is disabled, hence the error message you are seeing. I just released version 0.4.1 which hides the add new button since it does make a tempting target to click. Thanks for the catch!

Comments

7 shown
meshuu 2018-05-25T08:22:00+00:00

I have the same problem, nobody knows a solution? Thank you.

Ken Brucker 2018-05-25T14:51:00+00:00

Might help if you add some details like version of WP, version of the plugin, a more complete URL, the actual error message. I’m guessing you are viewing wp-admin/edit.php?post_type=deprecated_log but could be wrong… I do see an error “Undefined property: stdClass::$delete_posts in /var/www/wpdev/public/wp/wp-admin/includes/class-wp-posts-list-table.php” on that page. If that’s the error you are seeing, it will only affect the ability to use bulk actions on the page. This site appears to require Flash to display video content. I’m not installing the security hole plagued, and soon to be unsupported, Flash application so can’t view your video.

meshuu 2018-05-25T15:55:00+00:00

Thanks for the reply. Meanwhile I reply by adding some details: – WordPress version: 4.9.6 – Log Deprecated Notices (plugin) version: 0.4 – link of the generated error page: http://localhost:8888/theme/wp-admin/post-new.php?post_type=deprecated_log – while the actual error message is just the one written previously: “Invalid post type.” This reply was modified 8 years ago by meshuu . This reply was modified 8 years ago by meshuu . This reply was modified 8 years ago by meshuu .

Ken Brucker 2018-05-25T16:35:00+00:00

How are you getting to that URL? AFAIK, you should not be using post-new.php to create a log entry. They are generated automatically by calls to _doing_it_wrong(), _deprecated_function() et al. See the comments above action_load_edit_php() in the plugin source. I think you are … doing it wrong. 🙂

meshuu 2018-05-28T15:30:00+00:00

I tried to deliberately insert a deprecated function into one of the template files and it was automatically recognized. So I imagine that the “Add New” button serves no purpose.

Jacob Medley 2018-05-29T17:22:00+00:00

Hello, Video that was previously posted: https://www.screencast.com/t/Vr2lgVUmo

Aaron Jorbin 2018-07-21T13:56:00+00:00

The ability to manually add deprecated notices is disabled, hence the error message you are seeing. I just released version 0.4.1 which hides the add new button since it does make a tempting target to click. Thanks for the catch!