View Full Version : Attachment Storage Type --> Move Attachments from Database into File System
modem
Thu 19th Jun '03, 4:03pm
i just upgrade 2.30 to 3.0 and all seemed successfully. only one mess me: when i goto admincp to change " Attachment Storage Type --> Move Attachments from Database into File System " and i fill the path as a folder that i had created before: E:/Apache/htdocs/forum/attachments and then i click "go" button. it said:
We are ready to attempt to move your Attachments from the Database to the Filesystem...
after this i click "go" button again. it just gave error message like below:
Error Writing D:/Apache/htdocs/forum/attachments/47. You Can See More Information Above
so if i go to create a folder called: 47 in /attachments manually. the convert steps can go on but same error with next:
Error Writing D:/Apache/htdocs/forum/attachments/8. You Can See More Information Above
im wondering how i can fix this error? thanks in advance.
Steve Machol
Thu 19th Jun '03, 4:40pm
Is the attachments directory chmod'd to at least 700?
modem
Thu 19th Jun '03, 4:43pm
I use windowsXP on local machine . so I don't think it matters with folder attributes(CHMOD)
Freddie Bingham
Thu 19th Jun '03, 4:46pm
Is your PHP running in Safe Mode?
modem
Thu 19th Jun '03, 4:50pm
I am sure its not running in safe mode
Freddie Bingham
Thu 19th Jun '03, 5:06pm
Are you sure? What does your phpinfo say about safe mode? It is failing when it is trying to create directories.
modem
Thu 19th Jun '03, 5:18pm
this is a ss of my phpinfo right now.
Steve Machol
Thu 19th Jun '03, 6:26pm
What does 'file_uploads' show?
P.S. If this is a Windows server, what does 'upload_tmp_dir' show? (Or you could just provide the link.)
Pingu
Thu 19th Jun '03, 6:35pm
I use windowsXP on local machine . so I don't think it matters with folder attributes(CHMOD)Maybe not CHMOD but you DO need to set the right permissions on the temp directory and the attachment directory. Your IUSR_Blah account needs to be able to write to, and delete from those dirs. If not, then no attachment is going to make it through.
modem
Thu 19th Jun '03, 6:50pm
upload_tmp_dir
d:\php\uploadtmp d:\php\uploadtmp
Your IUSR_Blah account needs to be able to write to,
I didn't see that account on xp system usergroup
Mystics
Sat 21st Jun '03, 9:26pm
I got the same error on a Linux Server.
This is the exact error message (which is normally not shown):
Warning: Wrong parameter count for mkdir() in /var/www/forum/includes/functions.php on line 87
So, when you edit includes/functions.php, line 87:if (@mkdir($vboptions['attachpath'] . '/' . $userid)) // Created dirby replacing the above line with this:if (@mkdir($vboptions['attachpath'] . '/' . $userid, 0777)) // Created direverything works fine.
Freddie Bingham
Sat 21st Jun '03, 11:25pm
Ahh thanks
Note: Mode is ignored on Windows, and became optional in PHP 4.2.0.
modem
Sun 22nd Jun '03, 12:35am
after that... i really have no any idea. so i try to upgrade to PHP 4.3 and then all is ok now. so it means vB3 cannot run well on PHP 4.12...? i dont think so. finally :) thanks u all so patiently help.
vBulletin® v3.8.0 Beta 3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.