phpCollab Community
Discuss everything phpCollab!

The forums are currently in READ-ONLY mode while we upgrade the forums.
Home » Support » General Support » Upload problem - conclusive proof (?)
Upload problem - conclusive proof (?) [message #6589] Mon, 14 February 2005 21:19 Go to next message
MacMonkey is currently offline  MacMonkey
Messages: 2
Registered: February 2005
phpCollab guest
I've noticed a bug with the linked content 'addfile.php'. And I think this also goes for a couple of other users in this forum.

It looks like between the code in addfile.php and the library.php there is a problem with the slashiness of file paths. Although I doubt this is a problem seen on Linux installations - it causes it to fail badly on Windows.

But considering it is quite difficult to debug the problem... I felt I better mention it on the Forum.

Assistance on this would be useful as it does make the ability to upload content impossible.
Upload problem - conclusive proof (?) [message #6590] Mon, 14 February 2005 21:20 Go to previous messageGo to next message
MacMonkey is currently offline  MacMonkey
Messages: 2
Registered: February 2005
phpCollab guest
Some stats:

phpCollab 2.5 rc1 (and checked 2.5rc2 and the problem is still there)
Windows 2000 Server, IIS 6 and PHP 4.x
Re: Upload problem [message #7349 is a reply to message #6590] Tue, 11 October 2005 00:43 Go to previous messageGo to next message
diego.discacciati is currently offline  diego.discacciati
Messages: 10
Registered: October 2005
phpCollab guest
I am struggling with FTP. My last attempt generated this error message:


Warning: ftp_mkdir(): C:/Inetpub/wwwroot/sitefolder/phpcollab/files/11: The filename, directory name, or volume label syntax is incorrect. in C:\Inetpub\wwwroot\sitefolder\phpcollab\includes\library.php on line 535

I am on a win2000 server, MYSQL 4.2, PHP4
ANY IDEA???
I read about some problems on syntax and windows servers with / and \ symbols. Might it be related to this?
I am really going crazy with this, I think I am running a fever!!! And I would really love to start using phpcollab!!!

[Updated on: Tue, 11 October 2005 03:04]

Report message to a moderator

Re: Upload problem [message #7355 is a reply to message #7349] Tue, 11 October 2005 18:42 Go to previous messageGo to next message
diego.discacciati is currently offline  diego.discacciati
Messages: 10
Registered: October 2005
phpCollab guest
Before I hit my head on the wall and pull off my hair (chest hair of course as there's not much left on the top of my head!!!)....
did anybody ever used the ftp file upload feature on a win server?

And I was looking at the company logo feature (I love the idea)... it is file uploading as well. Maybe it might be conceivable to incorporate it with the file attachment.
I mean, there is a secure location for file uploads and then the company logos are uploaded to an unsecured folder?
It's just a suggestion of course...
Re: Upload problem - conclusive proof (?) [message #7358 is a reply to message #6589] Wed, 12 October 2005 15:29 Go to previous messageGo to next message
fullo is currently offline  fullo
Messages: 390
Registered: January 2003
Location: faenza (ra)
phpCollab contributor
phpCollab Project Leader

directly from the wiki:

Assuming the disk is formated NTFS you need to assign "internet guest account" or "web anonymous user"
machinename\IUSR_machinename read/write permissions
recursively to the C:/Inetpub/wwwroot/sitefolder/phpcollab/files directory
Re: Upload problem - conclusive proof (?) [message #7360 is a reply to message #6589] Wed, 12 October 2005 15:43 Go to previous messageGo to next message
diego.discacciati is currently offline  diego.discacciati
Messages: 10
Registered: October 2005
phpCollab guest
I did it, I have an FTP user set up just for phpcollab.
No good.

As FTP was a dead issue, I tried to release the security and give"internet/guest" account full control (Read Write Modif) of the files folder switching to PHP. File upload doesn't seem to work with PHP either.
Do not get me wrong, I tested everything on my local machine (MAC) and everything was fine, but it seems that phpcollab just doesn't get along to well with Win Servers...
Re: Upload problem - conclusive proof (?) [message #7361 is a reply to message #6589] Wed, 12 October 2005 17:19 Go to previous messageGo to next message
fullo is currently offline  fullo
Messages: 390
Registered: January 2003
Location: faenza (ra)
phpCollab contributor
phpCollab Project Leader

I'm using it from a winXP server and the upload works fine.. ehm.. we've to investigate better the problem..

a doubt in include\setting.php what have you write for the $fullPath variable?

$fullPath = "c:\path\to\upload"; // right

or

$fullPath = "c:/path/to/upload"; // wrong

???
Re: Upload problem - conclusive proof (?) [message #7362 is a reply to message #6589] Wed, 12 October 2005 17:53 Go to previous messageGo to next message
diego.discacciati is currently offline  diego.discacciati
Messages: 10
Registered: October 2005
phpCollab guest
no luck.
At this point I will try to make a clean install, I messed too much with the code in this one. One thing, I already tried a clean install a couple of times, but it seems that even if I give read/write permissions to the phpcollab folder, I am not able to write the config settings with the automatic installation folder file. Everytime I have to write the settings file manually. The database on the contrary is compiled just fine. This is not normal...
Re: Upload problem - conclusive proof (?) [message #7363 is a reply to message #6589] Wed, 12 October 2005 18:05 Go to previous messageGo to next message
fullo is currently offline  fullo
Messages: 390
Registered: January 2003
Location: faenza (ra)
phpCollab contributor
phpCollab Project Leader

if you can use the CVS version
Re: Upload problem - conclusive proof (?) [message #7364 is a reply to message #6589] Wed, 12 October 2005 23:11 Go to previous messageGo to next message
diego.discacciati is currently offline  diego.discacciati
Messages: 10
Registered: October 2005
phpCollab guest
thank you Fullo (it feels strange to speak to you in English due to the fact that we are both italians!!!), I tried again but all I get when i try to install on my server is:

Warning: fwrite(): supplied argument is not a valid stream resource in C:\Inetpub\wwwroot\xxx\phpcollab\installation\setup.php on line 315

PANIC!
settings.php can't be written!

Warning: fclose(): supplied argument is not a valid stream resource in C:\Inetpub\wwwroot\xxx\phpcollab\installation\setup.php on line 323

I connected with pcanywhere to the server and downloaded phpcollab with the server and extracted it in the correct directory where I want it to be, gave full permissions to internet user but... nada (usually I ftp one copy to the correct directory from my local computer). Windows servers set up is quite messy and on mine I have so much stuff (it runs ASP/PHP different versions and upgrades and de-upgrades) that to troubleshoot something like this might take a lifetime.
I am sure that the problem is on my side. At this point I am in the process of getting a G5 server/MacOSX. I am sure everything will be easier. I only wanted my users to get to use phpcollab right away before the new server gets up online...
Re: Upload problem - conclusive proof (?) [message #7366 is a reply to message #6589] Thu, 13 October 2005 12:37 Go to previous messageGo to next message
fullo is currently offline  fullo
Messages: 390
Registered: January 2003
Location: faenza (ra)
phpCollab contributor
phpCollab Project Leader

for the settings.php issue:

http://www.php-collab.org/wiki/index.php?title=InstallTroubl e

Smile
Re: Upload problem - conclusive proof (?) [message #7367 is a reply to message #6589] Thu, 13 October 2005 16:12 Go to previous message
diego.discacciati is currently offline  diego.discacciati
Messages: 10
Registered: October 2005
phpCollab guest
Nop it was phpcollab v.2.5 (it already has the modification of the file).
It's really my server I think. See recently I upgraded from PHP4 to PHP5, then I had lots of problems with it, and I had to go to PHP4.3 with a couple of installation attempts. PHP libraries are in strange patched places. I got it working but it's working only on a sort of "it's a miracle it works" basis.
Previous Topic: Invoicing
Next Topic: Step 3 Install: Must be insert Database Server
Goto Forum:
  


Current Time: Sun May 19 02:34:30 CEST 2013

Total time taken to generate the page: 0.44673 seconds