I just have tried to upgrade a phpwiki installation from 1.2.10 to the latest.
I am trying to set it up at an isp where I have no access whatsoever outside
my own directory and no possibility to do anything on the set up of the
server.
I am then only greeted with
Fatal Error:
lib/FileFinder.php:191 Error: /tmp: file not found
lib/FileFinder.php:191 Error: /tmp: file not found
This happens both when (trying to) using dba and mysql.
I have been looking into config.ini, and changed all occurences of /tmp there
to tmp and made a directory tmp under my phpwiki installation that is
writeable for the server. No help. When grepping for /tmp in the source, I
find quite a few occurances where that is hard coded, so it seems to me that
even if I am telling it through config.ini to stay away from /tmp, it cannot
be avoided (without going deep diving into the code) e.g. in l
lib/WikiDB/backend/dba.php I find:
class WikiDB_backend_dba
extends WikiDB_backend_dbaBase
{
function WikiDB_backend_dba ($dbparams) {
$directory = '/tmp';
$prefix = 'wiki_';
...
of cource, it might be that the $directory is set to something else further
down the road through the extract($dbparams) call, but it is obious that it
is presently no simple way for an end user (even one with quite a bit of php
experience) to tell phpwiki to stay away from /tmp
Morten
|