From: Zac E. <zac...@me...> - 2007-08-20 16:08:18
|
hello. I'm trying to determine why the upload plugin isn't working as described. I have two phpwiki instances. a 1.2.1 and a 1.3.14 here's an example File successfully uploaded. Upload:ZacElston/z1-image.gif (http://psiwiki//uploads/ZacElston/z1- image.gif) in the 1.3.14 ( UpLoad.php,v 1.25) version the uploaded files get written to a uploads$user/$file dir as opposed to uploads/$user/$file which is what the wiki reports it should be. thus the inline request of [Upload:ZacElston/z1-image.gif] fails in the 1.2.1 (UpLoad.php,v 1.19) install it just writes to the root phpwiki dir with a filename of uploads$user$file the errors (1.3.14) listed on the upload are as follows. where should phpwiki-upload.log be located? It's not accepting the phpwiki root or the plugin dir lib/plugin/UpLoad.php (In template 'body' < 'html'):264: Warning: The upload logfile is not writable. so in both cases it looks like the file isn't getting the initial ./ uploads/ directory prepended to the name on write. is this a config option somewhere? thanks -zac |
From: Zac E. <Zac...@me...> - 2007-08-31 17:24:45
|
so last week I was trying to get my 1.2.1 install to write uploads to the correct ./uploads/UserName/ path. after playing with it some I noticed getUploadFilePath wasn't returning an ending slash which was odd since it was explicitly coded. function getUploadFilePath() { if (defined('UPLOAD_FILE_PATH')) return UPLOAD_FILE_PATH; return defined('PHPWIKI_DIR') ? PHPWIKI_DIR . "/uploads/" : realpath(dirname(__FILE__) . "/../uploads/"); } so not wanting to figure out why I just added a slash during the UpLoad.php and everything worked great. $file_dir .= "/"; if (UPLOAD_USERDIR) { now I migrated to 1.3.14 and again, same issue, writing to uploadsUserName instead of uploads/UserName, but what is even weirder is that it fails to actually write the file because ERROR uploading '1.txt': Only files with the extension 7z , avi , bmp , bz2 , c , cfg , diff , doc , gif , h , ini , jpeg , jpg , kmz , mp3 , patch , pdf , png , ppt , rar , tar , tar.gz , txt , xls , zip are allowed. .. ::boggle:: so it writes the incorrect DIR (this is a default 1.3.14 install, just downloaded it again last night) AND disallows the file. I can't think of where to look for a fix as I'm looking at code that should work. this has to be a deeper issue. any ideas on what to report to help debug it? thanks rhel4 php-4.3.9-3.9 php-ldap-4.3.9-3.9 php-mysql-4.3.9-3.9 php-gd-4.3.9-3.9 php-pear-4.3.9-3.9 |
From: Harold H. <ha...@ha...> - 2007-09-15 18:39:29
|
On the admin page, I see a section for user management and email verification, but I don't see in config.ini how to enable email verification. I'd like new users to register with an email address. The wiki would then send them an email with a link to click to be authorized. It sort of looks like the systme is supposed to be able to do that, but I can't figure out how to enable it. Ideas? THANKS! Harold -- FCC Rules Updated Daily at http://www.hallikainen.com - Advertising opportunities available! |
From: Reini U. <ru...@x-...> - 2007-09-15 19:48:29
|
2007/9/15, Harold Hallikainen <ha...@ha...>: > On the admin page, I see a section for user management and email > verification, but I don't see in config.ini how to enable email > verification. I'd like new users to register with an email address. The > wiki would then send them an email with a link to click to be authorized. > It sort of looks like the systme is supposed to be able to do that, but I > can't figure out how to enable it. These email verification functions are currently only used as backbone for sending email verifications on page changes/removes/renames. Not for auth yet. The new WikiUser/EmailUser.php auth module is still in work. But I'll check it into CVS for other interested developers to continue. Same goes for WikiUser/OpenID.php -- Reini Urban http://phpwiki.org/ http://murbreak.at/ http://spacemovie.mur.at/ http://helsinki.at/ |
From: Harold H. <ha...@ha...> - 2007-09-15 22:04:40
|
Thanks! Harold > 2007/9/15, Harold Hallikainen <ha...@ha...>: >> On the admin page, I see a section for user management and email >> verification, but I don't see in config.ini how to enable email >> verification. I'd like new users to register with an email address. The >> wiki would then send them an email with a link to click to be >> authorized. >> It sort of looks like the systme is supposed to be able to do that, but >> I >> can't figure out how to enable it. > > These email verification functions are currently only used as backbone > for sending email verifications on page changes/removes/renames. Not > for auth yet. > > The new WikiUser/EmailUser.php auth module is still in work. > But I'll check it into CVS for other interested developers to continue. > Same goes for WikiUser/OpenID.php > -- > Reini Urban > http://phpwiki.org/ http://murbreak.at/ > http://spacemovie.mur.at/ http://helsinki.at/ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Phpwiki-talk mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/phpwiki-talk > -- FCC Rules Updated Daily at http://www.hallikainen.com - Advertising opportunities available! |