[pmwiki-announce] Re: [Pmwiki-users] Bizzare mkdir problem,
and solution
Patrick R. Michaud
pmichaud
Wed Apr 28 07:26:48 EDT 2004
Fixed, released as 0.6.16.
Thanks!
Pm
On Thu, Apr 29, 2004 at 12:16:15AM +1200, Donald Gordon wrote:
> Hi
>
> Running pmwiki on a virtual host, we had some trouble with creating the
> upload/Group/ directories: when you uploaded an attachment into a group
> for the first time, you'd see a "cannot access upload/Group/" error,
> and PmWiki would tell you the standard story about MkDir - and you'd
> have to FTP in and create the directory yourself.
>
> I don't know if it's the version of php, something to do with safe
> mode, or something else, but omitting the trailing slash on the
> directory name passed to mkdir() seems to make things work.
> Unfortunately this requires a change to pmwiki.php, so we can't do it
> as a local customisation:
>
> function mkgiddir($dir) {
> global $ForceMkdir;
> + $dir = preg_replace("/\\/$/", "", $dir);
> if (is_dir($dir)) return;
>
> Alternatively, passing a directory name to mkgiddir() from upload.php
> without a trailing slash will also work.
>
> donald
>
>
> --
> Pmwiki-users mailing list
> Pmwiki-users at pmichaud.com
> http://pmichaud.com/mailman/listinfo/pmwiki-users_pmichaud.com
More information about the pmwiki-announce
mailing list