cannot upload images

Locked

Started by socalstyles on 1 Feb 2008, 3:16 AM · Views: 6,813

Results 1 to 15 of 15
This thread is locked. New replies are disabled.
1 Feb 2008, 3:16 AM
#1
socalstyles avatar

socalstyles

New Zenner

Join Date:
Jan 2008
Posts:
6
Plugin Contributions:
0

cannot upload images

Warning: move_uploaded_file(D:/hosting/member/socalstyles/zen-cart/images/25greennike.jpg) [function.move-uploaded-file]: failed to open stream: Permission denied in D:\hosting\member\socalstyles\zen-cart\admin\includes\classes\upload.php on line 112

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move 'C:\WINDOWS\TEMP\php194B.tmp' to 'D:/hosting/member/socalstyles/zen-cart/images/25greennike.jpg' in D:\hosting\member\socalstyles\zen-cart\admin\includes\classes\upload.php on line 112

im getting this error when I try to upload a product to the website, the product uploads... just not the image with it.

:lamo:

3 Feb 2008, 3:07 AM
#2
socalstyles avatar

socalstyles

New Zenner

Join Date:
Jan 2008
Posts:
6
Plugin Contributions:
0

Re: cannot upload images

Please can someone help me!!!

3 Feb 2008, 3:39 AM
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: cannot upload images

socalstyles:

Warning: move_uploaded_file(D:/hosting/member/socalstyles/zen-cart/images/25greennike.jpg) [function.move-uploaded-file]: failed to open stream: Permission denied ...
**
Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move 'C:\WINDOWS\TEMP\php194B.tmp' to 'D:/hosting/member/socalstyles/zen-cart/images/25greennike.jpg'**

According to the messages, your server is not set up to allow uploading images to your /zen-cart/images folder. ie: "Permission denied" means ... permission was denied.

If you recall during installation, the /images/ folder needs to be marked as writable. Yours evidently is not.

https://www.zen-cart.com/tutorials/index.php?article=107
https://www.zen-cart.com/tutorials/index.php?article=9

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

9 Feb 2008, 4:12 AM
#4
socalstyles avatar

socalstyles

New Zenner

Join Date:
Jan 2008
Posts:
6
Plugin Contributions:
0

Re: cannot upload images

Ok, I gave full permissions to 3 different users to both the images directory and to the admin directory, but it still doesn't seem to work. Getting the same error message.

How to I check what user account zen-cart uses to upload pictures and files? So I know what user I have to give access to.

9 Feb 2008, 5:21 AM
#5
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: cannot upload images

Ok, I gave full permissions to 3 different users to both the images directory and to the admin directory,
Users????

Set the folder permissions to 777 or 775

Zen-Venom Get Bitten

11 Feb 2008, 6:24 AM
#6
socalstyles avatar

socalstyles

New Zenner

Join Date:
Jan 2008
Posts:
6
Plugin Contributions:
0

Re: cannot upload images

when i try to set permissions through dreamweaver it doesn't work... so I have to do it through my web hosts control panel in the site.

Isn't there a ftp user that the zencart uses... and some way to figure out what the name is?

11 Feb 2008, 6:29 AM
#7
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: cannot upload images

Isn't there a ftp user that the zencart uses... and some way to figure out what the name is?
No...FTP is controlled through your hosting account and usually your hosting account user name & pass

Zen-Venom Get Bitten

4 Mar 2008, 5:35 AM
#8
chrispopovic avatar

chrispopovic

New Zenner

Join Date:
Sep 2007
Posts:
15
Plugin Contributions:
0

Re: cannot upload images

I'm having this exact same problem.

I have lightbox installed. I also tried adding the add-on for Book Product Type but that didn't work. I re-installed zen lightbox.

I also manuall transferred the image files to the Images directory.

I can see the files. They're clearly in the folder. But my site won't show the images. Lightbox tries to draw the image but the wheel just keeps spinning.

It's freaking killing me.

Please help!

http://208.106.156.104/ZenCart

4 Mar 2008, 5:46 AM
#9
chrispopovic avatar

chrispopovic

New Zenner

Join Date:
Sep 2007
Posts:
15
Plugin Contributions:
0

Re: cannot upload images

Alrighty then. For some reason, the permissions on my images directory was the problem. I went into my control center and opened the permissions wide up on the images folder. Now ZenCart can upload just fine.

Doesn't make any sense. I have the .asp and my main user set up to write to the directory.

I've got to go back and make sure my usernames are consistent. Argh!!!

8 Mar 2008, 3:40 PM
#10
tenerifetom avatar

tenerifetom

New Zenner

Join Date:
Dec 2004
Posts:
69
Plugin Contributions:
0

Re: cannot upload images

can any one help with this error

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpVhDdbY' to '/home/tacktco/public_html/images/3drawfoxboxANDPOLESML.jpg' in /home/tacktco/public_html/admin/includes/classes/upload.php on line 112

the problem has only just stated we have been running the site fine till now

8 Mar 2008, 6:08 PM
#11
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: cannot upload images

chrispopovic:

Alrighty then. For some reason, the permissions on my images directory was the problem. I went into my control center and opened the permissions wide up on the images folder. Now ZenCart can upload just fine.

Doesn't make any sense. I have the .asp and my main user set up to write to the directory.

I've got to go back and make sure my usernames are consistent. Argh!!!
I've not used Lightbox so not familiar with its problems but I do know this: you will have problems if you leave your 'images' directory at 777. That is a common situation and most Hackers know it. Makes it easy for them to upload Hacker or Spam scripts.

The learning is in the doing.

Potent Products

31 Jan 2009, 7:23 PM
#12
autot avatar

autot

New Zenner

Join Date:
Jan 2009
Posts:
14
Plugin Contributions:
0

Re: cannot upload images

Can someone please walk me thru the basics of uploading image into our website. Id like to change the zencart next to the name. Ive even tried to delete it thru File manager stylesheet, but still there....Please help
http://autotrendclassics.com

31 Jan 2009, 7:29 PM
#13
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: cannot upload images

autot:

Can someone please walk me thru the basics of uploading image into our website. Id like to change the zencart next to the name. Ive even tried to delete it thru File manager stylesheet, but still there....Please help
http://autotrendclassics.com

I think this question has been answered several hundred times in the forum... Have you not been able to find the answer?

https://www.zen-cart.com/tutorials/index.php?article=125

https://www.zen-cart.com/tutorials/index.php?article=126

https://www.zen-cart.com/tutorials/index.php?article=133

20 years a Zencart User

31 Jan 2009, 7:30 PM
#14
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: cannot upload images

tenerifetom:

can any one help with this error

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpVhDdbY' to '/home/tacktco/public_html/images/3drawfoxboxANDPOLESML.jpg' in /home/tacktco/public_html/admin/includes/classes/upload.php on line 112

the problem has only just stated we have been running the site fine till now

Is it possible that your host has upgraded server software?

20 years a Zencart User

3 Apr 2009, 11:46 PM
#15
mibelloboutique avatar

mibelloboutique

New Zenner

Join Date:
Apr 2008
Posts:
30
Plugin Contributions:
0

Re: cannot upload images

I am getting this same message now.
Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpjT1yY0' to '/home/albrst23/public_html/images/IMG_2266 edited.jpg' in /home/albrst23/public_html/admin/includes/classes/upload.php on line 112

I uploaded several new images and then tried to change an image on one and now I can't upload any new images.

You can see here what I am talking about with the ballet slippers. I was adding other new products but now it won't work. I did nothing different.

http://mibelloboutique.com/index.php?main_page=index&cPath=38

Kristy