Learn about DokuWiki
Learn about DokuWiki
1. This plugin requires the PHP curl library.
2. It also requires valid CA certificate file(s) for ssl. This generally is not a problem on linux systems where openssl has been installed. On Windows these certificates may not be available for use by curl. For Windows and other instances where not available you can install the certificates from the xtern admin panel. Or you can self-install pem certificate files. See:
For this certificate configuration, you must also set to true the
ca_required configuration option.
The plugin checks to see if an external url is accessible. If it is, then it will replace the standard gray external link icon with a green globe. If not, it will replace the gray icon with a red globe. This is in keeping with DokuWiki's use of green for valid internal links and red for broken internal links.
These changes do not apply to interwiki links. Interwiki links have the class
interwiki and have icons specific to the wiki or else the Dokuwiki generic interwiki icon. External links have the class
urlextern and get the globe icon.
A group of http status codes in the 400 range designate urls that are not technically broken but are restricted from accessing their targets. These are marked, as above, with the black and white “explore-off” icon adapted from the Material Design icon collection. On a mouse-over, a tooltip shows the status code and its name.
There is a script in the scripts directory which can be run from the lib/exe directory:
This will list broken links and the pages where they occur. The command line script has no time limit, and processes the complete wiki.
You can also run a check in the plugin's administration panel. This is preferable to the script, giving more complete results. Here you can do the check by namespace or for the entire wiki. The output in the admin panel creates links which open a new window ready for editing your broken links. Not all errors show https status codes. Some will show curl error codes with explanations. What shows up here as curl errors, in the normal page display will be marked with the red globe.
Checking the entire wiki on large sites may need more than the
max_execution_time set for php scripts on your system. The plugin has a
max_time configuration option. This defaults to 120 seconds and can be increased.
The admin panel check saves the list of broken links and their pages. There is a
Review button which enables you to re-check your result at a later time using this saved list. It is faster than the original check because it does not have to parse the wiki pages to search for external links. As with the original link check, here too you can open the wiki pages for editing.
When the new window opens for editing, the broken links for this page will be displayed at the top of the page in yellow message banners. In the file itself, the broken links will be marked as broken:
__ BROKEN-LINK: [[http://www.mturner.org/html/credits.tgz|mturner.org]] LINK-BROKEN __
Preview button is clicked these will show up as underlined.
Keep in mind that this is a preview. Anything that is not saved will disappear from the page. On the other hand, if you click
Save and don't remove the broken link markup from the page, that will be saved.
Please use the forum or the github issue tracker.