Viewing 7 replies - 1 through 7 (of 7 total)
  • 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: https://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 6 years, 6 months ago by meshuu.
    • This reply was modified 6 years, 6 months ago by meshuu.
    • This reply was modified 6 years, 6 months 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.

    Thread Starter Jacob Medley

    (@jacobmedley)

    Hello,

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

    Plugin Author Aaron Jorbin

    (@jorbin)

    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!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Create New: “Invalid post type”’ is closed to new replies.