Gallery by BestWebSoft
[resolved] Error When Trying to Delete Images. (7 posts)

  1. Mad Jack
    Posted 3 years ago #


    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 :)


  2. miguel valero
    Posted 3 years ago #

    I have the same issue ... any answer?? thanks

  3. doubled
    Posted 3 years ago #

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

  4. webtab
    Posted 3 years ago #

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

  5. miguel valero
    Posted 3 years ago #

    doubled thanks for solution. It works! Thanks!

  6. daniel1009
    Posted 3 years ago #

    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.

  7. bestwebsoft
    Plugin Author

    Posted 3 years ago #


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

    Kind regards,
    Support Team

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Gallery by BestWebSoft
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.