Koozali.org: home of the SME Server

Obsolete Releases => SME 9.x Contribs => Topic started by: Arnaud on December 08, 2015, 08:48:03 PM

Title: Dokuwiki: issue after a server upgrade from SME8 to SME9
Post by: Arnaud on December 08, 2015, 08:48:03 PM
Good evening boys and girls  :shock:,

I get following issue with dokuwiki:

The environment:  testing the migration from SME8 to SME9 on a virtual machine
The current situation:
The tests:
Questions:
what shall I do to get my pages visible  on "SME9-clone"? How do you have solve this?
Bad solutions:

Thanks for your information.
Bye
Arnaud
Title: Re: Dokuwiki: issue after a server upgrade from SME8 to SME9
Post by: Daniel B. on December 09, 2015, 09:16:19 AM
It certainly works, I've migrated 3 Dokuwiki instances on the past month. The only files/directory needed for the data themselve are:

Code: [Select]
/etc/dokuwiki/acl.auth.php
/etc/dokuwiki/acronyms.conf
/etc/dokuwiki/entities.conf
/etc/dokuwiki/interwiki.conf
/etc/dokuwiki/local.php
/etc/dokuwiki/plugins.local.php
/etc/dokuwiki/scheme.conf
/var/lib/dokuwiki/data/attic
/var/lib/dokuwiki/data/index
/var/lib/dokuwiki/data/media
/var/lib/dokuwiki/data/media_attic
/var/lib/dokuwiki/data/media_meta
/var/lib/dokuwiki/data/meta
/var/lib/dokuwiki/data/pages

(you can see it's just a subset of /etc/dokuwiki and /var/lib/dokuwiki/data).

If you also want to migrate manually installed plugins, you can run:

Code: [Select]
for D in /usr/share/dokuwiki/lib/plugins/*;do
  rpm -qf $D >/dev/null 2>&1 || echo $D
done

It'll print every files which doesn't belongs to an installed rpm
Title: Re: Dokuwiki: issue after a server upgrade from SME8 to SME9
Post by: Arnaud on December 09, 2015, 10:33:52 PM
Hello Daniel,
the good news is that it works by you --> it's "only" a local issue.
The bad is that it still refuse to work by me!

I copied again each folder that you indicate, gave the right permissions (apache:www).......nothing happens  :sad:
I notice that the menu tree stays empty, even for all the default pages of dokuwiki (in spite they are on the source SME) --> the plugin seems not to see them

How do you migrate:
1) install of the contribs and 2) copy the folders
or
1) copy the folders and 2) install the contribs (like I did - I hope that this is the mistake in spite it's the normal procedure for restoration from backups)

Thanks.
Arnaud
Title: Re: Dokuwiki: issue after a server upgrade from SME8 to SME9
Post by: Daniel B. on December 09, 2015, 10:40:49 PM
I usually copy the folders, then reinstall the contrib, but the order doesn't really matter
Title: Re: Dokuwiki: issue after a server upgrade from SME8 to SME9
Post by: Arnaud on December 10, 2015, 09:25:54 PM
EUREKA!!  :lol:

the mistake was once again placed between the chair and the screen....... :oops:

In the dokuwiki of the SME source, I enabled the acceptance of capital letters and blanks for the name of the pages.
All the names of my pages start with capital letter.

This acceptance is disabled by default in dokuwiki --> the pages with capital letters are simply ignored......................... :roll:

Here https://www.guedel.eu/dokuwiki/doku.php?id=Welcome:SME-server:Setup%20of%20dokuwiki (https://www.guedel.eu/dokuwiki/doku.php?id=Welcome:SME-server:Setup%20of%20dokuwiki) is how to proceed:

Enable pages names with capital letters

In a console of the SME-server: edit /usr/share/dokuwiki/inc/pageutils.php and comment out the line $id=utf8_strtolower($id); with /* and */

Code: [Select]
# cd /usr/share/dokuwiki/inc/
# cp pageutils.php pageutils.php.orig
# nano pageutils.php

Enable the "spaces" in the pages names

In a console of the SME-server: edit /usr/share/dokuwiki/lib/plugins/config/settings/extra.class.php and add a “space” (=blank) between the “.” and the “ ' ” in $str = '_-.'; in the function setting_sepchar (a few lines after “Class setting_sepchar”):

Code: [Select]
# cd /usr/share/dokuwiki/lib/plugins/config/settings/
# cp extra.class.php extra.class.php.orig
# nano extra.class.php
       -->  $str = '_-. ';

In Dokuwiki, login as admin and go to “administration” –> “parameters” and search for “sepchar”.

Then choose the space (“ ”) instead of the “_”.

Don't forget to backup these 2 files (was my mistake)!!!

Bye
Arnaud

PS: once again, many Thanks Daniel!
Title: Re: Dokuwiki: issue after a server upgrade from SME8 to SME9
Post by: guest22 on December 10, 2015, 11:54:04 PM
Nice catch Arnaud, and congrats! Maybe we should add this to the wiki?