Dokuwiki: Missing mbstring dependency causes broken links after upgrading to Hogfather

Created on 1 Jun 2020  路  16Comments  路  Source: splitbrain/dokuwiki

Hey everyone!

I just recently upgraded to Hogfather from version 18, and now see that I've got broken links throughout my wiki.

After looking into it, I realized that in the previous version, links such as [[players:bruce]] and [[players:Bruce]] would link to the same page (case insensitive). Now, however, they point to different pages.

Additionally, links like [[places:Bruce's Library]] are now broken as well, requiring me to change them to [[places:bruce_s_library]]. It seems that links must now match the "sanitized" page names instead of the actual name.

Was something changed with how link locations are resolved?

Bug

Most helpful comment

Happend to me as well. mbstring extension was missing, after installing it and restarting apache it seems it's working. Well, without one exception - I had some links like this: [[somens:somepage:]] which resulted in link [[somens:somepage:start]]. Now if I leave this the whole link disappear from page. If I rewrite it to [[somens:somepage:start]] it works.

All 16 comments

Here's a screenshot showing the issue:
link_issue

Just experienced precisely the same issue today attempting to upgrade from Greebo to Hogfather. Reverting to Greebo and then deleting the cache files let's me continue my work (i.e. Wiki links are now functional again), but it would be good to understand what's causing the problem in this release.

Sounds like a broken or missing pieces in the download package, at the first sight.
Are there any errors in the log of the webserver?

How did you perform the upgrade? which package or which approach?

I can not reproduce this either and I am a bit stumped how this should even happen. In addition to the things @Klap-in asked about, please also give info about this:

  • operating system and filesystem used
  • any settings related to links (camelcase, autoplural, etc.)
  • installed plugins that might influence link handling
  • PHP version
  • if the mbstring PHP extension is available

Happend to me as well. mbstring extension was missing, after installing it and restarting apache it seems it's working. Well, without one exception - I had some links like this: [[somens:somepage:]] which resulted in link [[somens:somepage:start]]. Now if I leave this the whole link disappear from page. If I rewrite it to [[somens:somepage:start]] it works.

I can confirm that @spamik's solution fixed the issue for me as well! I followed the instructions here to install it.

For the record, I upgraded to Hogfather from the Dokuwiki Upgrade plugin. This was on Raspbian 9 (ARM, on a Raspberry Pi) on an ext4 filesystem with PHP 7.0.

Did Hogfather introduce a dependency on mbstring? Or could the upgrade process have removed it?

I'm still having trouble reproducing this. I can't easily disable mbstring because my PHP has it compiled in, but I switched the UTF8_MBSTRING constant and I see our fallback mechanisms used just as they should.

DokuWiki should continue to work without mbstring, so the behaviour you're seeing is definitively a bug of some kind.

I'm getting this (Raspbian buster PHP 7.3.11-1~deb10u1)
It's a strange bug.. I have a link text as
[[nu-men:The Tabley Big Table of Connections]]
but in the page is rendered as
nu-men:the_tabley_Big_table_of_Connections

I'd be willing to provide a login to my system via teamviewer

I found the problem. For some reason the conversion table was missing a whole bunch of characters. Not sure what happend there. We'll have a fix out soon.

I can confirm that installing mbstring fixed the issue for myself as well. I'm using Debian 10 and php 7.3. I just ran "apt-get install php-mbstring" and then restarted apache2. Then I upgraded dokuwiki via the plugin. All good now! Edit: Whoops, I now see this is acknowledged as a dependency. Thanks for the help/tips guys!

I believe this should have been fixed in master/snapshot by https://github.com/splitbrain/dokuwiki/commit/0884c254723c9fa99e70acf920c59d7f3dbcab55, if you would like to give it a try.

Do we keep this open until a new RC is released, or until the fix is verified on master?

Had same issue on CentOS Linux release 7.8.2003 (Core), installed mbstring and it started to work.

I am going to close this issue since it should have been fixed in RC2. Please comment if it still does not work for you in RC2.

I upgraded to RC2, removed mbstring, and restarted Apache. I can confirm that RC2 is working as expected! Thanks for the quick turnaround everyone!

I've just updated toRelease rc2-2020-06-01 "Hogfather" RC2 and all is back to normal

Thanks for the quick fix!

Was this page helpful?
0 / 5 - 0 ratings