WordPress.org

Forums

Edit Flow
[resolved] Bug: Shows 2 "Drafts" when there are none; leads to error messages (4 posts)

  1. msloane
    Member
    Posted 3 years ago #

    Hi.

    (Thought this might be a 0.6.4 issue...just deactivated/deleted and downloaded/installed 0.6.5, still a problem...)

    Admin Dashboard "Posts at a Glance" section shows 2 drafts. (Odd, since I don't have any drafts.) Clicking on the link takes me to /wp-admin/edit.php?post_status=draft, where I see the following:

    Warning: Invalid argument supplied for foreach() in /home2/applepie/public_html/wp-content/plugins/edit-flow/php/custom_status.php on line 424

    ...at the top of the page, followed by:

    Warning: Invalid argument supplied for foreach() in /home2/applepie/public_html/wp-content/plugins/edit-flow/php/custom_status.php on line 424
    
    Warning: Invalid argument supplied for foreach() in /home2/applepie/public_html/wp-admin/includes/class-wp-list-table.php on line 661
    
    Warning: Invalid argument supplied for foreach() in /home2/applepie/public_html/wp-admin/includes/class-wp-list-table.php on line 661
    
    Warning: array_keys() [function.array-keys]: The first argument should be an array in /home2/applepie/public_html/wp-admin/includes/class-wp-list-table.php on line 631
    
    Warning: array_intersect() [function.array-intersect]: Argument #1 is not an array in /home2/applepie/public_html/wp-admin/includes/class-wp-list-table.php on line 631

    ...below.

    Any thoughts?

    Thanks...I think this will be a cool addition to my workflow once I get it working...

    http://wordpress.org/extend/plugins/edit-flow/

  2. Scott Bressler
    Member
    Plugin Author

    Posted 3 years ago #

    The warning you saw above is harmless, so I wouldn't worry about it.

    However, I'm not sure how you managed to get our dashboard widget to show posts in a certain category when you don't actually have any, but I hopefully alleviated the error you mentioned above here. This will be available with the next version of Edit Flow.

    Thanks,
    Scott

  3. msloane
    Member
    Posted 3 years ago #

    Hi, Scott...

    Harmless though it may be, I don't think the code snippets I put in the post above really communicated the way this error busts up the page formatting in a really alarming way...or at least alarming enough to cause me to remove the plugin. (Wish I could've attached a screen capture.)

    As for the code you shared above, I have absolutely no idea whatsoever what you want me to do with it. You have assumed a skill level and comfort with PHP that I don't possess.

    If the code you shared contains a fix that'll be available in the next version of the plugin, probably the best course for me to take is to wait until it's uploaded, and revisit it then.

  4. jrhall
    Member
    Posted 3 years ago #

    However, I'm not sure how you managed to get our dashboard widget to show posts in a certain category when you don't actually have any

    I just had a similar issue with the "Drafts" category. It looks like the plugin isn't filtering a distinction between Pages and Posts, which WordPress stores in the same table (wp_posts).

    If a category shows a count and you can't find a match in either the Pages or Posts listing, install the Adminer plugin, select the wp_posts table, and set the search filter to (e.g. for "draft" category):
    post_status Like %% draft

    I removed the old page that was "draft" status since I didn't need it anymore anyway, and the counter issue went away.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Edit Flow
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic