Page 1 of 1

uploading images

Posted: Sun Oct 09, 2005 12:16 pm
by saltydog
Trying to upload an image from "Files" menu in admin, I got the following error messages:

Warning: move_uploaded_file(/daten/www/ubuntu-it/www/uploads/images//circle.jpg): failed to open stream: Permission denied in /daten/www/ubuntu-it/www/admin/imagefiles.php on line 83

Warning: move_uploaded_file(): Unable to move '/tmp/php0cehLn' to '/daten/www/ubuntu-it/www/uploads/images//circle.jpg' in /daten/www/ubuntu-it/www/admin/imagefiles.php on line 83

Warning: Cannot modify header information - headers already sent by (output started at /daten/www/ubuntu-it/www/admin/imagefiles.php:83) in /daten/www/ubuntu-it/www/lib/classes/class.admintheme.inc.php on line 158

Warning: Cannot modify header information - headers already sent by (output started at /daten/www/ubuntu-it/www/admin/imagefiles.php:83) in /daten/www/ubuntu-it/www/lib/classes/class.admintheme.inc.php on line 161

Warning: Cannot modify header information - headers already sent by (output started at /daten/www/ubuntu-it/www/admin/imagefiles.php:83) in /daten/www/ubuntu-it/www/lib/classes/class.admintheme.inc.php on line 164

Warning: Cannot modify header information - headers already sent by (output started at /daten/www/ubuntu-it/www/admin/imagefiles.php:83) in /daten/www/ubuntu-it/www/lib/classes/class.admintheme.inc.php on line 165

Warning: Cannot modify header information - headers already sent by (output started at /daten/www/ubuntu-it/www/admin/imagefiles.php:83) in /daten/www/ubuntu-it/www/lib/classes/class.admintheme.inc.php on line 168

Warning: Cannot modify header information - headers already sent by (output started at /daten/www/ubuntu-it/www/admin/imagefiles.php:83) in /daten/www/ubuntu-it/www/lib/classes/class.admintheme.inc.php on line 173

Re: uploading images

Posted: Sun Oct 05, 2008 10:58 pm
by newagekat
Hi:

I'm on v1.4.1 "spring garden".  I recently moved to a Linux server running PHP5 in CGI mode.  In admin, I tried to delete an image in Image Manager and got the same errors.  Any ideas?  i did double check that /lib/function.php was uploaded.  I have the same issue when trying to upload.

I recently uploaded all my clients and have no issue, what am I missing or what did I forget?

any help is appreciated.

thank you.

Karima

Re: uploading images

Posted: Mon Oct 06, 2008 12:20 am
by robsta
Karima – Check your permissions on the upload folder (777) and folders and images contained therin...

saltydog –

Code: Select all

Warning: move_uploaded_file(/daten/www/ubuntu-it/www/uploads/images//circle.jpg): failed to open stream: Permission denied in /daten/www/ubuntu-it/www/admin/imagefiles.php on line 83
means you don't have permision to upload to that folder... the images//circle.jpg means you have the file inside a foder with no name... maybe this is what's confusing the script?

R

Re: uploading images

Posted: Mon Oct 06, 2008 2:19 am
by newagekat
robsta wrote: Karima – Check your permissions on the upload folder (777) and folders and images contained therin...

saltydog –

Code: Select all

Warning: move_uploaded_file(/daten/www/ubuntu-it/www/uploads/images//circle.jpg): failed to open stream: Permission denied in /daten/www/ubuntu-it/www/admin/imagefiles.php on line 83
means you don't have permision to upload to that folder... the images//circle.jpg means you have the file inside a foder with no name... maybe this is what's confusing the script?

R
Thanks Robsta, but that's the first thing I did.  Because the server is running php as a CGI, the write permission folders are automatically set to 755.

I must have missed a file or one did not get overwritten.  But when I check the date of the files, they all seem current.  I'm stumped, cause all my other upgrades on the same server worked fine.

Help, please and thanks.

Karima

Re: uploading images

Posted: Mon Oct 06, 2008 3:01 pm
by jack4ya
I see a double slash

uploads/images//circle.jpg...

Maybe in the config file or paths not correct? Not sure what, but worth checking?

Re: uploading images

Posted: Tue Oct 07, 2008 12:13 am
by newagekat
newagekat wrote:
robsta wrote: Karima – Check your permissions on the upload folder (777) and folders and images contained therin...

R
Thanks Robsta, but that's the first thing I did.  Because the server is running php as a CGI, the write permission folders are automatically set to 755.

I must have missed a file or one did not get overwritten.  But when I check the date of the files, they all seem current.  I'm stumped, cause all my other upgrades on the same server worked fine.

Help, please and thanks.

Karima
R:

i fixed the permissions.  I now have this error:
Warning: unlink(/home/*/public_html/uploads/images/projects/ayli.gif) [function.unlink]: Permission denied in /home/*/public_html/lib/filemanager/ImageManager/Classes/Files.php on line 105

permissions are correct, so what could this be?  thanks for your patience.

Re: uploading images

Posted: Tue Oct 07, 2008 7:32 am
by robsta
i fixed the permissions.  I now have this error:
Warning: unlink(/home/*/public_html/uploads/images/projects/ayli.gif) [function.unlink]: Permission denied in /home/*/public_html/lib/filemanager/ImageManager/Classes/Files.php on line 105
Okay unlink() deletes files... but can you upload to the uploads/images/projects/ folder? If not check those permissions again and make sure the web user has access

also what version of php/webserver combo are you running? and does your web account have filesystem access?

R

Re: uploading images

Posted: Tue Oct 07, 2008 3:27 pm
by newagekat
robsta wrote: Okay unlink() deletes files... but can you upload to the uploads/images/projects/ folder? If not check those permissions again and make sure the web user has access
also what version of php/webserver combo are you running? and does your web account have filesystem access?
R
R:
Server details are:
Apache version 1.3.39 (Unix)
PHP version 5.2.5
MySQL version 4.1.22-standard
Operating system Linux

it is running PHP as CGI  I have access either via FTP or cPanel. 

When I try to upload via image manager in admin, I get:
Warning: move_uploaded_file(/home/*/public_html/uploads/images/projects//ayli.jpg) [function.move-uploaded-file]: failed to open stream: Permission denied in /home/*/public_html/admin/imagefiles.php on line 83

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpw2e45Y' to '/home/*/public_html/uploads/images/projects//ayli.jpg' in /home/*/public_html/admin/imagefiles.php on line 83

Warning: Cannot modify header information - headers already sent by (output started at /home/*/public_html/admin/imagefiles.php:83) in /home/*/public_html/lib/classes/class.admintheme.inc.php on line 161

Warning: Cannot modify header information - headers already sent by (output started at /home/*/public_html/admin/imagefiles.php:83) in /home/*/public_html/lib/classes/class.admintheme.inc.php on line 164

Warning: Cannot modify header information - headers already sent by (output started at /home/*/public_html/admin/imagefiles.php:83) in /home/*/public_html/lib/classes/class.admintheme.inc.php on line 167

Warning: Cannot modify header information - headers already sent by (output started at /home/*/public_html/admin/imagefiles.php:83) in /home/*/public_html/lib/classes/class.admintheme.inc.php on line 168

Warning: Cannot modify header information - headers already sent by (output started at /home/*/public_html/admin/imagefiles.php:83) in /home/*/public_html/lib/classes/class.admintheme.inc.php on line 171

Warning: Cannot modify header information - headers already sent by (output started at /home/*/public_html/admin/imagefiles.php:83) in /home/*/public_html/lib/classes/class.admintheme.inc.php on line 176

When I try via cpanel, it shows upload compete, but when i go back to the folder list, the new file is not there.  I've even renamed the file to avoid any overwriting, still nothing.

when I try uploading with FTP, I get:
Could not upload item
Server said:
OK. Current directory is /public_html/uploads/images/project

do you think I should re-upload all the files for this version and rerun the install/upgrade? 
I don't get it.

kp

Re: uploading images

Posted: Tue Oct 07, 2008 3:45 pm
by newagekat
R:

I can upload to uploads/images/ directory, but not to sub directories.  I checked and those folders have correct permissions.  Could file manager be interfering with this function?

Re: uploading images

Posted: Thu Oct 09, 2008 1:35 am
by robsta
You're getting the same answer no matter which way you upload... so it's definitely a server permissions issue... you need to talk to the hosting company and get them to check that folders created by a web user or ftp or via cpanel have the same permissions applied to them... and that the folders can be seen by the web group and the ftp group and the cpanel goup etc...

I'm guessing CPanel is causing the problem as I have it here on one of my servers and we had an issue where if an ftp user created a folder the web user couldn't see it.

Oh and I'd tackle the hosting provider with the cPanel problem first... don't mention cmsms as they'll pull the 'not my problem card'... you'll probably find that when they fix the cPanel issue the cmsms one will happen too as they are both web based apps.

R