About this topic

  • Posted by zac 1 year ago. There are 2 posts. The latest reply is from byron.
  1. Hi there.

    I suspect this has more to do with how I am a bit sloppy about loading scripts into my template, but maybe you can confirm. From the Photo Manager I can delete an image, it sends the POST request, but the "saving..." alert never goes away and the image remains there until page refresh. I looked at the response and I see this returned..

    <br />
    <b>Warning</b>:  array_map() [<a href='function.array-map'>function.array-map</a>]: Argument #2 should be an array in <b>/home/adminwt/thewhaletrail.org/wp-includes/taxonomy.php</b> on line <b>2052</b><br />
    {"image_id":17,"status":1,"action":"deleted","deleted":"deleted"}
  2. Hi zac,

    It looks like the PhotoSmash piece is finishing alright, but that warning is getting emitted, which messes up the json reply.

    Try adding a tag to one of your images and see if that fixes it. I checked the code, but couldn't find where I'm calling the function wp_update_term_count_now, so it might be getting updated from one of the other delete functions. The problem is that that function is trying to update the term count and the list of terms its getting isn't an array. So maybe adding a tag will fix it...not sure how else to go about it at this point.

    BB

RSS feed for this topic