Deleted image getting an Alt Tag Error

  • The WordPress RankMath SEO Analysis says I have an image with no Alt Attributes. I have checked my media library and the image is not listed there. It did, however, exist at the URL specified by Rank Math. I have no idea why it wasn’t displayed in my Media library.

    To fix this, I accessed the file via my Control Panel File Manager. I located the image file and deleted it, as I was unable to delete it from inside WordPress.

    Unfortunately, the Alt image error continues to occur even though the image has been deleted and the URL for the image that is listed by RankMath now goes to a 404 page.

    I have not used a plugin to upload or remove images. I have cleared my computer and wordpress cache (several times) The error also appears on other browsers and on the RankMath site Analyser page.

    I am at a loss as to how to correct an error on an image that doesn’t exist.

    Can you please help?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello,

    Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.

    This is very odd, could you please ensure that you run the sitewide SEO analysis two or three more times after clearing your cache?

    Looking forward to helping you. Thank you.

    ​​​​​​​

    Hi Michael… it’s just gotten stranger.
    I had run the SEO analysis (inside WordPress) and cleared the cache many times and shut down and restarted my computer and cleared the cache history of my browser and changed browsers.
    I have also deactivated and reactivated the plug in several times in conjunction with some of these other clearings / shut downs.

    I have left it overnight and now have an error message when I select SEO Analysis – see below.

    I have deactivated, uninstalled and reactivated the plugin, cleared the cache and restarted my computer, signed in and out of WordPress, as well as resetting my Rankmath settings… and this error message continues to appear in place of the analysis i.e. as soon as I click on the menu item this error pops up.

    The error message about the Alt Image continues to occur when I use the analyzer option on the Rank Math website (as opposed to doing it inside of WordPress)

    Fatal error: Uncaught Error: Cannot use object of type RankMath\SEO_Analysis\Result as array in /home1/jodouglas/public_html/wp-content/plugins/seo-by-rank-math/includes/modules/seo-analysis/class-result.php:127 Stack trace: #0 /home1/jodouglas/public_html/wp-content/plugins/seo-by-rank-math/includes/modules/seo-analysis/class-seo-analyzer.php(205): RankMath\SEO_Analysis\Result->get_status() #1 /home1/jodouglas/public_html/wp-content/plugins/seo-by-rank-math/includes/modules/seo-analysis/class-seo-analyzer.php(179): RankMath\SEO_Analysis\SEO_Analyzer->can_count_result(Object(RankMath\SEO_Analysis\Result)) #2 /home1/jodouglas/public_html/wp-content/plugins/seo-by-rank-math/includes/modules/seo-analysis/class-seo-analyzer.php(110): RankMath\SEO_Analysis\SEO_Analyzer->get_graph_metrices() #3 /home1/jodouglas/public_html/wp-content/plugins/seo-by-rank-math/includes/modules/seo-analysis/class-seo-analyzer.php(102): RankMath\SEO_Analysis\SEO_Analyzer->display_graphs() #4 /home1/jodouglas/public_html/wp-content/plugins/seo-by-ra in /home1/jodouglas/public_html/wp-content/plugins/seo-by-rank-math/includes/modules/seo-analysis/class-result.php on line 127

    Hi Michael I have cleared the error message for the SEO Analysis by going to the Status and Tools / Tools / Clear SEO Analysis

    The Alt Image error is still there. The image is definitely deleted from all files and a 404 page error is showing on the image link reported by Rank Math

    If it makes any difference the image was a logo

    Regards, Jo

    Hi there… I have gotten to the bottom of this issue.

    My site logo was being cropped when loading up under appearance/customise, and the alt tag was disappearing from the saved cropped image.

    The cropped image was not displayed in my Media files (I could see the logo image but not the cropped version) and therefore, could not find the image without the alt tag in my Library.

    When I clicked on the logo image under customise… it showed the original logo image with its alt settings and did not show that it was actually using a WordPress created image (i.e. cropped) that WordPress had saved without the Alt tag.

    Thanks for your help 🙂

    Hi Jo,

    Thanks for the follow up.

    I am glad that this is now resolved 🙂 These are some great findings!

    Feel free to contact us for any other questions, comments or suggestions.

    Thank you.

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

The ticket ‘Deleted image getting an Alt Tag Error’ is closed to new replies.