A A A

Please consider registering
guest

Log In Register

Register | Lost password?
Advanced Search:

— Forum Scope —



— Match —



— Forum Options —




Wildcard usage:
*  matches any number of characters    %  matches exactly one character

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS
Users unable to uplaod images - File manager permissions?
Sep 8, 2010
8:50 am
Justin
Guest

Hi there,

Just started playing with Simple:Press fantastic, however I am seeing the issue with the upload also, it fails to create the directory structure and therefore can't upload, within the settings SP is happy that the directory is writeable (set as 777 for testing) however will not create this, if you create the structure manually no problems, everything works as expected, this is a brand new install.

 

Any thoughts?

 

J

Sep 8, 2010
11:49 am

SP Master
Forum Posts: 22240
Member Since:
Nov 9, 2008
Offline

To be perfectly honest I tend to suggest that it might be quicker and more informative to ask your host support if they can spot any reason why the folders can not be created. Most of the reasons I have come across usually seem to stem from 'hosting' based permissions.

Unless anyone else has any pointers of course…

Yellow Swordfish
Sep 8, 2010
1:17 pm
Justin Walker
Guest

Hi there,

 

Thanks for this, this is actually a centos system i've built as a testing platform, am actually a system admin (although not unix expert) will have a look more at the php logs tomorrow to see if I can spot anthing in there, but is 100% a createtion issue. Am happy if it helps for you guys to login and have a look, apart from this one issue product looks fantastic…

 

Cheers

 

Justin

Sep 8, 2010
1:44 pm
Justin Walker
Guest

Hi this may help find the issue, it looks like if you create the user folder, then the script is able to create the next directory down, it appears without been able to look properly at the server that the script is trying (guess here) to create 2 directories at once i.e. testuser/signature if testuser already exists then it can create signature

 

Does that make sense or help?

 

Justin

Sep 8, 2010
1:55 pm

SP Master
Forum Posts: 22240
Member Since:
Nov 9, 2008
Offline

..and it should try and create one called _thumbs as well although it may do that later. Yes – please do take a look at the logs – hopefully something might pop out of there to explain it.

Yellow Swordfish
Sep 8, 2010
2:44 pm
Justin Walker
Guest

Will let you know tomorrow, can you tell me which file does the creation of the file system? May help to look at how this does this function

 

Cheers

 

J

Sep 8, 2010
2:47 pm

SP Master
Forum Posts: 22240
Member Since:
Nov 9, 2008
Offline

it's the top function in the fm-support.php file. Pretty basic stuff.

Yellow Swordfish
Sep 8, 2010
8:56 pm
Jeff Haynes
Guest

if I modify the createfolder function and the mkdir call to the following it works..

 

@mkdir($dir, $perm,true)

 

from

@mkdir($dir, $perm)

 

Here is the function.

 

function sffm_createfolder($dir,$perm)
{
if(@mkdir($dir, $perm,true))
{
chmod($dir, $perm);
return true;
} else {
return false;
}
}

Thoughts?

 

-Jeff

Sep 8, 2010
9:49 pm

SP Master
Forum Posts: 23688
Member Since:
Dec 10, 2006
Offline

hmmm… interesting… I wouldnt have thought that was an issue and a use for the recursive create, but after some research on the net, it does seem like that could help here…

I will open up a ticket and take a look at if that should be a permanent fix.

Thanks for the help!

Sep 9, 2010
4:34 am
Justin
Guest

Yep spot on, needs recursive (had a feeling)

 

Fixed with the additon of True as above :-)

 

J

Forum Timezone: America/Chicago

Most Users Ever Online: 444

Currently Online: SPQC, joelrob
55 Guest(s)

Currently Browsing this Page:
3 Guest(s)

See All Online Activity

Top Posters:

-Radio-: 1251

Lee H: 606

Luffer: 535

Conrad_Farlow: 502

jim: 478

neon: 263

ovizii: 240

Tal: 240

Member Stats:

Guest Posters: 2626

Members: 7363

Moderators: 1

Admins: 2

Forum Stats:

Groups: 5

Forums: 16

Topics: 10898

Posts: 79583

Moderators: Brandon C (162)

Administrators: Yellow Swordfish (22240), Mr Papa (23688)