Project:Ubercart Option Images
Version:6.x-1.4
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (duplicate)

Issue Summary

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

#1

I 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.

#2

Same here....

Drupal 6.12
Ubercart 6.x-2.0-rc3

#3

Do it yourself if you need changes... that is what open source is for, I dont work for you.

#4

wow

#5

You 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.

#6

Sorry 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

#7

Hi 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

#8

tjholowaychuk => you're an ass. Really? (; -> ,)

phil_evans_csl => you rock!, thanks man for helping the community!

#9

How does one integrate the fix that phil_evans_csl came up with? So others downloading this module don't have this issue?

#10

Cheers phil_evans_csl!

Thanx alot for the fix!

#11

As 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.

#12

Status:active» closed (duplicate)

http://drupal.org/node/590850

nobody click here