WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Error When Trying to Delete Images.

[Resolved] Error When Trying to Delete Images.

  • Hello,

    I’m getting an error when trying to delete images. I created a gallery, uploaded the images and published the gallery. I then deleted an image and clicked on the ‘update’ button and I got the following error message

    Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /usr/home/xphotog/domains/xristiansimon.com/public_html/site/wp-includes/post.php on line 2996
    
    Warning: Cannot modify header information - headers already sent by (output started at /usr/home/xphotog/domains/xristiansimon.com/public_html/site/wp-includes/post.php:2996) in /usr/home/xphotog/domains/xristiansimon.com/public_html/site/wp-includes/pluggable.php on line 876

    Please could you tell me how to edit the code to get rid of the error message and allow me to delete images.

    Thanks for the great plugin BTW 🙂

    http://wordpress.org/extend/plugins/gallery-plugin/

Viewing 6 replies - 1 through 6 (of 6 total)
  • miguel valero
    Member

    @miguel-valero-1

    I have the same issue … any answer?? thanks

    Hi,
    Changing the line 2996 of post.php to $postarr = array_merge((array)$post, $postarr); worked for me

    worked for me also, thank you very much!
    But do this have a effect on other pages?

    miguel valero
    Member

    @miguel-valero-1

    doubled thanks for solution. It works! Thanks!

    daniel1009
    Member

    @daniel1009

    I just had the same issue and used doubleds’ work around and it worked also but I was wondering if there is any fix going to be made to the plugin? Everytime we update wordpress we will have the same issue again and I’m not sure this won’t cause other issues.

    Plugin Author bestwebsoft
    Participant

    @bestwebsoft

    Hello,

    We fixed this problem. Please update the plugin to the latest version.

    Kind regards,
    Support Team

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Resolved] Error When Trying to Delete Images.’ is closed to new replies.