Guest Posted May 23, 2006 Posted May 23, 2006 Greetings , This is the first time I have posted here so sorry if I go on :-" I have been running our site for about 12months now and have never come across this problem before and am hopeful some one here will know the answer. The problem is when I try to add a new item to the catalogue the discription is ok but I get an error message ( file upload not saved) when adding the image. Even when I upload the image file to the images folder via ftp or my host control panel and point to it in the admin the error message is the same and the file goes missing, so some thing must be removing it I guess :'( Any one know whats going on ? The host Tech team are looking into it but as yet have no answers, so any help would be great. Many thanks Mike
Guest Posted May 24, 2006 Posted May 24, 2006 Greetings , This is the first time I have posted here so sorry if I go on :-" I have been running our site for about 12months now and have never come across this problem before and am hopeful some one here will know the answer. The problem is when I try to add a new item to the catalogue the discription is ok but I get an error message ( file upload not saved) when adding the image. Even when I upload the image file to the images folder via ftp or my host control panel and point to it in the admin the error message is the same and the file goes missing, so some thing must be removing it I guess :'( Any one know whats going on ? The host Tech team are looking into it but as yet have no answers, so any help would be great. Many thanks Mike Hi again, Any one got any ideas, is this a common problem ? I would guess not as I can't find any reference to it in this forum I am getting desperate now as it has been going on for several days and I can't add stock to our store untill it is fixed. PLEASE HELP !!!!!!!! Regards Mike
vazash Posted May 24, 2006 Posted May 24, 2006 Hi again, Any one got any ideas, is this a common problem ? I would guess not as I can't find any reference to it in this forum I am getting desperate now as it has been going on for several days and I can't add stock to our store untill it is fixed. PLEASE HELP !!!!!!!! Regards Mike Check if you have enough disk space to upload the image file. Or have you run out..
Guest Posted May 24, 2006 Posted May 24, 2006 Check if you have enough disk space to upload the image file. Or have you run out.. Hi vazash, Thanx for your responce. There is plenty of disc space and to make sure I have removed old files. This is truely an odd one :blink: . I have even replace the admin files with fresh copy's known to be fine made no difference. God this is driving me round the bend :'(
vazash Posted May 25, 2006 Posted May 25, 2006 Hi vazash, Thanx for your responce. There is plenty of disc space and to make sure I have removed old files. This is truely an odd one :blink: . I have even replace the admin files with fresh copy's known to be fine made no difference. God this is driving me round the bend :'( your right this is a strange problem....im just clutching at straws here, but what about file extension...is it a gif file or jpg file...or is it something different...if it is something other than these two, try changing it to a gif or jpg, maybe then it will upload. Or when using the admin panel, see if you can directly access the file to see if it is uploaded...i.e. http://yourdomain.com/images/nameoffile.ext
Geotex Posted May 25, 2006 Posted May 25, 2006 Check your image directory permissions. Your tech support may have done a restore or security update and changed the image directory to 644 or something lower. Use your control panel or ftp program to chmod the directory to 755 GEOTEX from Houston, TX (George)
Emac Posted May 25, 2006 Posted May 25, 2006 I am having the same problem. I have checked my permissions, tried using a url and uploading from my computer, resizing the picture and anything else I could think of. I get this error when I try to upload from my computer: Warning: move_uploaded_file() [function.move-uploaded-file]: open_basedir restriction in effect. File(/var/tmp/phpYL5Gfh) is not within the allowed path(s): (/usr/home/emac:/usr/lib/php:/usr/local/lib/php:/tmp) in /usr/home/emac/public_html/catalog/admin/includes/classes/upload.php on line 91 Warning: move_uploaded_file() [function.move-uploaded-file]: open_basedir restriction in effect. File(/var/tmp/phpYL5Gfh) is not within the allowed path(s): (/usr/home/emac:/usr/lib/php:/usr/local/lib/php:/tmp) in /usr/home/emac/public_html/catalog/admin/includes/classes/upload.php on line 91 Warning: move_uploaded_file(/var/tmp/phpYL5Gfh) [function.move-uploaded-file]: failed to open stream: Operation not permitted in /usr/home/emac/public_html/catalog/admin/includes/classes/upload.php on line 91 Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/var/tmp/phpYL5Gfh' to '/usr/home/emac/public_html/catalog/images/macs145.jpg' in /usr/home/emac/public_html/catalog/admin/includes/classes/upload.php on line 91 Anyone else ever had this problem? What is the solution?
Geotex Posted May 25, 2006 Posted May 25, 2006 In your admin panel, configuration, cache try removing the leading / from cache directory = /tmp/ change to tmp/ This may or may not clear up the problem, but the errors tend to suggest that osCommerce cannot find the tmp directory. If this fails, you probably can specify a directory off your home page to use as a temp. directory and insert that name in place of the tmp/ path. GEOTEX from Houston, TX (George)
♥Vger Posted May 25, 2006 Posted May 25, 2006 If that doesn't work then try just tmp with no slash before or after. If that doesn't work then look in Tools --> Server Info and find File Upload - and check to see if it is allowed. If it isn't then you'll need to change hosts, becauase File Upload is necessary for osCommerce. Vger
Emac Posted May 25, 2006 Posted May 25, 2006 I have tried all of the above sugestions, checked to make sure that uploads are on, and even created a new directory and made sure the permissions were set right. I still get the error that shows this is the problem: in /usr/home/emac/public_html/catalog/admin/includes/classes/upload.php on line 91 Line 91 says this: function save() { I am wondering if something is wrong with that line of code.
Geotex Posted May 25, 2006 Posted May 25, 2006 Files have been known to get corrupted during an upload, and to have something missed if you did some changes for a contribution you installed. If it did work, but now doesn't, then the problem may well be the file. You might do the first thing that should have been done, which is to upload a fresh, preferably original unaltered copy of the file. If that doesn't work, and the upload for images never worked, I would have to second Vger's opinion GEOTEX from Houston, TX (George)
stargirlnine Posted May 25, 2006 Posted May 25, 2006 Greetings , This is the first time I have posted here so sorry if I go on :-" I have been running our site for about 12months now and have never come across this problem before and am hopeful some one here will know the answer. The problem is when I try to add a new item to the catalogue the discription is ok but I get an error message ( file upload not saved) when adding the image. Even when I upload the image file to the images folder via ftp or my host control panel and point to it in the admin the error message is the same and the file goes missing, so some thing must be removing it I guess :'( Any one know whats going on ? The host Tech team are looking into it but as yet have no answers, so any help would be great. Many thanks Mike You know, I had a similar issue using the admin in internet explorer. so just for fun I downloaded firefox and it works seemlessly.
Guest Posted May 26, 2006 Posted May 26, 2006 your right this is a strange problem....im just clutching at straws here, but what about file extension...is it a gif file or jpg file...or is it something different...if it is something other than these two, try changing it to a gif or jpg, maybe then it will upload. Or when using the admin panel, see if you can directly access the file to see if it is uploaded...i.e. http://yourdomain.com/images/nameoffile.ext Hi vazash Sorry it took so long to get back to you but wife is sick so can only get on here every now and again. Right the file extention is jpg and I can access the file once uploaded via ftp by typing in the url. But after a while the file just vanishes. also if after ftp upload I try to point the descripion to the image location by typing in the path the save button won't work, very odd :'(
Guest Posted May 26, 2006 Posted May 26, 2006 Check your image directory permissions. Your tech support may have done a restore or security update and changed the image directory to 644 or something lower. Use your control panel or ftp program to chmod the directory to 755 Hi Geotex, Thanx for your responce The image directory is writeable with the chmod at 777
Geotex Posted May 26, 2006 Posted May 26, 2006 A little quirk with some servers and osCommerce is that if you already have a file in the path, (ie: mypicture.gif) then use osCommerce to upload the file, the file will be changed to a 0 byte length and nothing will get uploaded. Result is the same as never having uploaded to begin with. However, your problem still sounds more like and ownership and file properties problem. If the files disappear after ftp upload and no other activity, that is a whole different matter. The server cache is not writing to the hard drive for some reason, and the uploads disappear when the server clears cache. That is a tech support problem. hth GEOTEX from Houston, TX (George)
Guest Posted May 26, 2006 Posted May 26, 2006 Files have been known to get corrupted during an upload, and to have something missed if you did some changes for a contribution you installed. If it did work, but now doesn't, then the problem may well be the file. You might do the first thing that should have been done, which is to upload a fresh, preferably original unaltered copy of the file. If that doesn't work, and the upload for images never worked, I would have to second Vger's opinion Hi Goetex, yes files have been known to become corrupt while uploading so the first thing I did was infact upload a fresh original copy with same results. Like I said in the first post here I have been running our site for about 12 months now and have about 400 items In our shop all of which have uploaded without trouble this problem has started over the last 4 - 5 weeks I have to say it has our hosts techys scratching thier heads as well :P
Guest Posted May 26, 2006 Posted May 26, 2006 A little quirk with some servers and osCommerce is that if you already have a file in the path, (ie: mypicture.gif) then use osCommerce to upload the file, the file will be changed to a 0 byte length and nothing will get uploaded. Result is the same as never having uploaded to begin with. However, your problem still sounds more like and ownership and file properties problem. If the files disappear after ftp upload and no other activity, that is a whole different matter. The server cache is not writing to the hard drive for some reason, and the uploads disappear when the server clears cache. That is a tech support problem. hth Hi Geotex, Thanx for the time and thought you and all the others are giving this problem. I have to say I have thought right from the start the problem lies with hosts and not osc. As I think I mentioned earlier I have replaced all the admin files and folders on the host in case some thing had become corrupt while I have been away and not even that made any difference The saga continues :blink:
Guest Posted May 26, 2006 Posted May 26, 2006 You know, I had a similar issue using the admin in internet explorer. so just for fun I downloaded firefox and it works seemlessly. Hi stargirlnine, Thanx for the info I tried that tonight but same old thing error file upload not saved <_<
Geotex Posted May 26, 2006 Posted May 26, 2006 This was a know bug in php from ver 4.3.2, not fixed until 4.3.5. Could it be that somehow an older (or maybe newer-older?) version of php somehow got installed on your servers? http://bugs.php.net/bug.php?id=24282 GEOTEX from Houston, TX (George)
Geotex Posted May 26, 2006 Posted May 26, 2006 waited too long to edit..... also if you are on a virtual server (most likely) you probably do not have permissions to write to files below your root directory, making it important to set a temporary dir at or above your root access and change the paths in your admin panel to point to it. Very few virtual server installations will still permit a program to write to a path out side of the web root directory, for obvious security reasons, and many that still do are closing those holes. hth GEOTEX from Houston, TX (George)
Guest Posted May 26, 2006 Posted May 26, 2006 waited too long to edit..... also if you are on a virtual server (most likely) you probably do not have permissions to write to files below your root directory, making it important to set a temporary dir at or above your root access and change the paths in your admin panel to point to it. Very few virtual server installations will still permit a program to write to a path out side of the web root directory, for obvious security reasons, and many that still do are closing those holes. hth Hi George, Sorry for taking so long to answer but my last post to you was made at 2am here so I had to get some zzzz's. Surely if there was a bug in my installation this problem would have appeared before now ? as like I said things have been great the the last 12 months no problems at all then I go away for 4-5 weeks (forced by wifes ill health) when I get back and try to add new stock we run into this problem :angry: Really does not make any sence. No one has been near the admin while I have been gone, I don't understand what has happened one day we will get it working again :huh:
kppyeung Posted May 28, 2006 Posted May 28, 2006 hi there, may be the file size of your image is too big. that happened to me too. I can upload small file size image with no problem hope this will help. yeung
dittones Posted May 28, 2006 Posted May 28, 2006 Let me add my two bits...Miken have you tried using the File Manager in your tools box to upload an image...This will give you the bite size and ring permissions of the file. After you upload an image then download the image and view the image on you home system...The file manager works ok...Lets seperate the problem to track down the solutions... Roman
Guest Posted May 28, 2006 Posted May 28, 2006 Let me add my two bits...Miken have you tried using the File Managerin your tools box to upload an image...This will give you the bite size and ring permissions of the file. After you upload an image then download the image and view the image on you home system...The file manager works ok...Lets seperate the problem to track down the solutions... Roman Hi Roman, Thanx for your reply. I have tried using my file manger and as with all the other ways the file uploads ok so I can view it in my browser but as soon as I try to link the image to the discription in the admin by typing the path to the image rather than browsing for it (as browsing only gives me the opption to upload from my files on my hard drive) the preview button will not work, I cannot save it I can click it for ever nothing happens so I have to click cancel to get out. Then if I type the image file into my broswer I get File not found, and sure enough it has gone from the file manager. If I try browsing for the file while adding a new product when I click preview I get the error message file upload not saved. So actualy I can upload image files in a couple of ways but no way can I link them to the discription. Does that make any sence to you cos it is sure doing my head no favours :'( Mike Slowly loosing the will to live
Guest Posted May 28, 2006 Posted May 28, 2006 hi there, may be the file size of your image is too big. that happened to me too. I can upload small file size image with no problem hope this will help. yeung Hi yeung, Thanx for your reply, I have tried all sizes and nothing makes any difference,but thanx all the same Mike
Recommended Posts
Archived
This topic is now archived and is closed to further replies.