WP Better Attachments
[resolved] Error when editing posts (3 posts)

  1. MuViMoTV
    Posted 3 years ago #

    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...


  2. MuViMoTV
    Posted 3 years ago #

    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();


  3. dholloran
    Plugin Author

    Posted 3 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Better Attachments
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.