Forums / Cotonti / Support / Image upload error

The Stig
#1 2010-11-17 02:22
Anyone know why i get the following errors on new installation of cotonti 0.6.11 when i try to upload an image.

I have chmod'd datas and all sub folders to 0777 and enabled FSM in the PFS...

---------------------

Warning: mkdir() [function.mkdir]: Unable to access datas/users/1/ in /data/www/blah.co.uk/public_html/system/core/pfs/pfs.inc.php on line 181

Warning: mkdir() [function.mkdir]: Unable to access datas/thumbs/1/ in /data/www/blah.co.uk/public_html/system/core/pfs/pfs.inc.php on line 183

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to access datas/users/1/devil2_1.jpg in /data/www/blah.co.uk/public_html/system/core/pfs/pfs.inc.php on line 186

Warning: chmod() [function.chmod]: Unable to access datas/users/1/devil2_1.jpg in /data/www/blah.co.uk/public_html/system/core/pfs/pfs.inc.php on line 187

Warning: chmod() [function.chmod]: Unable to access datas/users/1/devil2_1.jpg in /data/www/blah.co.uk/public_html/system/core/pfs/pfs.inc.php on line 187

Warning: chmod() [function.chmod]: stat failed for datas/users/1/devil2_1.jpg in /data/www/blah.co.uk/public_html/system/core/pfs/pfs.inc.php on line 187

Warning: filesize() [function.filesize]: Unable to access datas/users/1/devil2_1.jpg in /data/www/blah.co.uk/public_html/system/core/pfs/pfs.inc.php on line 189

Warning: filesize() [function.filesize]: stat failed for datas/users/1/devil2_1.jpg in /data/www/blah.co.uk/public_html/system/core/pfs/pfs.inc.php on line 189

Thanks in advance...Stig

Added 1 hour 37 minutes later:

LoL...25 views and noone knows ??

If I say pretty please will it help :)
This post was edited by The Stig (2010-11-17 06:02, 13 years ago)
Kingsley
#2 2010-11-17 06:20
have you checked if

Max size for a single file in Personal File Space (KB) :
Max size of all files together in Personal File Space (KB) :

are correctly set?
The Stig
#3 2010-11-17 06:22
I have yes but i will go check again and prob change them...the problem i think is the first part where it won't mkdir yet i have all the permissions on 0777

Added 16 minutes later:

yup...file sizes ok...1024 and 10000... file i'm uploading is 22kb

Added 2 hours 28 minutes later:

Ok...so...it appears that it is not making the directory 1 in thumbs or users...as when i manually created these folders evrything was fine...but surely i should not have to do this, the folders should be created when the called to.

Any thoughts ?
This post was edited by The Stig (2010-11-17 09:17, 13 years ago)
Kort Online
#4 2010-11-17 15:03
Use normal file storage mode. FSM is buggy and gives you no advantage.
SED.by - создание сайтов, разработка плагинов и тем для Котонти
ez
#5 2010-11-17 16:01
@Kort: Is FSM buggy ??
Can you specify that, because i did not have any troubles??

Need to know because i am working on Myfiles (plug for 'new' pfs)
==- I say: Keep it EZ -==
The Stig
#6 2010-11-17 16:30
But to my knoweledge the buggy thing with pfs had been sorted...i did however find in pfs.inc that once the directories had been made then they were chmod'd to 0755 on three instances...tthis surely needs to be 0777. Now the problem still stands with the mkdir creating the directories.

Look at the first two errors !! and yes chmod 0777 on datas and all sub files.

Oh @ Kort...if you read the forums then you will know that the way cotonti is going is for the FSM methos and I for one welcome this as it is more structured.
ez
#7 2010-11-17 16:37
@stig:

depending on settings ??

	if (!is_dir($cfg['pfs_dir_user']))
	{ $is_moved &= mkdir($cfg['pfs_dir_user'], $cfg['dir_perms']); }
	if (!is_dir($cfg['th_dir_user']))
	{ $is_moved &= mkdir($cfg['th_dir_user'], $cfg['dir_perms']); }
==- I say: Keep it EZ -==
The Stig
#8 2010-11-17 19:05
THis is becoming frustrating...never had this problem before...this is a clean installation with all settings appearing to be correct

Damn thing just will not perform the mkdir ?
Kort Online
#9 2010-11-17 19:23
# The Stig :Oh @ Kort...if you read the forums then you will know that the way cotonti is going is for the FSM methos and I for one welcome this as it is more structured.
I read the forums daily but it is for the 1st time that I hear Cotonti is going towards FSM. It is actually moving away from the PFS. Btw, what is so structural in it? The way files are located physically gives you no advantages, since virtual folder is the only thing the user sees. I assume FSM may be affected by your server security settings, otherwise other people using it would have reported same probs. So you might have to try something else (play wit settings, test locally, use other host) and compare the results.
SED.by - создание сайтов, разработка плагинов и тем для Котонти
The Stig
#10 2010-11-17 19:27
but i have had a seditio version running fine with no probs...just dropped all that snd did fresh install of cotonti and it dont work.

P'S' Sorry Kort I wasn't meaning to be rude :( I'm just frustrated with this problem.
Kort Online
#11 2010-11-17 19:33
I just tested FSM on a fresh Cotonti install, and everything worked perfectly well with default settings. You definitely have to contact the support -- I am sure the problem can be fixed easily.
SED.by - создание сайтов, разработка плагинов и тем для Котонти
The Stig
#12 2010-11-17 19:43
So...why did this work perfectly with seditio ...I havn't changed any server settings

And why when i create the folders manually everything works ?

Added 7 minutes later:

Oh and also it lets me create folders in the pfs but it won't create the userfolder 1 in datas/users

which in turn is why the image wont upload.
This post was edited by The Stig (2010-11-17 20:04, 13 years ago)
ez
#13 2010-11-17 20:43
see: http://www.cotonti.com/docs/en/admin/install_guide
Look at step 7 !

and when using an ftp client... does al subfolders inherit rights ??? (look at that too)

maybe forgot this one ???


@Kort and @stig
FSM will be activated in the plugin urlkiller and me are building.. (and the way that I am making it now, FSM on or off does not matter any more).
We will use virtual folderstructure so not a real one.

When using a ftp client a folder per user is much more organized, but for the frontend webinterface it does not matter...
==- I say: Keep it EZ -==
The Stig
#14 2010-11-17 21:04
Checked and rechecked several times...datas and all sub folders are 777

Added 30 minutes later:

Could it be the way that I have set up ezgallery ?

As there is no documentation on where to put each file/folder I just put them where I thought they should go. It says its running in plugins and when i manually created the folders 1 in users/thumbs everything worked fine slideshow the lot.

Added 2 days later:

Ouch !! ok...when I chmod the public_html directory to 0777 everything works, but surely this is a big security issue ?
This post was edited by The Stig (2010-11-20 20:12, 13 years ago)
MIHDev
#15 2010-11-20 22:11
Check the file paths or the config of the plugin, if you need to CHMOD 777 on Public_Html then it may be that it is trying to upload there and thus is being denied.
[b]Know the question and you will be far more likely to get an answer.[/b]