Image upload form and preview do not appear

cybertoast - May 4, 2009 - 04:30
Project:Ubercart Option Images
Version:6.x-1.4
Component:Code
Category:bug report
Priority:critical
Assigned:Unassigned
Status:active
Description

I'm trying 6.x-1.4 and I don't get the image upload/browse form. When I change the code in uc_option_image.module at ln 143 to remove the check for if (!empty($file)), then I get the form. I can also upload the image (into the files/option-images/ folder and the imagecache preset has an option-images sub-folder created), but no preview image is displayed. I've got an imagecache preset created which I'm pretty sure works.

Any ideas on what could be going on?

Thanks much for any help.

#1

cybertoast - May 4, 2009 - 04:45

Seems like the preview image does not get generated based on the preset. The image is being looked for, but it does not exist in the preset/option-images/ folder (but the folder itself is created just fine). So does this mean it's an imagecache issue?

#2

johngflower - May 16, 2009 - 23:29

I have the same issue.

Changing ln 143 from
if (!empty($file)) {
to
{
Also fixes the missing upload and preview fields.

But I still am unable to view the option image when viewing a product.

AttachmentSize
Screenshot-4.png 145.3 KB
Screenshot-5.png 280.78 KB

#3

johngflower - June 21, 2009 - 03:32

Update

I created a new website with a new database and Option Images, as tweaked above, worked. On the website that I want it to work on it may not be working because:

a) I've got legacy database entries due to prior installs of different versions of Option Images
b) OI won't let me save the dimension sizes of some of the imagecache presets that I've created
c) Fluffy duck knows!

#4

johngflower - June 21, 2009 - 03:41

Possibly

"When multiple nodes are displayed on the same page they will not switch
properly due to "call_user_func_array('array_merge_recursive', $data)" in
drupal_add_js();"

from the OI Readme answers the problem. I do have a Views Reference included on many of my Product nodes. I also have Product nodes referenced in my Gallery Photo nodes (customers see an example of a customised product, and underneath is blank product that they can buy). All my testing has been done from the Product node so the multiple node issue ?is not? an issue.

#5

jgubata - September 8, 2009 - 12:19

I, too, have this issue, but changing line 143 made no difference. Neither the column header nor the upload form appear in the options page. Imagecache is working fine (I'm using it with ubercart and elsewhere without any issues), and switching themes does not help. I have imagecache presets made and I've double checked the attribute configurations. I'm at a complete loss as to where to go from here. Any other ideas on what I could check?

#6

jgubata - September 10, 2009 - 14:26

Interestingly, if I edit options within a specific product, the upload form is showing up. But then it is not displaying next when viewing the product. I'll keep working at it, but any ideas would be most appreciated.

 
 

Drupal is a registered trademark of Dries Buytaert.