Koozali.org: home of the SME Server

Obsolete Releases => SME 9.x Contribs => Topic started by: Arnaud on September 25, 2017, 06:00:45 PM

Title: Dokuwiki: configuration panel empty (+ no logout)
Post by: Arnaud on September 25, 2017, 06:00:45 PM
Hi,

I noticed yesterday, that I cant't access to the configuration panel any more:
login as admin (OK) => "administration" (OK) => "configuration" (OK) => Dokuwiki slide with empty content!! :-( Therefore it is not possible to make any settings anymore.

The contrib is up to date:
Code: [Select]
# yum info dokuwiki
...
Nom        : dokuwiki
Architecture        : noarch
Version     : 20170219e
Révision     : 1.el6.fws
Taille        : 12 M
Dépôt         : installed
Depuis le dépôt   : fws
...

# yum info smeserver-dokuwiki
...
Nom        : smeserver-dokuwiki
Architecture        : noarch
Version     : 0.2.0
Révision     : 1.el6.fws
Taille        : 9.1 k
Dépôt         : installed
Depuis le dépôt   : fws
...

If I remember there was an update a few weeks ago. Unfortunately, I can't say if the problem has already existed before the update.
Same situation with firefox and with chrome as browser.

=> Is it a general problem of Dokuwiki or only of my dokuwiki?

Further more, I have noticed since a few weeks (last update?) that the logout doesn't work properly any more, when Dokuwiki is combined with LemonLDAP:NG  (see https://wikit.firewall-services.com/doku.php/tuto/webapps/llng/dokuwiki).

Thanks for the replies.
Bye
Arnaud
Title: Re: Dokuwiki: configuration panel empty (+ no logout)
Post by: Daniel B. on September 25, 2017, 06:08:22 PM
Anything in /var/log/php/dokuwiki/error.log ?
Title: Re: Dokuwiki: configuration panel empty (+ no logout)
Post by: Arnaud on September 25, 2017, 06:25:07 PM
Anything in /var/log/php/dokuwiki/error.log ?

yes! I completely forgotten to have a look ... :-?
Code: [Select]
# cat /var/log/php/dokuwiki/error.log
[25-Sep-2017 17:34:17 Europe/Berlin] PHP Warning:  Declaration of admin_plugin_pagemove::getMenuText() should be compatible with DokuWiki_Admin_Plugin::getMenuText($language) in /usr/share/dokuwiki/lib/plugins/pagemove/admin.php on line 0
[25-Sep-2017 17:34:24 Europe/Berlin] PHP Parse error:  syntax error, unexpected end of file in /usr/share/dokuwiki/lib/plugins/ckgedit/lang/en/settings.php on line 49
Title: Re: Dokuwiki: configuration panel empty (+ no logout)
Post by: Daniel B. on September 25, 2017, 06:37:41 PM
Indeed, a bug in the ckedit plugin. Edit /usr/share/dokuwiki/lib/plugins/ckgedit/lang/en/settings.php and add the missing ; at the end of the last line. I'll need to fix this. As for the logout issue, what's happening ?
Title: Re: Dokuwiki: configuration panel empty (+ no logout)
Post by: Arnaud on September 25, 2017, 08:24:54 PM
Edit /usr/share/dokuwiki/lib/plugins/ckgedit/lang/en/settings.php and add the missing ; at the end of the last line.
I can confirm: it fixes the problem  :lol:

As for the logout issue, what's happening ?
- previously: logged in into Dokuwiki => "logout" => back into portal of LemonLDAP (auth.domain.tld) automatically => confirmation =>logged out
- now: logged in into Dokuwiki => "logout" => same page is reload, still logged in  => same page is reload, still logged in  etc..... ===>> necessity to go manually to the portal of LemonLDAP (auth.domain.tld) to logout.

So the "go back" from "dokuwiki.domain.tld" into "auth.domain.tld" doesn't work anymore.

Title: Re: Dokuwiki: configuration panel empty (+ no logout)
Post by: Daniel B. on September 25, 2017, 08:56:15 PM
Can you post the logout rule you've added in ll::ng manager, and the URL you're pointed at when clicking the logout link please
Title: Re: Dokuwiki: configuration panel empty (+ no logout)
Post by: Arnaud on September 26, 2017, 06:44:30 PM
Hi Daniel and many thanks for your replies!

into the sso-manager:
Code: [Select]
Expression: ^/(?i)doku.php(/start)?\?(.*)do=logout
Règle: logout_app

Concrete exemple:
loged in into my wiki: https://wiki.domain.tld/doku.php?id=Welcome:Debian
The logout button points to: https://wiki.domain.tld/doku.php?id=Welcome:Debian&do=logout&sectok=67343cf2375b4c91274603e9b8c2c2ac
After the clic on the logout button, the URL is still the same: https://wiki.domain.tld/doku.php?id=Welcome:Debian

I'll try to "translate" the expression and compare it with the target url of the button.
Title: Re: Dokuwiki: configuration panel empty (+ no logout)
Post by: Arnaud on September 28, 2017, 05:28:09 PM
Hi,
I would propose to split the url as follow:
Code: [Select]
https://wiki.domain.tld/    doku.php?id=   Welcome:Debian&   do=logout     &sectok=67343cf2375b4c91274603e9b8c2c2ac
Then I would use following expression:
Code: [Select]
^(.*)doku.php\?id=(.*)do=logout
I still haven't test.......

EDIT: this expression doesn't link to the portal LemonLDAP too! :sad: Same thing with the complete url of the logout link. => is the roule "logout_app" still working??