I have an up-to-date version of ubercart. I select module and click "Save configuration" - browser goes white and module does not stick.
I have an up-to-date version of ubercart. I select module and click "Save configuration" - browser goes white and module does not stick.
Comments
Comment #1
Anonymous (not verified) commentedI would like to add images for attributes/options. This is the only module I've had problems/issues with. I appreciate the help. If I can answer any questions, please let me know - I am stuck.
Comment #2
ronenb75 commentedSame here....
Drupal 6.12
Ubercart 6.x-2.0-rc3
Comment #3
tjholowaychuk commentedDo it yourself if you need changes... that is what open source is for, I dont work for you.
Comment #4
J-Chance commentedwow
Comment #5
Anonymous (not verified) commentedYou are right, you do not work for me. Could you please share where I was suppose to report issue with this contributed module. Thank you.
Comment #6
tjholowaychuk commentedSorry guys but this is why I quit Drupal / PHP and moved on to more serious programming work, no one here knows how to do anything and expects others to do it for them. That being said this is the correct issue queue for the project.. which should be maintained by another fellow but I am not sure if he is still active
Comment #7
phil_evans_csl commentedHi Guys,
This should fix your problem, simply copy the code below over the current code in you uc_option_image.install file in the folder sites/all/modules/uc_option_image
<?php
function uc_option_image_install($no_image=NULL) {
if (empty($no_image)) {
return uc_option_image_install(drupal_get_path('module', 'uc_option_image') .'/no_image.png');
}
$info = image_get_info($no_image);
if ($info) {
$file = (object) array(
'uid' => 1,
'filename' => 'option_image_0_0_0',
'filepath' => $no_image,
'filemime' => $info['file_mime'],
'filesize' => $info['file_size'],
'status' => FILE_STATUS_PERMANENT
);
db_query("DELETE FROM {files} WHERE filename = 'option_image_0_0_0'");
drupal_write_record('files', $file);
}
}
The problem is simply a typo in line 11
Comment #8
pjevans commentedtjholowaychuk => you're an ass. Really? (; -> ,)
phil_evans_csl => you rock!, thanks man for helping the community!
Comment #9
pjevans commentedHow does one integrate the fix that phil_evans_csl came up with? So others downloading this module don't have this issue?
Comment #10
ronenb75 commentedCheers phil_evans_csl!
Thanx alot for the fix!
Comment #11
TrickerTreater commentedAs far as I can tell, this module might not be ready for production deployment. I spent 2-3 days on it and couldn't get it to work. Best I got was the "No Image" message.
pjevans,
Yes, I believe that anyone who installs this message will get a failure. All you have to do is open the module and open the file "uc_option_image.install" in a code editor. Change line 11 (I believe)'s ";" to a "," and save the file, close it, reload the module page, and enable it. Now actually getting it to work beyond that is your own problem. I left this module for this one: http://www.ubercart.org/contrib/12322 as it works out of the box and the developer is eager to help the community.
Comment #12
TrickerTreater commentedhttp://drupal.org/node/590850