peekaboo Posted December 11, 2004 Posted December 11, 2004 Before I hang myself (or worse) can someone please help me with this. I have inherited an oscommerce site and I can't upload an image for a new product ( I have many to change). The permission is set to 777 for the image file. When I browse to upload the file, the browser functions as if it is sending it but I can't seem to find it on the site. I've looked in the image folder and the tmp folder. I've also tried typing in the filename directly(next to browse in the product edit window) but I end up nowhere. In that same window, under 'browse' , the words 'array' are under it. I'm guessing that this could be due to a problem with the database files. Help!
ozcsys Posted December 11, 2004 Posted December 11, 2004 Before I hang myself (or worse) can someone please help me with this. I have inherited an oscommerce site and I can't upload an image for a new product ( I have many to change). The permission is set to 777 for the image file. When I browse to upload the file, the browser functions as if it is sending it but I can't seem to find it on the site. I've looked in the image folder and the tmp folder. I've also tried typing in the filename directly(next to browse in the product edit window) but I end up nowhere. In that same window, under 'browse' , the words 'array' are under it. I'm guessing that this could be due to a problem with the database files. Help! <{POST_SNAPBACK}> Have you changed the permissions on the image folder(directory) or just an image file? If a file change the permissions on the folder. The Knowledge Base is a wonderful thing. Do you have a problem? Have you checked out Common Problems? There are many very useful osC Contributions Are you having trouble with a installed contribution? Have you checked out the support thread found Here BACKUP BACKUP BACKUP!!! You did backup, right??
peekaboo Posted December 13, 2004 Author Posted December 13, 2004 Hello, I had changed the folder permission to 777. If I add a new product, the text gets uploaded (in two languages) but the images never get there. I put a tmp file in the tmp directory (blank file) to see if that helped but it made no difference. When I browse to add a file, it looks as if the file is being uploaded but I can't find it. Not only does the graphic get lost, but the database doesn't remember the file name. It just says 'image not found' with 'array' written under it. Help!
♥Vger Posted December 13, 2004 Posted December 13, 2004 the browser functions as if it is sending it but I can't seem to find it on the site Try uploading the images into the 'images' folder by FTP'ing to your website. Vger
peekaboo Posted December 13, 2004 Author Posted December 13, 2004 Thanks for the quick reply. I tried that but I can't get oscommerce to link the new images with the new product
♥Vger Posted December 13, 2004 Posted December 13, 2004 It sounds as though you have more than an image problem. Vger
peekaboo Posted December 13, 2004 Author Posted December 13, 2004 It sure does... On the product edit page, it says 'array' under the browse box. I've been wrestling with this for days! Any ideas?
Guest Posted December 14, 2004 Posted December 14, 2004 Vger, I have been searching this forum like crazy and I keep finding you are responding to several people with similar problems. [ I am also one of those people.] For instance, commenting out line 31 in uploads.php, was a suggested solution, however, it has not helped me. It seems several problems that are related to file uploads are occurring. But if one line such as " $this=null" doesn't work, it seems to be that there would be an awful lot of other lines of code that are failing. It sounds like there is some php compatibility problem that is quite widespread. I am wondering if hosting servers have been upgraded and that we are all trying to micromanage each problem. A bigger picture perhaps? Just a thought.... the image upload problems all seem similar, but with different errors, and they all seem fairly recent. :-j.
Guest Posted December 14, 2004 Posted December 14, 2004 OK, As usual, spoke about two minutes too soon... Even though I saw several posts regarding permissions, I had checked them several times and found they were set correctly. HOWEVER, for some reason, the permissions did not show as correct when I looked in file manager. So my solution was to change the permisions, but only by using file manager to do so. My ftp client was not completing the job correctly. Still wondering about php versions, but not until something new comes up.... Thanks all! :-j.
peekaboo Posted December 14, 2004 Author Posted December 14, 2004 Hi Justin and Vger Perhaps the best route for me is to alter the database since I can't change the images (it's too slow anyway). I need to alter about 80 product files, some of which are almost identical, but with different pictures. Do you know how to go about this? Bryan
Guest Posted December 15, 2004 Posted December 15, 2004 Hi Justin and VgerPerhaps the best route for me is to alter the database since I can't change the images (it's too slow anyway). I need to alter about 80 product files, some of which are almost identical, but with different pictures. Do you know how to go about this? Bryan <{POST_SNAPBACK}> If you browse the products table in your database, you just enter the filename into each products record. There is a field called 'products_image'. The name you type there should be the name of the file that you uploaded into ..catalog\images\. That will link OSC 's products to the images, but they have to be in that folder. You can get them there however you can. :-j.
peekaboo Posted December 15, 2004 Author Posted December 15, 2004 I've downloaded and installed 'Easypopulate' which has been pretty helpful. Although backwards, I can now edit the database in /catalog/temp/ and just upload it from there. I'm in business (a few grey hairs later)
Recommended Posts
Archived
This topic is now archived and is closed to further replies.