Not logged in. · Lost password · Register
Torpedo #1
Member since Aug 2014 · 81 posts
Group memberships: Members
Subject: [Solved] Plugin repository could not be contacted
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:
/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
/**
*/

if (!defined('DOKU_INC')) die();

/**
* 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'),
'open' => '\hat{',
'sample' => 'e',
'close' => '}',
),
)
);
}
}

and this is plugin.info.txt

author Torpedo
email  torpedo@gmail.com
date   2014-11-29
desc   Plugin which adds own buttons in the toolbar.
url    http://www.torpedo.altervista.org/doku.php?id=private:software:dokuwiki:config
This post was edited on 2014-12-01, 17:40 by Torpedo.
turnermm (Moderator) #2
Member since Oct 2009 · 4711 posts · Location: Canada
Group memberships: Global Moderators, Members, Super Mods
This appears to be a problem with your server, not with the plugin.
Myron Turner
github: https://github.com/turnermm
plugins, templates: http://www.mturner.org/devel
Torpedo #3
Member since Aug 2014 · 81 posts
Group memberships: Members
I've checked the set-up of my server and the problem is just as you said... but It's a free web space and I can't put one's hands to the configuration file!
The error message will remain there!
turnermm (Moderator) #4
Member since Oct 2009 · 4711 posts · Location: Canada
Group memberships: Global Moderators, Members, Super Mods
You might want to consider a very inexpensive ISP which is recommended for use with Dokuwiki.  See https://www.dokuwiki.org/hosting
Myron Turner
github: https://github.com/turnermm
plugins, templates: http://www.mturner.org/devel
Torpedo #5
Member since Aug 2014 · 81 posts
Group memberships: Members
I've written an e-mail to the staff which keep my web server and they said that it's possible to allow the comunication server to server sending an unlock code via sms.

So, for now I've solved but I'll take into consideration the opportunity to change hosting if mine will give me others problems.
Close Smaller – Larger + Reply to this post:
Verification code: Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys:
Special characters:
Go to forum
Imprint