Title: Thumbnail broken link issue
Last modified: August 21, 2016

---

# Thumbnail broken link issue

 *  Resolved [kk654321](https://wordpress.org/support/users/kk654321/)
 * (@kk654321)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/thumbnail-broken-link-issue/)
 * I uploaded photo successfully but I can’t preview them in wp-admin since all 
   thumbnails were dead because of broken link.
 * Broken link: [http://www.domain.com/1/wp-content/](http://www.domain.com/1/wp-content/)**
   gallerythumbs**/thumbs_candy-shop-necklace.png
 * Correct link: [http://www.domain.com/1/wp-content/](http://www.domain.com/1/wp-content/)**
   gallery/1/thumbs**/thumbs_candy-shop-necklace.png
 * I checked Gallery : 1 setting, the path was “wp-content/gallery/1” already, how
   to fix it?
 * Thanks!
 * [http://wordpress.org/plugins/nextgen-public-uploader/](http://wordpress.org/plugins/nextgen-public-uploader/)

Viewing 13 replies - 1 through 13 (of 13 total)

 *  Plugin Author [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * (@tw2113)
 * The BenchPresser
 * [12 years, 3 months ago](https://wordpress.org/support/topic/thumbnail-broken-link-issue/#post-4530117)
 * Could you provide a screenshot of where you’re seeing the Gallery 1 setting, 
   curious if it’s user editable or something directly from our plugin’s code.
 *  Thread Starter [kk654321](https://wordpress.org/support/users/kk654321/)
 * (@kk654321)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/thumbnail-broken-link-issue/#post-4530127)
 * Hi, here you are.
 * [http://oi40.tinypic.com/xksuhf.jpg](http://oi40.tinypic.com/xksuhf.jpg)
    [http://oi43.tinypic.com/1736us.jpg](http://oi43.tinypic.com/1736us.jpg)
   [http://oi40.tinypic.com/28cq3pd.jpg](http://oi40.tinypic.com/28cq3pd.jpg)
 * _[Moderator Note: Please ensure that you are embedding links correctly in your
   posts.]_
 *  Plugin Author [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * (@tw2113)
 * The BenchPresser
 * [12 years, 3 months ago](https://wordpress.org/support/topic/thumbnail-broken-link-issue/#post-4530135)
 * Trying to recreate on my localhost but haven’t succeeded yet. Uploads occur and
   thumbnails don’t get broken. Curious if the /1/ in your url is the gallery name
   at all. I’m not seeing that in my results, just /gallery/MY_GALLERY_NAME/
 *  Thread Starter [kk654321](https://wordpress.org/support/users/kk654321/)
 * (@kk654321)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/thumbnail-broken-link-issue/#post-4530158)
 * Hi, yes, /1/ is sub-folder under /gallery/ folder, since I may have /2/,/3/ for
   other purposes, I added short code “[ngg_uploader id=1]” in page already but 
   why thumb link can’t get it? thx
 *  Plugin Author [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * (@tw2113)
 * The BenchPresser
 * [12 years, 3 months ago](https://wordpress.org/support/topic/thumbnail-broken-link-issue/#post-4530178)
 * How are you setting it up to have the subdirectories? My thoughts are that if
   you’re somehow moving the images to this numbered subdirectory, part of the stored
   image paths are getting updated, but the thumbnail fields aren’t.
 *  Thread Starter [kk654321](https://wordpress.org/support/users/kk654321/)
 * (@kk654321)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/thumbnail-broken-link-issue/#post-4530184)
 * Hi, I created sub-folder in Manage Galleries.
    Here is screen capture: [http://oi44.tinypic.com/2088ncz.jpg](http://oi44.tinypic.com/2088ncz.jpg)
 * thx
 *  Plugin Author [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * (@tw2113)
 * The BenchPresser
 * [12 years, 3 months ago](https://wordpress.org/support/topic/thumbnail-broken-link-issue/#post-4530185)
 * Nope, I was wrong about the subdirectory part. That’s the same structure I get.
 * Is it just the thumbnails from our plugin that are being troublesome? or is it
   from any upload method?
 * The 2nd screenshot you pasted me earlier looks like the url is out of order/ 
   It’s /1/wp-content/galleryfilename.jpg. Do you have any NGG-based plugins that
   would possibly alter gallery urls by way of filter or so?
 * That’s a really strange case that I have yet to reproduce locally.
 *  Thread Starter [kk654321](https://wordpress.org/support/users/kk654321/)
 * (@kk654321)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/thumbnail-broken-link-issue/#post-4530186)
 * Hi,
    Actually full picture is that I wanna allow member to upload photos and 
   display them as gallery in front-end. I installed two plugins: NextGEN Public
   Uploader & NextGEN Gallery in WordPress.
 * Gallery menu: [http://oi44.tinypic.com/a48txx.jpg](http://oi44.tinypic.com/a48txx.jpg)
 * Setup steps:
    1. Create /1/ in Manage Galleries [http://oi44.tinypic.com/2088ncz.jpg](http://oi44.tinypic.com/2088ncz.jpg)
   2. Config Plugin Settings, set /1/ as default gallery [http://oi40.tinypic.com/28cq3pd.jpg](http://oi40.tinypic.com/28cq3pd.jpg)
   3. Add NextGEN Public Uploader widget, [ngg_uploader id=1], in all PAGES 4. Login
   as member and upload photos for testing 5. Check photos uploaded successfully
   in Manage Galleries (records are there), but all thumbs were broken links, e.
   g. [http://www.domain.com/1/wp-content/gallerythumbs/thumbs_candy-shop-necklace.png](http://www.domain.com/1/wp-content/gallerythumbs/thumbs_candy-shop-necklace.png)
   6. Connect FTP server, check all photos are there but under sub-folder /1/ 7.
   The correct photo link should be: [http://www.domain.com/1/wp-content/gallery/](http://www.domain.com/1/wp-content/gallery/)**
   1/thumbs/**thumbs_candy-shop-necklace.png
 * I think it’s normal steps but I’m not sure why thumbs link were incorrect.
 * thanks!
 *  Plugin Author [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * (@tw2113)
 * The BenchPresser
 * [12 years, 3 months ago](https://wordpress.org/support/topic/thumbnail-broken-link-issue/#post-4530207)
 * From the looks of it, the only issue is the missing / in the thumb url. I’m not
   sure whether that part is being generated at all by us or by NextGen Gallery 
   itself.
 * The closest we have is the following in a couple places:
 *     ```
       @unlink( WINABSPATH . $gallerypath . '/thumbs/thumbs_' . $filename );
       228
       @unlink( WINABSPATH . $gallerypath . '/' . $filename );
       ```
   
 *  Thread Starter [kk654321](https://wordpress.org/support/users/kk654321/)
 * (@kk654321)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/thumbnail-broken-link-issue/#post-4530223)
 * Hi, thanks for your reply but I’m not technical guy, may I know where to find
   above codes? I need to edit it to “@unlink( WINABSPATH . $gallerypath . ‘/’ .
   $filename );”? thanks
 *  Plugin Author [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * (@tw2113)
 * The BenchPresser
 * [12 years, 3 months ago](https://wordpress.org/support/topic/thumbnail-broken-link-issue/#post-4530226)
 * No, as far as I can tell you shouldn’t need to be editing either of those because
   they’re already getting a / in the right places
 *  Thread Starter [kk654321](https://wordpress.org/support/users/kk654321/)
 * (@kk654321)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/thumbnail-broken-link-issue/#post-4530255)
 * Hi, tried to repeat above 7 steps in this few days but results were the same,
   the thumbs are still broken link, I think it was because the Uploader cannot 
   read gallery config? I just guessed when uploader uploads photo, it just set 
   the default path up to gallery.
 *  Plugin Author [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * (@tw2113)
 * The BenchPresser
 * [12 years, 3 months ago](https://wordpress.org/support/topic/thumbnail-broken-link-issue/#post-4530258)
 * I really don’t know at this point, to be honest, especially since I can’t manage
   to replicate either.

Viewing 13 replies - 1 through 13 (of 13 total)

The topic ‘Thumbnail broken link issue’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/nextgen-public-uploader_544d49.svg)
 * [NextGEN Public Uploader](https://wordpress.org/plugins/nextgen-public-uploader/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/nextgen-public-uploader/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/nextgen-public-uploader/)
 * [Active Topics](https://wordpress.org/support/plugin/nextgen-public-uploader/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/nextgen-public-uploader/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/nextgen-public-uploader/reviews/)

 * 13 replies
 * 2 participants
 * Last reply from: [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * Last activity: [12 years, 3 months ago](https://wordpress.org/support/topic/thumbnail-broken-link-issue/#post-4530258)
 * Status: resolved