Forum

Welcome to ProjeQtOr new Forum. We migrated old forum to the new website.
You will find all your posts here, with your usual account.
Just one point : you’ll have to reinitialize your password. Use “Lost password” feature.

[CLOSED]Error when ...
 
Notifications
Clear all

[CLOSED]Error when upload file to Documents

9 Posts
2 Users
0 Reactions
9,445 Views
Vincent
(@vdeverre)
Posts: 38
Active Member
Topic starter
 
[#1050]

Hi.

When I upload a file to Documents I have an error:
2013-03-26 17:33:11 ** ERROR ** cause = move_uploaded_file(../files/documents//Product/Exploitation/droits.ods.16): failed to open stream: Permission denied

As you see, there is 2 slash if then path !

Can you fix it ?


 
Posted : 26 Mar 2013 19H37
(@babynus)
Posts: 14952
Member Admin
 

Hi,

The double slash is no issue.
Your issue is that PHP user does not have write rights to target folder.


 
Posted : 26 Mar 2013 19H48
Vincent
(@vdeverre)
Posts: 38
Active Member
Topic starter
 

Before update to 3.2.2 I can do upload file.

I can upload file from ticket or task, but not from the Documennts module.
In the input file I see c:fakepath, it's not the same input file that Ticket or Task.


 
Posted : 27 Mar 2013 10H33
Vincent
(@vdeverre)
Posts: 38
Active Member
Topic starter
 

This is a bug !

When subdirectory does not exists into '../files/documents/' it created with this right: dr----x--t
and not with this right: drwxr-xr-x

So mkdir and move_upload_file does not write into this directory.

When I change right to 'drwxr-xr-x' all is OK.

I'm under Ubuntu Linux.


 
Posted : 27 Mar 2013 11H45
Vincent
(@vdeverre)
Posts: 38
Active Member
Topic starter
 

Bug found :silly:

Edit ./model/Document.php
Line 216
replace: mkdir($newLoc,'0777',true);
with: mkdir($newLoc,0777,true);


 
Posted : 27 Mar 2013 11H55
(@babynus)
Posts: 14952
Member Admin
 

Hi,
I thought this issue was fixed in V3.2.2.

Did you get V3.2.2 soon on monday 25th ?
As I had issues in deploying the version, maybe you got a wrong version.
Can you try and get it again ?


 
Posted : 27 Mar 2013 12H38
Vincent
(@vdeverre)
Posts: 38
Active Member
Topic starter
 

I downloaded the 3.2.2 on monday 25th at 09:44.

I extract again my archive and the bug is here.


 
Posted : 27 Mar 2013 12H49
(@babynus)
Posts: 14952
Member Admin
 

The good version was deployed about 3PM GMT.
Sourceforge reported no download for the version, so I thought no one got the wrong.
But sourceforge stats may not have been up to date.

Could you try and download it again from source ?


 
Posted : 27 Mar 2013 12H53
Vincent
(@vdeverre)
Posts: 38
Active Member
Topic starter
 

I have downloaded archive and it is ok.

Thanks


 
Posted : 27 Mar 2013 13H30
Share:

Scroll to Top