It is very import for me to use 1) the product images and 2) the uc_option image function
For testing, i set up a complete new installation of drupal 5.7. And downloaded all modules listed here (http://www.ubercart.org/docs/user/3313/installing_ubercart) for the product image function which works fine. Then I installed the new uc_option images 5.x-1.0 module in order to use option images. Something must be wrong with uc_option image:
1) If I go to Store Configuration "Attribute settings" I get the following message:
Fatal error: Call to undefined function imagecache_presets() in /var/www/web37/html/uc_drupal/modules/uc_option_image/uc_option_image.module on line 166
2) When I edit the attribute option and want to upload a picture I get the following message:
"Please upload image using jpg, png, or gif formats."
--> But with the format of the picture everything is allright
Previously with a different version of imagecache I had the uc_option_image working fine.
Whats the problem and why does it seem that ohter user get both functions to work?
| Comment | File | Size | Author |
|---|---|---|---|
| #10 | image_uc.jpg | 313.92 KB | merzthomas |
Comments
Comment #1
merzthomas commentedBy the way:
I used the thema garland and a new set up drupal installation 5.7
Comment #2
merzthomas commentedThis is so strange.
I installed imagecache 2x and thickbox 2x and for one moment it worked. Both product images and image option and then again it doesn't. Now both function dont work. Seem that with messing around with the image cache settings and attributes configuration sometimes makes it work for ones and then again it won't work.
Isn't it possible to get this to work. So that I can use product images and the image options?????
Somedays I really get angry when I think that I just finished my business adminstration study and not some php studis. :-)
Comment #3
tjholowaychuk commentedSorry about that, apparently Ubercart only supports imagecache 1.6 so I will be conditionally supporting both. I had implemented imagecache 2.0 in the first official release but since I do not utilize Ubercarts other image functionality I was not aware that it needed 1.6. should be fixed pretty soon though.
Comment #4
merzthomas commentedI really appreciate your work. Thanks
Comment #5
tjholowaychuk commentedNot a problem. Sorry for the delay, just a few things I have to get out of the way before I can work on this stuff
Comment #6
tjholowaychuk commentedShould be fixed now :)
Comment #7
merzthomas commentedHi,
I dont get it to work. New Drupal 5.7 German installation. Ubercart with all basic modules:
These are needed for Ubercart to work
1. Tables API (TAPIr) (download TAPIr 1.5)
2. uBrowser (download uBrowser 1.3)
3. Token (download Token 1.11)
4. Workflow-ng (download Workflow-NG 1.6) Only the Workflow-NG & Workflow-NG UI modules should be enabled.
+ The ubercart option images and image cache (for image cache I tried all releases 1.5, 1.6 and 1.x dev)
--> it doesnt work.
With some images I get the message "please use only png, jpg or gif" with some I don't and they even show up in preview right besight the download field. But as I switch to product view and try to chose different option, no image is shown. The standard image is show, but soon as I choose another option there only shows up a red x.
Could you give me some information for the modules I need to finally get this to work soon.
Thanks
Sincerely
Thomas
Comment #8
tjholowaychuk commentedMy testing was done with imagecache 1.6, I will try to figure out whats going on, that should be the only dependency.
Comment #9
SRJM commentedHi, just to let you know, I've had exactly the same thing with the imagecache_presets() being undefined in imagecache 1.6 error. This occurs after uploading a PNG image and trying to display it as an option on a product; attempting to upload JPG or GIF results in the error message "please use only png, jpg or gif". I can't wait to see this sorted because this module is such a great idea.
best,
Simon
Comment #10
merzthomas commentedI made some more testing with a new drupal installation 5.7, theme garland.
Modules used see attached screenshot.
This configuration works, but only when uploading images for the option using firefox. With IE 7 it doesnt work at all.
The releases uc_option_image 5.x-1.0 and 5.x-1.0-1 don't work at all with the my configuration of modules.
Comment #11
tjholowaychuk commentedThanks for the additional information. I should have time to take a further look into this issue either tomorrow or Wednesday I am hoping
Comment #12
asak commentedsubscribing.
Comment #13
tjholowaychuk commentedHey guys, sorry that its not fixed yet, I most likely will not have time to get to it this week (have to prep for a friends wedding on saturday)
Comment #14
tjholowaychuk commentedK here we go everyone, managed to get a bit of time to work on the module. I did receive one error from imagecache 1.6 and did not have time to investigate however I think it was just due to system file persmissions. If you are interested in seeing the changes for 5.0.2 view http://drupal.org/node/280138
Please let me know if you have any additional issues, and if this 'fatal error' issue is resolved so i can change the issue status
Comment #15
nahhe commentedusing 5.0.2 I´m getting this:
Fatal error: Call to undefined function imagecache_create_url()
Comment #16
tjholowaychuk commentedWow thats really strange.. I just looked at 1.6 and yeah your right that function is not defined... which is really odd that I was not getting errors as well
Comment #17
tjholowaychuk commentedI appologize for not actually testing this additional code, but I really do not have time right now. However I blindly added support for imagecache_create_url() when using imagecache 1.6, hope that works now, still seems very strange that I did not receive this error
Comment #18
merzthomas commentedI tested as well and had the same problems. Didn't work at all.
1) The images for the products (without image option module) in Ubercart works perfectly with imagecache 1.5 but with 1.6 it doesn't.
2) The image option module (beta 2 release) only works with imagecache 1.6 --> Which causes ugly Problems do to imagecache 1.6.
3) The image option module doesn't at all work with imagecache 1.5 --> But I quess the best Idea would be if image option module works with imagecache 1.5, since this seems to be the only version of image cache which runs perfectly in ubercart.
I am excited if you can solve this issue...
Thanks
Comment #19
merzthomas commentedHello tjholowaychuk,
quess what? I did some more testing... Your new realease uc_option_image-5.x-1.0-3 works better with image cache 1.5 then before.
1) uploads works perfectly (with firefox and IE)
2) the preview also works perfectly
3) The switching doesnt work at all. Only the standard set image option shows up (I did use Garland Theme) Any Idea?
-------
Using Image Cache 1.6, which doesn't work with ubercart correctly. (Any idea why ubercart doesn't work with îmage cache 1.6?)
1) Only using Firefox the option switching works --> But using image cache 1.6 cases ugly error messages (I have no idea)
-------
Would you recommend using image cache for product images or should I use the image attach funtction of the image module? (But then I cant use the catalog function of ubercart--> only standard catagories
Comment #20
tjholowaychuk commentedYeah some of this seems very odd, it is hard for me to say for some of the issues since I have had no problems with various browsers, imagecache 1.6 or imagecache 2.0.
Personally I never use the image attach functionality or the catalog functionality, we are always customizing things alot.
As for the switching not working correctly with non-garland themes, it does depend on certain markup/id's/classes such as .node .content and some others, which i plan on documenting some more since that seems to be confusing people. The best thing to do in that case is utilize the default Garland node.tpl.php if you can and theme with the basic divs found in that file (should rarely need to alter this anyways, its simple to alter it with CSS in nearly any way)
Comment #21
merzthomas commentedThanks for your fast reply,
I do use standard garland theme but switching doesnt work at all. All other function work perfect. (upload and preview)
Comment #22
tjholowaychuk commentedIn Firefox 2.x as well? its hard to say JavaScript is pretty touchy that way when it requires specific DOM elements, if you have Firebug enabled in FF you should see any error(s) that are occuring
Comment #23
merzthomas commentedFirefox as well, the module just doesnt work correctly.
Comment #24
tjholowaychuk commentedUnfortunately thats the issue with free work I suppose. I am in the process of re-locating to Victoria so I do not have time to focus on the module at the moment, sorry everyone!
Comment #25
mansuk commentedHi,
I think I found the issue. I use the abac theme. When I installed the option image module at the start, everything worked fine. But, I started mucking around with the theme it broke.
Essentially, when I load the page I can see the default image for the option selected. However, when I choose a colour ( on which an image should change), it fails to load the image from the website and hence loads the noimage.png.
While the page loads correctly, it fails to load the switch the image because instead of the base_path/files/option-images directory, it looks at the base_path/node/files/option-images directory. Since it's looking in a different path, it can't load the file and hence is loading noimage.png. I do not know why this is happening. Looking at the js files with console.log messages gave me no hint of the problem.
I am not exactly sure, what variable is influencing the base path. The only thing I did is enable clean URL's which may have updated the base path. But, that may not be the issue too. If you have some insight into why this is happening please let me know.
Thanks,
-S-
Comment #26
acouch commentedThe 5.x version is no longer being supported for this module. We are cleaning up the 6.x version and preparing for the 7.x version.