• 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: https://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

    https://www.ads-software.com/extend/plugins/top-10/

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Ajay

    (@ajay)

    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 plugin to regenerate all plugins after running the SQL query.

    SQL query: https://www.ads-software.com/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

    (@rhythmdoctor)

    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

    (@ajay)

    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.

    You should make sure you backup your blog completely before proceeding.

    Thread Starter rhythmdoctor

    (@rhythmdoctor)

    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

    (@rhythmdoctor)

    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

    (@ajay)

    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

    (@rhythmdoctor)

    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

    (@ajay)

    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' ANDpost_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

    (@rhythmdoctor)

    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.

    https://www.onlineinvideo.com/TEMP/top10-1.png
    https://www.onlineinvideo.com/TEMP/top10-2.png
    https://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

    (@ajay)

    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.