Not logged in. · Lost password · Register
Forum: General Help and Support General Stuff RSS
Fixing pages "Last updated ... (external edit)"
Avatar
dregad #1
Member since Nov 2015 · 3 posts
Group memberships: Members
Show profile · Link to this post
Subject: Fixing pages "Last updated ... (external edit)"
I migrated a wiki to a new hosting provider a few months ago, and just found out that the page's last revision author and time stamp information (in the footer) was lost in the process, showing (external edit) instead of the actual author's username.

Last modified: Y/m/d H:i (external edit)

After a bit of research, it turns out that this is due to a mismatch between

  • the timestamp of the page's file (e.g. path/to/wiki/data/pages/start.txt)
  • the last update's timestamp in the file's history (last line in path/to/wiki/data/meta/start.changes)

The problem was most likely caused by not keeping the original files' timestamp when extracting them from the tarball I created on the old server.

To fix the problem, I wrote a simple bash script, hopefully it will be helpful for someone.

Note that this will not fix the pages' history - older revisions will remain as (external edit).
Avatar
dregad #2
Member since Nov 2015 · 3 posts
Group memberships: Members
Show profile · Link to this post
Oh, and don't forget to backup your wiki's data before running the script...
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-05-25, 06:00:24 (UTC +02:00)