Otaku8 Posted August 9, 2016 Share Posted August 9, 2016 Every time I try to add an image to a product entry CubeCart says its updated the product after saving, but hasn't add the image. The images I'm using are well within CC's requirements. Can anyone please assist with this issue? Quote Link to comment Share on other sites More sharing options...
bsmither Posted August 9, 2016 Share Posted August 9, 2016 Welcome Otaku8! Glad to see you made it to the forums. We would ask that you check in admin, Error Log (near the bottom of the left-side navigation), System Error Log tab, and determine if any errors are logged that may reference CubeCart's inability to write to a folder. If no error is logged there, then please perform this task and report the contents of the error_log file. We hope to discover what is preventing you from getting an image uploaded into CubeCart so that you can then assign that image to the product. Quote Link to comment Share on other sites More sharing options...
Otaku8 Posted August 9, 2016 Author Share Posted August 9, 2016 There are no error logs showing, and I don't have site permissions or programming know-how to generate an error log. Quote Link to comment Share on other sites More sharing options...
bsmither Posted August 9, 2016 Share Posted August 9, 2016 Allow me to ask for clarification. Are you able to actually upload an image? You can upload an image from either the Edit Product page (not the Add Product), and also from the FileManager page. If you can upload the image, do you then see it in the list of images when viewing the Edit Product page? If so, by clicking on the empty square to the right of the image filename, it will change to a checked box, then another click will change it to a gold star. Does this happen? If none of the above, do you have permission to contact the hosting company's tech support? If so, please ask them if there are any permissions settings on the following folders or files that would prevent CubeCart from being able to write files into them: 'backup/', 'cache/', 'cache/skin/', 'files/', 'images/', 'images/cache/', 'images/logos/', 'images/source/', 'includes/', 'includes/extra/', 'language/', Quote Link to comment Share on other sites More sharing options...
Otaku8 Posted August 9, 2016 Author Share Posted August 9, 2016 I have been attempting via the Edit Product page/Image tab. I can upload images via the FileManager/Images page, but when I try to associate an image to a particular product the image errors out and won't show. Quote Link to comment Share on other sites More sharing options...
bsmither Posted August 9, 2016 Share Posted August 9, 2016 How does associating an image "error out"? What message or indication do you see? Quote Link to comment Share on other sites More sharing options...
Otaku8 Posted August 9, 2016 Author Share Posted August 9, 2016 In place of where the image should be it show a file icon and the file name, but is I click where the image is supposed to be previewed the system tells me that the image has failed to load. Quote Link to comment Share on other sites More sharing options...
bsmither Posted August 9, 2016 Share Posted August 9, 2016 Ok, so we are back to needing to know if the file was actually, successfully saved in the /images/source/ folder. In your browser's address bar, type this address:www.mystore.com/images/source/name_of_image_uploaded.jpg Obviously substituting mystore for your domain and using the known name of the image. We are wanting the web server to fetch the actual image that was uploaded and presumably saved. If you get a 404, then the image wasn't actually saved and we are back to wanting to check folder permissions. Quote Link to comment Share on other sites More sharing options...
Otaku8 Posted August 9, 2016 Author Share Posted August 9, 2016 It's 404'ed, and now the image is not showing at all in the list of images. I'm also getting my boss to check if our domain's allotment of server space is full or not. Do you think that could be the issue? If it is CubeCart isn't saying so. Quote Link to comment Share on other sites More sharing options...
bsmither Posted August 9, 2016 Share Posted August 9, 2016 We had an interesting situation a few days ago in that images were not appearing. The investigation showed that the folders /images/cache/ and /images/source/ did not exist! We found the problem had to do with the use of WinZip in that when unzipping the CubeCart package, WinZip had not, and does not, unzip empty folders. So, after unzipping the CubeCart package, and then FTP'ing the resultant folder structure up to his site, those image folders were not present and images were not working. So, how did you get CubeCart installed? Did you FTP the unzipped folder to your site? If so, use FTP to verify the existence of the /images/ folder, and inside that folder, verify the existence of the /source/ and /cache/ folders. Quote Link to comment Share on other sites More sharing options...
Otaku8 Posted August 9, 2016 Author Share Posted August 9, 2016 I just tried to add an image to a product again, and this time it worked. I don't know why, no permissions were changed. But now I'm having the issue again when I create a new product and try to add a image to that. Quote Link to comment Share on other sites More sharing options...
bsmither Posted August 9, 2016 Share Posted August 9, 2016 You can assign an image from when at the Edit Product page, but not the Add Product page. It is best to create the product so that there is a 'product_id' for the database, then go back and assign an image to that existing product. The 'product_id' is now known and the assignment should succeed. We have found this two-step process to be the best way -- Add, then Edit with assigning the image. Hope this process works for you. But we have not yet learned why you got the 404 when asking for the image directly. Quote Link to comment Share on other sites More sharing options...
Otaku8 Posted August 9, 2016 Author Share Posted August 9, 2016 I thought the same thing with creating then editing, but the error seems to be random. Now, I have to go through the edit page multiple times to get it to work (as in dozens of attempts). Yet on other occasions when I create a new product it works first time. This error is doing my head in... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.