The Plugin Manager plugin allows superusers to administrate installed plugins and install new ones.
The Plugin is bundled with DokuWiki and does not need to be installed separately. The Plugin Manager is accessible from the admin screen (Login as superuser, click “Admin” and choose “Manage Plugins”).
This is the default action of the Plugin Manager. Each plugin is shown in its own row. A checkbox in front of the name indicates if the plugin is enabled or not.
Plugins listed with a light red background can not be deleted. Plugins with a light blue background are currently disabled.
To disable a plugin, uncheck the checkbox in front of its name and press the save button. Plugins are disabled by placing a disabled file into the plugin directory.
Disabled plugins will no longer be loaded by DokuWiki, their Stylesheets and JavaScript won't be loaded and their syntax will no longer have any effect.
Pressing the info button will display some basic information about the chosen plugin and its components. The Source and Installed fields are only available when the plugin was installed through the Plugin Manager.
The plugin manager can download, unpack and install plugins for you. To install a new plugin follow these steps:
When you install a plugin with the plugin manager it will remember the download URL. To update a plugin you can simply press the “Update” button next to it and the Plugin Manager will redownload the plugin and install it again, overwriting the older version.
Note: This only works when the plugin maintainer always uses the same URL for the plugin or provides some redirection to the latest version through a common URL. If this is not the case just get the new URL and install it like a new plugin. The Plugin Manager then will update your old plugin.
Plugins that were not installed through the plugin manager can not be updated with this method. The “Update” button is disabled for these plugins.
To be able to install and modify your plugins, the webserver needs to be able to write to the lib/plugins directory and all files below. Refer to permissions on details how set file permissions on various systems.
The plugin manager will detect missing file permissions and warn you when a plugin could not be installed. You have to install plugins manually in this case, by downloading and unpacking them in lib/plugins your self.
If you try to install plugins using the automatic download and install tool and get the error message “No plugins found, or there has been an unknown problem during downloading and installing.”, then you should check whether your server has activated the zlib (and/or bzip2) extension for php. To be sure, try the following: Download a plugin, extract it, and rearchive it into a .tar file (without compression). Now try to use the download and install tool on that .tar file. If it works now, it is most likely that you just need to install the php-zlib package.
The source code is available from Git.
Submit bugs and feature wishes in the DokuWiki Bugtracker.
Hopping around on a few free webhosters and a WAMPP I debugged the download problem a little until this popped up:
100 Could not connect to ssl://github.com:443 Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP? (5)
I traced that down by patching inc/io.php + 477 (calling inc/HTTPClient.php) like this:
$data = $http->get($url); if(!$data) { print $http->error; print $http->status; return false; }
All the download-links to github are automatically redirected to ssl-connections, no opt-out planned 1).
Problem is, as of now SSL transports are disabled on XAMPP and UniServer (WAMPs) and all cheap webhosters I tried so far (even those very few, that allow sockets at all).
phpinfo() may give – for example:
Registered Stream Socket Transports tcp, udp, unix, udg
In XAMPP the openssl extension is actually compiled in but not activated by default. So adding
extension=php_openssl.dll
to php.ini (xampp/php/php.ini) will solve the issue.
Nice. But in the typical shared webhosting scenario, access to php.ini will not be available.
No easy fix there.
— bjoernXbjoernX
2011/04/25 09:32
This is a known problem, see http://support.github.com/discussions/site/2232-allow-downloads-via-http-non-ssl. Yes, you're unfortunately right: No easy fix there. — Anika HenkeAnika Henke
ach
2011/04/25 10:47Thanks, Anika. Strange discussion there… it almost seems, they don't get the point. Claiming security at github against plain http as an option for package downloads sound ridiculous to me. I was wondering – maybe some kind of proxy in-the-middle thing might work, but I'm not sure, if it's worth the effort. — bjoernXbjoernX
2011/04/26 13:42
Perhaps I'm just a fool, but I'm having issues with this and other plugins and the plugin manager (rincewind). Basically if I do copy link location on “Download the plugin” I get “https://github.com/turnermm/codedoc/tarball/master” which is not a link to the file. Using wget on this will get a file called “master”, not the tgz file. Using the URL field in Dokuwiki's plugin manager yields “Unable to download the plugin file: https://github.com/turnermm/codedoc/tarball/master” not surprisingly. Any thoughts on how to resolve this conundrum? Running OpenSuse 11.4. Thanks