Not logged in. · Lost password · Register
Forum: General Help and Support Installation and Configuration RSS
[Solved] Plugin repository could not be contacted
Avatar
Torpedo #1
Member since Aug 2014 · 81 posts
Group memberships: Members
Show profile · Link to this post
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:
/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
This post was edited on 2014-12-01, 17:40 by Torpedo.
Avatar
turnermm (Moderator) #2
Member since Oct 2009 · 4696 posts · Location: Canada
Group memberships: Global Moderators, Members, Super Mods
Show profile · Link to this post
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
Avatar
Torpedo #3
Member since Aug 2014 · 81 posts
Group memberships: Members
Show profile · Link to this post
Thanks for your reply.
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!
Avatar
turnermm (Moderator) #4
Member since Oct 2009 · 4696 posts · Location: Canada
Group memberships: Global Moderators, Members, Super Mods
Show profile · Link to this post
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
Avatar
Torpedo #5
Member since Aug 2014 · 81 posts
Group memberships: Members
Show profile · Link to this post
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: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
Imprint
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Current time: 2019-09-17, 08:41:03 (UTC +02:00)