Broken Link Checker for WordPress
Notice: This plugin has been transferred to ManageWP. I am no longer working on it. Please direct any feedback to the new developer. See the plugin homepage for more information.
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.
Features
- Detects links that don’t work, missing images, deleted YouTube videos and other problems.
- Periodically checks links in posts, pages, comments, custom fields and the blogroll.
- New and modified entries are checked ASAP.
- Notifies you on the Dashboard if any problems are found.
- Lets you edit all instances of a specific link at once.
- Gives you a list of all links ever posted on your site, with the ability to search and filter it.
- Lets you apply custom CSS styles to broken and removed links.
- Highly configurable.
The broken links show up in the Tools -> Broken Links tab along. If any invalid URLs are found a notification will also show up on the Dashboard widget. To save screen real-estate, the widget can be configured to stay closed most of the time and automatically expand when broken links are detected.
Download
broken-link-checker.zip (412 KB)
Requirements
- WordPress 3.0 or later
- MySQL 4.1 or later
The current version of this plugin is only compatible with WordPress 3.0 and up. If you have an older version of WP, try one of the older releases. Specifically, version 0.8.1 is the last one that’s still compatible with the WP 2.8 branch, and version 0.4.14 is the last one compatible with WP 2.1 – 2.6.x.
Installation
Install “Broken Link Checker” just like any other WordPress plugin :
- Download the .zip file (see below).
- Unzip.
- Upload the
broken-link-checker
folder to you/wp-content/plugins
directory. - Activate the plugin in the Plugins tab.
[…] Broken Link Checker […]
[…] [ Contact Form 7 ] →問い合わせフォームの簡易作成 [ Broken Link Checker ] →リンク切れチェック(Broken Link […]
this is extramely useful for my website http://www.litegame.net. so I can easily check what is broken intenally..thanks for you great work.
[…] Broken Link Checker – monitors and notifies you for broken links on your blog. […]
[…] Broken Link Checker – Search engines do not like broken links. Your visitors do not like them either. This plugin scans your posts automatically, shows you broken links in WordPress dashboard and lets you easily unlink them. […]
[…] να μην έχουμε στο site μας τέτοια links.Κατεβάστε εδώ το Broken Link Checker WordPress plugins σχετικά με […]
I have loved this plugin (thanks to your help last year, probably, to get it working, when my ISP *insisted* wrongly that I had version X of something when your deubgging showed it was version Y, etc.). Anyway, it has not been working for a while now, so I can’t tie that to any specific changes to your version, changes at my ISP, or WP changes.
No broken links are being detected. If I run a re-check it still doesn’t come up with anything. And I know that there are broken links (because we just found one manually) – I mean, there are ALWAYS broken links 🙂
Debug info:
HP version 5.2.5
MySQL version 5.0.41-community
CURL version 7.19.5
Snoopy Installed
Safe mode Off
open_basedir Off
Lockfile /tmp/wp_blc_lock
Default PHP execution time limit 30 seconds
Resynch. flag 1
Synch. records 8955
Unparsed items 8955
Link records 0 (0)
(the last two in yellow)
I’m running WP 2.9.2
Thanks for any help!
Hey,
I’m trying to use function.php to hide dashboard widgets for a specific user role.
I can’t figure out how to hide this one. This is what I’m using to hide specific dashboard widget:
unset($wp_meta_boxes[‘dashboard’][‘normal’][‘core’][‘dashboard_right_now’]);
If it doesn’t show up, here’s a link to an article on using “unset” to remove widgets.
How can I remove yours?
http://vxi.me/UalR
Thanks!
@ Steve :
Looks like the routine that scans posts for links is failing somehow. Do you have any PHP error logs that I could look at? Also, if you have FireBug, you might be able to spot some error messages in the AJAX requests that the plugin makes while the dashboard is open.
@ Viktor :
The plugin’s dashboard widget has the ID “blc_dashboard_widget”, so I imagine something like this would work :
To reliably catch plugin-created widgets, you’ll also need to modify your add_action call to make the tidy_dashboard function (or what have you) execute after plugin callbacks attached to the same hook.
Great! It worked. Thanks for your help.
I’ve got Firebug installed now but I don’t really know where to look for errors. Sorry.
I’ll also see about where I might find the PHP errors (I am not typically using shell access for this account so I’ll have to hunt down where to find those errors). Thanks, and more to come.
Look for them in the “Console” tab. The plugin periodically makes AJAX requests, which will look something like “POST http://….” in the log. You can click on those to get more details; check the “Response” sub-tab of the request(s) for possible error messages.
Depending on your server configuration, you might be able to get at the error logs via FTP. For example, on this site any PHP errors are written to an “error_log” file that resides in the same directory as the PHP file that caused the error.
[…] kunt de plugin downloaden op deze website. // Share| Lees ook eens:‘All in One SEO Pack’ voor WordPress‘Related […]
No problems with installation. Nice tool!
Thanks & keep up the good work!
[…] Το συγκεκριμένο plugin κάνει κάτι πάρα πολύ σημαντικό.Ελέγχει εάν υπάρχουν κάποια Links στο site μας τα οποία είναι σπασμένα κοινώς τα πατάμε και δεν οδηγούν κάπου.Αυτά τα κοιτάει και η google και καλό θα είναι να μην έχουμε στο site μας τέτοια links.Κατεβάστε εδώ το Broken Link Checker […]
Hi,
Great plug-in, blc finds all my broken links, however, i have to edit them manually. If I use the Unlink button, it says done but if I refresh the broken link page again. The same link pops up at the back of the queue. The same thing happens when I repair a link.
I’m running the latest Worpress.
Thanks,
Felix
Try the development version. Also, what’s your PHP version? (you can check that by clicking “Show debug info” on the plugin’s settings page)
[…] Broken Link Checker created by Janis Elsts […]
The latest version works for me! Thanks!
The new version is here, awesome! Any word on when/if the Custom Post Types scanning will be implemented? Thanks!