-
2005-06-18
ach
After the cleanup the media popup is in a new directory (now ./lib/exe/media.php).
That causes problems with a relative mediadir ...
If you have no absolute mediadir, but $conf['mediadir']='./data/media' (which is the default), the mediadir for the media popup will be "[DOKU_BASE]/lib/exe/data/media", instead of "[DOKU_BASE]/data/media"!
Changing $conf['mediadir'] to './../../data/media' will not fix that, because then mediadir would have the wrong directory in doku.php ...
That means you can only set an absolute path as mediadir, which is not that usable.
I would recommend putting media.php back into the root directory.
-
2005-06-18
andi
Sorry but I don't understand the problem. $conf['mediadir'] specifies the physical location of the media files on the filesystem. They are no longer accessed directly from the web but always fetched through fetch.php. DOKU_BASE contains the "virtual" location on the webserver where Dokuwiki is installed in. It is always absolute from the server root. Can you explain what errors you get exactly?
-
2005-06-18
ach
When I leave the default configuration ($conf['mediadir']='./data/media';) as it is and open the media selection popup, I get the error
"Creating directory c:\\path\\to\\my\\dokuwiki\\root\\lib\\exe\\data\\media failed".
Also most of the images (in fact, images by fetch.php) on wiki:syntax are broken.
When I change the mediadir to $conf['mediadir']='./../../data/media' everything works fine so far, but a do=check tells me "Mediadir is not writable".
-
2005-06-18
ach
To me it looks like the problem is that '.' (the working directory) in the case of e.g. the datadir is the same as the dokuwiki root. But in the case of the mediadir, '.' is '/dokuwiki_root/lib/exe/' ...
(As I am new to PHP, I could be wrong, though.)
BTW, I am using the snapshot from 2005-06-17 on Windows2000.
-
2005-06-20
andi
Hmm... could you attach the ouput of doku.php?do=debug here (using the default config with ./data/media) ?
-
2005-06-20
ach
-
2005-06-24
andi
fixed in devel
-
Related tasks: