Closed (fixed)
Project:
Ubercart Option Images
Version:
6.x-1.x-dev
Component:
Miscellaneous
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
20 Apr 2009 at 02:37 UTC
Updated:
11 Jan 2011 at 15:10 UTC
Jump to comment: Most recent file
Comments
Comment #1
tjmoyer commentedNote: I am using Imagecache version 6.x-2.0-beta9. Not sure if that makes a difference.
Comment #2
pillarsdotnet commentedCheck your error log. If there are any lines that have "uc_option_image" in them, copy them here; thanks.
Comment #3
pillarsdotnet commentedI believe this is a duplicate of #436024: Corrections for install file which is fixed by release 6.x-1.3.
Comment #4
pillarsdotnet commentedComment #5
tjmoyer commentedOk, so I made the updates with the patch from the other post you referenced. But I'm still getting the same problem. Here's entry from my Apache error log:
This is the exact same error before and after the patch.
Comment #6
tjmoyer commentedI removed the 6.x-1.2 files and attempted to install 6.x-1.3. I made the correction noted in post http://drupal.org/node/439804, but now I'm getting the following error:
There are no errors in my Apache error log. Any ideas?
Comment #7
jerry commentedSounds almost as though uc_option_image.module isn't available at installation time, for some reason. I'm afraid I don't know anything about WAMP, so I can't suggest how to debug this. It installs fine (with the install file patch) on Linux and OS X, FWIW.
Comment #8
pillarsdotnet commentedYup. the .module file isn't available on first install; just on upgrades. Fixed in 1.4.
Comment #9
SethM commentedWhen attempting to install uc_option_image 6.x-1.4 today I got a syntax error on line 11 of the file uc_option_image.install.
Cracked open the file and noticed the code looked like this for lines 8-19:
Notice the semi-colon the end of line 11, I deleted that and changed it to a comma. After that the module installed properly.
Correct code for lines 8-19:
Comment #10
pillarsdotnet commentedCommitted to CVS.
Comment #11
tjmoyer commentedThank you very much! It's working now. My only issue now is that when I have added a product and attribute options, the option that I selected as default does not show that default selected or the default image when you look at the product, only when you select an option.
Comment #12
tjholowaychuk commentedFor historical sake, and for helping others you should not change the title :P
Comment #13
SethM commentedTry un-checking the "required" check box for the attribute. If an attribute is set to required Ubercart ignores the default options making the user select an option.
Comment #15
slipsey1 commentedI am still getting the error on line 11
Parse error: syntax error, unexpected ';', expecting ')' in /home/sawingl1/public_html/sites/all/modules/uc_option_image/uc_option_image.install on line 11
Downloaded on 6/30/09 to Drupal 6
Comment #16
ianc60 commentedmodules\ubercart\uc_option_image\uc_option_image.install
Line 11, syntax error, ending character in line should be a comma (,) instead of semi-colon (;)
Comment #17
mtpultz commentedI'm having the same problem the images aren't showing up in the product page when I choose the select or radio buttons. The image shows up in the preview. It might be a url issues seems the image src is missing the project name befores sites/..../option-images folder. Any suggestions? I poked around in the code for a bit but couldn't figure it out still a newb at php and drupal.
Comment #18
mtpultz commentedHere's my hack "/MYPROJECTNAME/" for fixing this issue. I hate hacks like this but I couldn't figure out why my project name was missing in the path and I dont' have time to figure it out in the .module or in drupal, have to get this site out. Hopefully this doesn't come back on me. If anyone knows why this is happening I'd love an email or response. I had to do a similar fix in the uc_radio_options module.
Comment #19
jponch commentedI'm having the same problem. On install of 6.x-1.4 I get the error code:
Parse error: syntax error, unexpected ';', expecting ')' in /sites/all/modules/uc_option_image/uc_option_image.install on line 11.
Comment #20
scottrigbyquick patch to remove the semicolon in 6.x-1.4.
Info on applying patches here: http://drupal.org/patch/apply
Comment #21
pillarsdotnet commentedMuch thanks to those who have made patches.
Will try to review and apply tomorrow.
Comment #22
Michael Phipps commentedQuick reminder, this patch still needs to be applied
Comment #23
JakobMetzger commentedbump for the patch needing to be applied.
glad I found this thread though.
Comment #24
zapscribbles commentedBumpin this too
Comment #25
SeanK commentedIt's in the patch and full version in this thread: http://drupal.org/node/550344
I still can't get it to work in whole, but the installer problem is fixed. Every option shows me the text "no image".
Comment #26
CarbonPig commentedHi,
I'm having a slightly different issue, but it falls within the general category of this thread.
I did the same thing that SethM did in #9, but afterwards I ran into this:
Fatal error: Cannot redeclare imagecache_create_url() (previously declared in .../html/modules/uc_option_image/uc_option_image.module:305) in .../html/sites/all/modules/imagecache/imagecache.module on line 325
It appears that something is being "redeclared" anyone else run into this issue? Any thoughts on how to troubleshoot. Any suggestions would be greatly appreciated.
Here's what I did so far:
I removed the ; and put a , like post #9.
I deleted the module from my directories and cleared it from my database under the system table.
I tried reinstalling, but ran into the same error.
Thanks ahead of time for any help,
CarbonPig
Comment #27
1kenthomas commentedDitto comment on previous thread-- @pillarsdotnet-- is this project being actively maintained?
Comment #28
webmystery commentedDitto CarbonPig. Identical experience.
Even after removing both imageCache and UC Option Image 1.4 and then reinstalling both I got the same "redeclared" error.
To get it to work I started with a fresh Drupal install, then installed only Image Cache, UC and Token. Then I installed UC Option Images with line 11 of the install file fixed BEFORE I tried to enable it. That is the only way I could get it to work. IMHO, this means the other bug, http://drupal.org/node/590850, should have a higher priority. It appears that the incomplete install hoses something that generates the ImageCache error:
Comment #29
acouch commentedThis should be fixed now in the latest dev version. New release soon.