Title: [Plugin: Top 10] Broken Images when none found &#8211; Array 404 errors
Last modified: August 20, 2016

---

# [Plugin: Top 10] Broken Images when none found – Array 404 errors

 *  [rhythmdoctor](https://wordpress.org/support/users/rhythmdoctor/)
 * (@rhythmdoctor)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-top-10-broken-images-when-none-found-array-404-errors/)
 * I have the plugin installed and started to notice a ton of 404 errors on our 
   site with site.com/*/Array/. After much troubleshooting, I see that this is being
   caused by the top ten widget when no image can be found in a post – Here’s the
   issue: [http://f.sts.io/9cb68269.jpg](http://f.sts.io/9cb68269.jpg)
 * `><img src="Array" alt="" title="" style="max-width:50px;max-height:50px;" border
   ="0" class="tptn_thumb" />`
 * Have you seen this before? I do have the settings correctly configured to pull
   from the default image when needed, and that image URL path is working but doesnt
   seem to work when the plugin is live.
 * Please advise and thank you soo much in advance
 * [http://wordpress.org/extend/plugins/top-10/](http://wordpress.org/extend/plugins/top-10/)

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

 *  Plugin Author [Ajay](https://wordpress.org/support/users/ajay/)
 * (@ajay)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-top-10-broken-images-when-none-found-array-404-errors/#post-2849430)
 * I have actually seen this before in another plugin I have. I had used a plugin
   to mass generate featured images. I noticed that the plugin just pulled the first
   image from the post and for those posts where the first image was linked from
   an external site, the featured image wasn’t generated correctly and the `_thumbnail_id`
   meta field seems to be corrupted.
 * This field is used by the `the_post_thumbnail` function returning a ”.
 * Could you try to edit the post and add/replace a featured thumbnail. Recommended
   option. You can save the post and if you prefer, remove the thumbnail after it
   is saved and then re-save.
    Unfortunately this is a manual process on all these
   posts.
 * _This is a fix I ran on my blog. I don’t recommend this for all users_
    The fix
   that I ran on my blog was to delete all post meta files with an SQL query and
   let the plugin just pull out the first image.
 * Another option is to run [Auto Post Thumbnails](http://wordpress.org/extend/plugins/auto-post-thumbnail/)
   plugin to regenerate all plugins after running the SQL query.
 * SQL query: [http://wordpress.org/support/topic/plugin-auto-post-thumbnail-wordpress-34-previously-generated-thumbnails-missing-wont-generate-new-ones?replies=73#post-2891963](http://wordpress.org/support/topic/plugin-auto-post-thumbnail-wordpress-34-previously-generated-thumbnails-missing-wont-generate-new-ones?replies=73#post-2891963)
   
   This will mass delete all thumbnails. So, please be careful.
 *  Thread Starter [rhythmdoctor](https://wordpress.org/support/users/rhythmdoctor/)
 * (@rhythmdoctor)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-top-10-broken-images-when-none-found-array-404-errors/#post-2849431)
 * Im so thankful that you responded so quickly. Yeah, we have 5000+ blog posts 
   and most have a featured thumb to pull from (none have a thumb image in meta 
   custom fields) though some do not and it would be just too much work to go back
   to fix those.
 * The probelm is actually with this plugin in that it’s supposed to insert a “default”
   image when none can be found, yet the plugin is not loading that image and instead
   is loading `img source="/Array"` So, if I have a post where we’ve never included
   an image or a featured image, this happens. It’s not finding a incorrectly generated
   one, rather it’s just not loading the default one.
 * I am not familiar enough with PHP to fix the plugin but it is definitely the 
   cause of the issue.
 * Does that make sense?
 *  Plugin Author [Ajay](https://wordpress.org/support/users/ajay/)
 * (@ajay)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-top-10-broken-images-when-none-found-array-404-errors/#post-2849452)
 * Could I see a link of your site?
 * Also, would you be willing to test a fix that I have in mind. Please [email me](http://ajaydsouza.com/contact/).
 * You should make sure you backup your blog completely before proceeding.
 *  Thread Starter [rhythmdoctor](https://wordpress.org/support/users/rhythmdoctor/)
 * (@rhythmdoctor)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-top-10-broken-images-when-none-found-array-404-errors/#post-2849487)
 * Unfortunately, It’s hard to catch it in action. Is there a way to call it manually
   so that I can create a separate page with more than the number I typically show
   in the sidebar widget so that I can show you an example?
 *  Thread Starter [rhythmdoctor](https://wordpress.org/support/users/rhythmdoctor/)
 * (@rhythmdoctor)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-top-10-broken-images-when-none-found-array-404-errors/#post-2849488)
 * I found out how to include manually but need to know how to make the following:
 *     ```
       <?php if(function_exists('echo_tptn_post_count')) echo_tptn_post_count(Guessing-Something-Here); ?>
        <?php if(function_exists('tptn_show_pop_posts')) tptn_show_pop_posts(Guessing-Something-Here); ?>
        <?php if(function_exists('tptn_show_daily_pop_posts')) tptn_show_daily_pop_posts(Guessing-Something-Here); ?>.
       ```
   
 * work to show say, 100 posts.
 * If you can let me know how to do that, Ill finish the page and send you a link.
   Thanks.
 *  Plugin Author [Ajay](https://wordpress.org/support/users/ajay/)
 * (@ajay)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-top-10-broken-images-when-none-found-array-404-errors/#post-2849498)
 * There is no easy way to get the 100 posts currently without doing some major 
   code changes.
 * What I suggest is since you already know that post above (screenshot), can you
   post a link to that page?
 *  Thread Starter [rhythmdoctor](https://wordpress.org/support/users/rhythmdoctor/)
 * (@rhythmdoctor)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-top-10-broken-images-when-none-found-array-404-errors/#post-2849499)
 * Unfortunately, it’s difficult to locate as most do have thumbnails. Here’s I’ve
   updated it to show a lot temporarily. You can see it at reelseo.com/top10 – do
   a search on the page for “How To Add In-File Metadata” and you’ll see that one
   has the /array issue. Can you let me know when you have looked so I can remove
   the page?
 *  Plugin Author [Ajay](https://wordpress.org/support/users/ajay/)
 * (@ajay)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-top-10-broken-images-when-none-found-array-404-errors/#post-2849512)
 * I have seen.
 * reelseo.com/add-infile-metadata-video-files/
 * is the post, isn’t it?
 * What do you see when you edit the post in the Featured Image screen?
 * If you enter your database in phpMyAdmin, what do you see when you run `SELECT*
   FROM wp_postmeta WHERE meta_key = '_thumbnail_id' AND`post_id`= 15;`
 * Replace 15 with the post id of the above post.
 * The above look up will just pull data from the database, not modify anything,
   but as usual, backup your db before doing anything
 *  Thread Starter [rhythmdoctor](https://wordpress.org/support/users/rhythmdoctor/)
 * (@rhythmdoctor)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-top-10-broken-images-when-none-found-array-404-errors/#post-2849515)
 * OK, so. Yeah, that article is one example. See the following screenshots as they
   may help show what I’m seeing. The first one is my top10 settings just to be 
   sure those are correct.
 *     ```
       http://www.onlineinvideo.com/TEMP/top10-1.png
       http://www.onlineinvideo.com/TEMP/top10-2.png
       http://www.onlineinvideo.com/TEMP/top10-3.gif
       ```
   
 * So, If I look at the post in the editor and look at the featured image screen,
   there’s no featured image… But again, if there’s no image, it should still be
   pointing to the default image, correct? With 5000 posts, it’s going to be difficult
   and cumbersome to go through all our posts and make sure they all have images.
   I thought that if they didnt, that the default image would show…
 * Thanks again for the help
 *  Plugin Author [Ajay](https://wordpress.org/support/users/ajay/)
 * (@ajay)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-top-10-broken-images-when-none-found-array-404-errors/#post-2849525)
 * I am working on a version to check whenever there is an incorrect lookup.
    However,
   with the inability to test this, am not sure if it will work perfectly.

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

The topic ‘[Plugin: Top 10] Broken Images when none found – Array 404 errors’ is
closed to new replies.

 * ![](https://ps.w.org/top-10/assets/icon-256x256.png?rev=2986432)
 * [WebberZone Top 10 — Popular Posts](https://wordpress.org/plugins/top-10/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/top-10/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/top-10/)
 * [Active Topics](https://wordpress.org/support/plugin/top-10/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/top-10/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/top-10/reviews/)

 * 10 replies
 * 2 participants
 * Last reply from: [Ajay](https://wordpress.org/support/users/ajay/)
 * Last activity: [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-top-10-broken-images-when-none-found-array-404-errors/#post-2849525)
 * Status: not resolved