Cache Images
Error 500 for Photobucket (2 posts)

  1. bmtm
    Posted 3 years ago #

    Hi, has anyone successfully used this to cache images from Photobucket? I'm a web designer transferring an existing blog to WordPress for a client. We need the images cached by WordPress because the design includes post thumbnails. Unfortunately, my client hosted most of her images with Photobucket and I can't get those photos to cache. The plugin worked perfectly for the photos hosted elsewhere, but I get an "Error 500" whenever I try to cache the 3,000 or so Photobucket images. I can view each image in the browser and download them individually, so I'm not sure what the problem is. If you have any ideas, please let me know. I really need some help with this.



  2. timcooperhouse
    Posted 2 years ago #

    I've been having the same problem with Photobucket. I did a lot hacking around to determine that it may not be photobucket per say. It may just be that we have so many images from one domain! I found that it will actually do some sideloading if you edit line 338 of the plugin from:
    $postid_list = $wpdb->get_results("SELECT DISTINCT ID FROM $wpdb->posts WHERE post_content LIKE ('%<img%') AND post_content LIKE ('%$domain%')");
    $postid_list = $wpdb->get_results("SELECT DISTINCT ID FROM $wpdb->posts WHERE post_content LIKE ('%<img%') AND post_content LIKE ('%$domain%') LIMIT 100");
    Perhaps without the LIMIT in the ajax query or the json encoding of the resulting array is choking on the sheer magnitude of the results.

    Good luck!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Cache Images
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.