this problem with images -- product content type -- <hidden> ???

Posts: 22
Joined: 02/13/2008

I have been looking around in all the diff areas of Drupal to try and understand this problem with product images not showing up, and I'm wondering if it has to do with settings in the 'content type' that defines 'product' -- in the 'display fields' tab, all three boxes are set to 'hidden' -- why? Could this be why I don't get product images?

Could someone please explain this to me? Yes I'm a Drupal-doofus but I'm trying to rectify that!

Thx much,
Andria

Posts: 5245
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

Andria, that shouldn't matter. We need to get a definite checklist out for making sure default image support works, but to be honest I've never had any trouble on our test servers. So, I'm pretty sure it's a server type settings problem.

You need Clean URLs enabled on your site and Public file downloads in your Drupal file settings. You should make sure your file directory's permissions are 777. Other than that, make sure your image filenames only use letters, numbers, underscores, and dashes. Spaces and special character are likely to cause trouble. Also, you should be using the latest versions of Drupal 5 and Ubercart. If you've done all these things, let me know so we can figure this out and get some comprehensive docs on the issue.

There's a lot in this thread, so be sure to follow progress there, too.

Posts: 924
Joined: 11/05/2007
Bug FinderFAQ ModeratorGetting busy with the Ubercode.

Four places to check your settings. Do these in order.

admin/logs/status will tell you your file system permissions and your clean URL status - if it complains about either of these, images will not work. Your files directory has to exist on your server (it should be created in the same place as update.php) and have world write permissions - chmod 777 or set the permission mask to be user/group/world read + write + execute. There are instructions here for enabling Clean URLs as well - Clean URLs are absolutely required, so don't bother moving on to the next step until you get those working. This menu should also have a line that says something like "GD library bundled" which tells you that built-in PHP image handling is enabled.

admin/settings/file-system will let you set public file download method.

admin/settings/imagecache will show you your imagecache module presets. There should be five: cart, category, product, product_list, thumbnail. Since you don't have images working yet, I recommend deleting these presets on this page - they will be created automatically by the next step.

admin/store will tell you if you have the right modules enabled for image support. Install any missing ones now. This menu will also give you an option to automatically configure image support. Click this after you have done everything else above. You should now see "Product image support has been automatically configured by Ubercart."

When you upload an image on a product edit page (e.g. node/#/edit), by "Browse...", select image, then "Upload", you should see the thumbnail preview. A temporary file should be created in your /tmp directory (check this on your server!). Then when you "Submit" the product, the image file should be created in files as well as in files/imagecache/product/files - the latter directory will be automatically created. If one of these things does not happen, that will indicate where the problem might be.

--

<tr>.

Posts: 22
Joined: 02/13/2008

I checked everything mentioned above, and it all checks out, but I still don't get any product images. I would be tempted to suspect imagecache, since it seems rather murky to figure out -- but I have category images, which do produce thumbnails, and I'm pretty sure that is a function of imagecache.

When I upload an image on the product/edit page, I never see a thumbnail for it; I see only an empty box where there should be a thumbnail. On the Catalog category page, where there should be an image, there is only "n/a" -- you can see an image of it here -- http://crypticsites.biz/catalog_exmpl.gif -- you can also see the thumbnail of the category image on that example.

I also installed the module "Image" so I can get thumbnails of images I have for download, and it works fine. The only thing "broke" appears to be product images. I suppose I could use the Image module to create nodes displaying the example designs, and from those nodes link to product pages; I could also just put in the img src right in the body of the product description, but either would be a long way around something that ought to be working in itself, and there would still be no thumbnail on the catalog page.

*Puzzled and Disgruntled*
Andria

Posts: 924
Joined: 11/05/2007
Bug FinderFAQ ModeratorGetting busy with the Ubercode.

After you press the button to "Upload" an image, before you "Submit" the product edit page, do you see a temporary file created in your /tmp directory?

What shows up in your files directory?

--

<tr>.

Posts: 5245
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

Andria, at this point I don't think anyone can help further without a link and admin access to the site. Honestly, we'd love to know what's going on so we can document the issue for other users. Smiling

Posts: 22
Joined: 02/13/2008

No, no temp file in the upload_tmp dir (the one specified in my file system settings), and yes the dir is set to 777 -- likewise the files dir, and there is nothing pertaining to the product image just uploaded in that dir either, nor in any of the imagecache dirs inside the files dir, and all are set to 777.

Ryan, I am PM'ing the login details so you can see all this, if/when you have time.

Please bear with the site, it's a little slow at the moment; my host tells me to relocate the database to a diff server, and apparently I'm going to have to, because the one I'm currently on is either way too populated or just this side of dead. If you get one of those DNS error pages when you click something, just hit the back btn, curse it roundly, and try it again; that always works for me, but obviously the server/database has some *issues*.

Thx much,
Andria

Posts: 22
Joined: 02/13/2008

THE PROBLEM IS OPERA!

aRGHH! Thank you so much, Ryan; the fact that you could attach an image so easily led me to suspect that the problem was my browser -- and it WAS!!!

When you try to upload a product image thru Opera, it encloses the path/filename in quotes -- but even when you take out the quotes, it still won't work!! But in IE it works just fine!

Still, I've had no problems uploading images thru other modules, such as Image (which works great), or even Asset (which isn't as great but still ok I guess), so it must be something in Ubercart and/or CCK that disagrees with Opera.

(slap self in head) I guess I'll be adding my products thru IE!

Thank you! Thank you!

A very relieved
Andria

Posts: 2243
Joined: 08/07/2007
AdministratoreLiTe!

Wow. I'm glad you can get your site set up now. I think I'll look to see if other Opera users have had trouble with imagefield. Maybe there's a workaround that I didn't know I needed to do.

Posts: 22
Joined: 02/13/2008

Yeah it's really weird, because, just as a for-instance, *this* site works much better in Opera than in IE -- sometimes here at Ubercart, in IE, the right-col nav winds up down at the bottom of the page, overlapping some of the content -- but it displays perfectly in Opera.

However, I have noticed a few discrepancies in how Opera interprets CSS, as opposed to IE-interpretation -- e.g., I'm very fond of the "inset" "outset" border attributes, but they just won't display in Opera, so I've taken to just specifying border-colors that mimic the effect, to preserve the look I want. Considering how much Drupal and all associated modules rely on CSS, I suppose it's not too surprising that there is some inconsistency. But it sure was driving me wild (to say the least!).

I'm sticking with Opera; I haven't had to reinstall Windows since switching to Opera email 2 or 3 yrs ago, as opposed to having to reinstall about once a month thanks to worms and trojans that got in thru Outlook Xprs and ate my registry -- but I do have to crank up IE for a few things, and I guess this is one of them -- I can't pay my car loan to GMAC thru Opera either, thanks to their stupid flash! They really need a *real* web designer -- like me, for instance. ;-P

Andria