Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
d70photographie  
#1 Posted : Friday, November 12, 2010 5:17:43 AM(UTC)
d70photographie

Rank: Newbie

Groups: Member
Joined: 1/9/2010(UTC)
Posts: 5

With Joomla and Virtuemart, the component Aurigma Photo Order creates a new folder in the "Upload" folder with permission 755. The pictures can not upload this folder with the function pre upload.

If you change the rights to 777 this works.

How to change the default permissions.

Thank's

Philippe Dougoud
Dmitry.Obukhov  
#2 Posted : Sunday, November 14, 2010 11:37:41 PM(UTC)
Dmitry.Obukhov

Rank: Advanced Member

Groups:
Joined: 5/29/2010(UTC)
Posts: 1,310

Thanks: 8 times
Was thanked: 111 time(s) in 111 post(s)
Hi Phillipe,

Please go to administrator/components/com_aurigmaphotoorder/classes/, and open aurigmaphotoorder.php file. Then find the handleUpload method, and put this line to the beginning of it:
Code:
 $ Oldumask = umask (0000);

The line:
Code:
umask ($ oldumask);
should stay in the end of the method.

Try this way, and please let me know about the result.
Best regards,
Dmitry Obukhov
Technical Support. Aurigma, Inc.
d70photographie  
#3 Posted : Monday, November 15, 2010 5:48:13 AM(UTC)
d70photographie

Rank: Newbie

Groups: Member
Joined: 1/9/2010(UTC)
Posts: 5

Dancing
The new code of aurigmaphotoorder.php, function handleUpload() is :

global $mainframe;
$fileCount = JRequest::getVar('FileCount', 0, 'POST');
$Oldumask = umask(0000);
...
....
....
umask($Oldumask);
}

The folder created has permission 0777.

Thank's
Best regards.

Philippe Dogoud

Edited by user Monday, November 15, 2010 7:24:48 AM(UTC)  | Reason: Not specified

Dmitry.Obukhov  
#4 Posted : Monday, November 15, 2010 8:52:33 AM(UTC)
Dmitry.Obukhov

Rank: Advanced Member

Groups:
Joined: 5/29/2010(UTC)
Posts: 1,310

Thanks: 8 times
Was thanked: 111 time(s) in 111 post(s)
Hi Phillipe,

I am glad that the problem has been resolved.

Please let me know if you have any additional questions or problems.
Best regards,
Dmitry Obukhov
Technical Support. Aurigma, Inc.
d70photographie  
#5 Posted : Monday, November 15, 2010 9:29:25 AM(UTC)
d70photographie

Rank: Newbie

Groups: Member
Joined: 1/9/2010(UTC)
Posts: 5

Hello,

The problem is the same with the function processOrder($order_id).
I made the same changes.
I'm still doing tests and will let you know

Best regards
Ph. Dougoud
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.