[dokuwiki] meta creator uses full name, changes uses user ID

  • From: William Kyngesburye <woklist@xxxxxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Fri, 21 Aug 2009 16:43:00 -0500

(this is a bit of a bug report, but the bug report link on the dokuwiki page seems to be down)

While converting some blog entries from another system to dokuwiki (blog plugin), I did a little hacking of the initial meta files generated to get creation dates and creators from the old system. No serious trouble there, but I noticed that in new blog entries created in dokuwiki (and any new page), the creator was set to the full name of the user, instead of the user ID. ie:

s:7:"creator";s:19:"William Kyngesburye";

The changelog and meta last_change use the user ID, ie:


This isn't noticable in dokuwiki itself, since any user info displayed on a page is just from the last change.

But if I want to see or use the creator of a page, like in the include plugin, it shows the full name of the user. This has a few problems:

- A user's full name can be changed. If it does change, there's no way to connect the creator of a page using an older full name back to the user profile.

- the include plugin uses the creator to generate user page ID links. This will also become disconnected with old pages when a user changes their full name.

It looks like it's happening here, in changelog.php:addLogEntry():

if (!$INFO['exists'] && empty($oldmeta['persistent']['date'] ['created'])){ // newly created
      $meta['date']['created'] = $created;
      if ($user) $meta['creator'] = $INFO['userinfo']['name'];

while the last_change meta entry uses $user there:

  $logline = array(
    'user'  => $user,

Changing $INFO['userinfo']['name'] to $user seems to work.

William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>

"This is a question about the past, is it? ... How can I tell that the past isn't a fiction designed to account for the discrepancy between my immediate physical sensations and my state of mind?"

- The Ruler of the Universe

DokuWiki mailing list - more info at

Other related posts: