Le mercredi 03 mars 2010, Davide Prina a écrit : > after upgrading the last dokuwiki version I have the followings error: > [Wed Mar 03 20:28:27 2010] [error] [client 127.0.0.1] PHP Warning: > include(): Failed opening '/usr/share/dokuwiki/lib/tpl/default/main.php' > for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in > /usr/share/dokuwiki/inc/actions.php on line 157 > > # ls -ld /usr/share/dokuwiki/lib/tpl > drwxr-xr-x 4 www-data www-data 4096 3 mar 20:07 /usr/share/dokuwiki/lib/tpl > > I see in the installation information that some part of dokuwiki is now > on /var/lib/dokuwiki/ and here there is a tpl directory. > > I think I have solved this problem with these two commands: > # mv /usr/share/dokuwiki/lib/tpl /usr/share/dokuwiki/lib/tpl_old > # ln -s /var/lib/dokuwiki/tpl /usr/share/dokuwiki/lib/tpl > > I don't know if this problem is originated by some manual configuration > I have made some year ago.
Yes, I think it is, but this is a case we should have handled in
postinst.
About two year ago, with version 0.0.20080411~rc.1-1, the templates
directory was move from /usr/share/ to /var/lib/ to allow customization
respecting the Filesystem Hierarchy Standard. A piece of code was added
to the postinst script to:
1. move possible user-defined templates to the new location:
mv /usr/share/dokuwiki/lib/tpl/* /var/lib/dokuwiki/tpl/
2. remove the old template directory:
rmdir /usr/share/dokuwiki/lib/tpl
3. make the symlink:
ln -s /var/lib/dokuwiki/tpl /usr/share/dokuwiki/lib/
For some reason, this has failed with your install. If you have kept
your old tpl_old directory, can you send a listing of all files it
contains, including hidden ones? If it contains a hidden file, this
would be the reason: the transition code does not handle dotfiles, I
think.
--
Tanguy Ortolo
signature.asc
Description: Digital signature

