WordPress.org

Ready to get started?Download WordPress

Forums

Attachments
[resolved] Variable Type Mismach : error during delete of media item (3 posts)

  1. Clearsite
    Member
    Posted 1 year ago #

    When deleting attachments through the media panel class.attachments.php line 1544 generates an error 'cannot use object as array'

    i fixed it with this, but don't know if there are more locations this should be done;

    if (!is_array($attachment)) {
    $attachment = (array)$attachment;
    }

    full patch:
    http://bit.ly/17iL2qs

    http://wordpress.org/plugins/attachments/

  2. Jonathan Christopher
    Member
    Plugin Author

    Posted 12 months ago #

    Thank you so much for the report, a fix will be included in the next release.

  3. Jonathan Christopher
    Member
    Plugin Author

    Posted 11 months ago #

    Version 3.5.2 has a fix for this issue, thank you again!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.