WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Error when editing posts

[Resolved] Error when editing posts

  • when i access a post that has attachments i get the following:

    Warning: in_array() expects parameter 2 to be array, string given in /home/popaus/public_html/wp-content/plugins/wp-better-attachments/classes/class-wpba-meta-box.php on line 38

    This lines is repeated 28 times!!!

    I didn’t have that issue before i updated to the latest version…

    http://wordpress.org/extend/plugins/wp-better-attachments/

Viewing 2 replies - 1 through 2 (of 2 total)
  • I looked more into this and there seem to be an issue when one is not excluding any post types…

    The returned value for $disabled_post_types being an empty string “” then passed as an argument to in_array…

    my work around is to add these before the foreach loop…

    if ($disabled_post_types == “”)
    $disabled_post_types = array();

    Cheers

    Plugin Author dholloran

    @dholloran

    It should be all fixed in the latest version you where correct with it being a string instead of an array thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] Error when editing posts’ is closed to new replies.