Hi,
I've created a plugin which adds some buttons on the toolbar (just for personal use) and it works, but, now, in the Extension Manager, there is a message which says:
The plugin repository could not be contacted. Make sure your server is allowed to contact www.dokuwiki.org and check your proxy settings. [Retry]
.
So, I've made a completely new installation of DokuWiki without installing the plugin as mentioned before, but the problem still running.
I know that in lib/plugins/extension/admin.php there is the if statement which invoke this message:
if(!$repository->hasAccess()) {
$url = $this->gui->tabURL('', array('purge' => 1));
msg($this->getLang('repo_error').' [<a href="'.$url.'">'.$this->getLang('repo_retry').'</a>]', -1);
}
but I can't do more to fix this error message.
----
Just for completeness, this is the structure of the plugin which adds buttons:
/addbutton
/images/icon-1.png, ..
/lang/en/lang.php
action.php
plugin.info.txt
and these is action.php (I paste just one array() because all the others are similar)
<?php
/**
* Addbutton Plugin: adds own buttons in the toolbar
*/
if (!defined('DOKU_INC')) die();
class action_plugin_addbutton extends DokuWiki_Action_Plugin {
/**
* Register the eventhandlers
*/
function register(Doku_Event_Handler $controller) {
$controller->register_hook('TOOLBAR_DEFINE', 'AFTER', $this, 'insert_button', array ());
}
/**
* Inserts the toolbar button
*/
function insert_button(& $event, $param) {
$event->data[] = array (
'type' => 'picker',
'title' => $this->getLang('MathJax'),
'icon' => '../../plugins/addbutton/images/picker.png',
'list' => array(
array(
'type' => 'format',
'title' => $this->getLang('hat'),
'icon' => '../../plugins/addbutton/images/hat.png',
'open' => '\hat{',
'sample' => 'e',
'close' => '}',
),
)
);
}
}
and this is plugin.info.txt
base addbutton
author Torpedo
email torpedo@gmail.com
date 2014-11-29
name Addbutton Plugin
desc Plugin which adds own buttons in the toolbar.
url http://www.torpedo.altervista.org/doku.php?id=private:software:dokuwiki:config