Broken Link Checker for WordPress

Sometimes, links get broken. A page is deleted, a subdirectory forgotten, a site moved to a different domain. Most likely many of your blog posts contain links. It is almost inevitable that over time some of them will lead to a “404 Not Found” error page. Obviously you don’t want your readers to be annoyed by clicking a link that leads nowhere. You can check the links yourself but that might be quite a task if you have a lot of posts. You could use your webserver’s stats but that only works for local links.

So I’ve made a plugin for WordPress that will check your posts (and pages), looking for broken links, and let you know if any are found.

Download it now! (40 KB)

Note : This page, and the feature list below are slightly out of date as a major update has been released recently (see details). I’ll get around to updating this page eventually.

Features

  • Checks your posts (and pages) in the background (whenever the WP admin panel is open ).
  • Detects links that don’t work and missing images. Checks both internal and outbound links.
  • Notifies you on the Dashboard if any problems are found.
  • Link checking intervals can be configured.
  • New/modified posts are checked ASAP.

The broken links show up in the Manage -> Broken Links tab. If any invalid URLs are found a notification will also show up in the sidebar on the Dashboard.

The Broken Links tab displays a list of invalid URLs found along with the relevant posts and the anchor text of the links. “View” and “Edit Post” do exactly what they say and “Discard” will remove the message about a broken link, but not the link itself (so it will show up again later unless you fix it; this plugin doesn’t modify your links).

By default all old posts/links are re-checked every 72 hours, or you can set a different time period.

Notes (Semi-Technical)
I realize there’s a lot of features that could be added to improve this plugin considerably. However, this release is intended to “test the waters” and see if there’s demand for a plugin like this, so I only implemented the most basic functions. The plugin has been upgraded to be slightly beyond “basic” ;)

I thought about using WP’s pseudo-cron to run the link checker by schedule and decided against it. AFAIK the cronjobs execute when a page is requested; since this plugin does some lengthy processing it may increase page load times unacceptably when used in this manner. That’s why I set it to run the checks asynchronously (AJAX) and invisibly in the admin panel.

Installation
Just like any other WordPress plugin -

  1. Download (see below).
  2. Unzip.
  3. Upload the broken-link-checker folder to you wp-content/plugins directory.
  4. Activate the plugin in the Plugins tab.

Upgrading

  1. Deactivate the plugin (important!).
  2. Do steps 1.-3. from “Installation”.
  3. Upload the broken-link-checker folder to you wp-content/plugins directory.
  4. Re-activate the plugin in the Plugins tab.

DownloadCC-GNU GPL
Version 0.5.3 : broken-link-checker.zip (40 Kb)

Requirements

  • WordPress 2.7 or later
  • MySQL 4.1 or later

Starting with version 0.5 this plugin is only compatible with WordPress 2.7 and up. Older versions (e.g. ver. 0.4.14) should work with WP 2.1 – 2.6.x.

Share :
  • Reddit
  • del.icio.us
  • Digg
  • StumbleUpon
  • DZone
  • Ping.fm
  • Sphinn
  • Twitter
Related posts :

1,080 Responses to “Broken Link Checker for WordPress”

Pages: « 1 [2] 3 4 5 6 7 8 9 10 1136 » Show All

  1. 31
    AudioPill says:

    Does it works on WordPress 2.3.2?

    thanks…

  2. 32
    White Shadow says:

    Yes, it does. In fact, I just upgraded to 2.3.3 and it seems to be working okay.

  3. [...] visitors to older posts have been running into the odd dead link, I searched for and easily found another great WordPress plugin that folds neatly into the blog’s administration and compiles a list of broken links, both [...]

  4. [...] Broken Link Checker 0.2.5 (Janis Elsts) :ce plugin vous permet de vérifier que vous ne proposez pas de lien mort sur votre blog. Un plugin de ce type est indispensable à quiconque est soucieux de proposer un contenu à jour. Un de ces services que l’on devrait absolument trouver en standard sur WP. [...]

  5. [...] like to click on a broken link? There are a few ways to remedy this solution, but I found this broken link checker for WordPress that does the job extremely well and is completely free. You do not want your readers to be annoyed [...]

  6. [...] Link Checker Plugin Version 0.3 I’ve gotten some interesting feature suggestions for my link checker WordPress plugin since I released the last version several months ago. During the last week I finally got around to [...]

  7. [...] Wordpress Plugin Broken Links, welches ich vor ein paar Tagen aufgenommen habe, ist ein unverzichtbarer Link Checker. Dieses [...]

  8. [...] So we had to go through all of our links to fix them one by one. (We are using a broken link checker plugin which identifies the posts where the broken links are hiding in, however, we still have to [...]

  9. 39
    Dvvarf says:

    I want complain on XHTML validation when enabling this plugin with broken link CSS turned on. It says that broken-link bla-bla is not valid.
    Here is the solution (may be author would add this to further versions):
    1. Open broken-link-checker.php.
    2. Find there string:
    echo ”,$this->options['broken_link_css'],”;
    3. Replace it with:
    echo ”,$this->options['broken_link_css'],”;
    4. Save and upload changed file on server.
    Thats all! Thank you for your attention. =)

  10. 40
    FruityOaty says:

    I TOTALLY LOVE this plugin… which is one of the most useful WordPress plugins I’ve come acrossed. I wish it would check broken links in comments… That would make it even more better. :)

  11. [...] Broken Link Checker – Checks your posts (and pages), looking for broken links and lets you know if any are found.  Email this to a friend [...]

  12. [...] Broken Link Checker: Checks your posts for broken links and missing images and notifies you on the dashboard if any are found. By Janis Elsts. [...]

  13. 43
    averagecoder says:

    FYI: I changed my blog permalink structure and I use .htaccess file to redirect 301 all pages with the old permalink structure targetting to the new permalink structure, then I install BrokenLinkChecker.

    BLC installed successfully BUT, this URL:

    http://www.averagecoder.net/programming-tips/wordpress/how-to-easily-display-a-cute-google-map-inside-your-wordpress-post/

    Which is working when you access it via web browser is identified as broken link by BLC.

    I think it’s a good idea if BLC can works in conjunction with .htaccess rewrite rules.
    _______________

    Daniel

  14. 44
    White Shadow says:

    I’m not entirely sure why it showed up as broken in your blog. Nevertheless, I’ve made some tweaks to the plugin and it should now handle that URL correctly. At least it does on my test blog ;)

  15. 45
    averagecoder says:

    @White Shadow: You’re right, it seems to be working as expected. I am not sure why it reported false broken links before. I will keep monitoring the behavior .
    _______________

    Daniel

  16. 46
    FruityOaty says:

    Strange, it was working fine with older plugin version… then I updated to 0.3.2 today. Then it falsely reported 132 broken links. I checked all of of them and none of them were broken.

    Even weirder, after activating the plugin, my WordPress Dashboard started loading very slowly, so I deactivated the plugin then “tried” to activate again and now I can’t activate at all… because I now keep getting this message:

    “Plugin could not be activated because it triggered a fatal error.”

    But now my WordPress Dashboard (2.3.3) is loading fine and fast. Hmm.

  17. 47
    White Shadow says:

    Strange. I suppose it could cause a slowdown in very specific circumstances (AJAX/broser/server configuration) while the links are checked.

    Though I don’t see how it could “trigger a fatal error”. Hmm.

  18. 48
    Graeme says:

    I updated to 0.3.2 and suddenly every link on my site became “broken” according to the plugin, but when I tried them, they all worked perfectly.

    Nothing else changed apart from this update. The previous version worked perfectly.

  19. 49
    White Shadow says:

    Seems you’re not the only one to experience this. I’ll download 0.3.1 and 0.3.0 from the WP plugin database (there’s a link for “Other versions”) and try to find which change might have caused it.

    On a related note, it seems that this plugin is now getting blocked by Bad Behaviour. Maybe that’s at least part of the problem?….

  20. 50
    Dana Betz says:

    Hi. I installed the plugin and it appears to work fine with one exception. Once the plugin is activated, my system slows down to a crawl when navigating in the WordPress environment. As soon as I deactivate the plugin, everything is normal again.

    It I’m using Version 2.3.3. Any help will be greatly appreciated!

    Dana Betz

  21. 51
    Dana Betz says:

    Oops. Just realized others are experiencing similar problems. Thanks again for any help.

    Dana

  22. 52
    White Shadow says:

    I don’t know why this happens, but my guess would be it’s something to do with the web browser. Try a different browser and see if it helps.

  23. 53
    R. Richard Hobbs says:

    Graeme Says: March 13th, 2008 at 6:55 am
    I updated to 0.3.2 and suddenly every link on my site became “broken” according to the plugin, but when I tried them, they all worked perfectly. Nothing else changed apart from this update. The previous version worked perfectly.

    <<< Ditto me

  24. 54
    White Shadow says:

    Do you have any plugins/server modules that block bots? Some of them identify this plugin as a malicious bot, and will cause all of your links show up as broken.

    Also, try the 0.3.3 version that I just uploaded.

  25. 55
    R. Richard Hobbs says:

    <<>> yes- if Akismet and BadBehavior are what you mean… and it is imperative they stay as well.

    <<>> where, please? at this writing 3.2 is linked above and on the WP Plugins Page http://wordpress.org/extend/plugins/broken-link-checker/

    thx
    RH

  26. 56
    White Shadow says:

    Damn, I suspected I had forgotten something. I uploaded the changes, but didn’t update the version information. It’s up now (wordpress.org will take 10-20 minutes to refresh).

    I’ve got nothing against Bad Behaviour (which is probably the culprit here). However, I don’t think I’d be able to “fool” it into treating the plugin as harmless, now that BB has started blocking it.

  27. 57
    R. Richard Hobbs says:

    0.3.3 is at http://wordpress.org/extend/plugins/broken-link-checker/ now – thx

    0.3.3 is working ok for me – no apparent conflicts w BB –

    thx
    RH

  28. 58
    FruityOaty says:

    Hi, I’d previously reported issues above that other people experienced (slow crawl, false broken links, etc.). Incidentally, I also have Bad Behavior plugin installed, so maybe that was a reason…

    Anyway, you’ll be glad to know that I tried latest 0.3.3 and it seems to be working fine now…. for me. No false broken links, no weird activation issue (message that it could not be activated because it caused “fatal error”), etc. Great.

    Thanks for the fixes. And thanks for releasing one of the most useful plugins that has ever been created for WordPress! It should be part of WordPress! :)

    I just wish there was a feature/plugin that would check author links/any links in comments. I hate promoting broken links.

  29. 59
    Graeme says:

    0.3.3 solved the problem. Only showing the one broken link that is actually broken, no false alarms and the admin pages speed seems fine in Firefox for me. Running several bot-blockers BB, Sabre, etc. and nothing clashing. Yeay :D

  30. 60
    moserw says:

    I tried this plugin but its giving me 408 Request Timeout all the time. What am I doing wrong? I mean its taking down my entire website. Any help would be appreciated.

    moserw

    http://www.nela.in/

Pages: « 1 [2] 3 4 5 6 7 8 9 10 1136 » Show All

Leave a Reply