25 replies [Last post]
eagle0829's picture
Offline
Joined: 03/16/2009
Juice: 19
Was this information Helpful?

Dear all,
I tried before using drupal 6.4 to set up and everything went well.

This time i updated to drupal 6.10. and what i do was just activate some modules like image, image api,....
Then i found two issues:

1. My Category can't be seen, it only shows a title.

2. I can't attach image with product. which might be caused by "Duplicate entry "

Please see the attached pix for details, i can show more. If there is any thing i can do to fix this.

PreviewAttachmentSize
1.GIF1.GIF88.23 KB
2.GIF2.GIF118.23 KB
DickSwart's picture
Offline
Joined: 03/16/2009
Juice: 39
Same story here

I have exactly the same issue, have you found a solution?

eagle0829's picture
Offline
Joined: 03/16/2009
Juice: 19
Re: Same story here

I am still trying to figure out the issue.
But before i can fix it. I wanna try to re-try it on my local machine again with only need modules on. and then i will try to look into the code.

Questions:
I am wondering that might be a conflict for some module like taxonomy_manager or taxonomy_image. Or not?

Any suggestion?

Best regard,
Sean

torgosPizza's picture
Offline
Bug FinderEarly adopter... addicted to alphas.Getting busy with the Ubercode.
Joined: 08/14/2007
Juice: 4110
Re: Re: Same story here

Silly question, but did you run the update.php script after you had upgraded? Any database changes should have been made during the upgrade process, which, if they didn't run correctly, might be causing your issue.

--
Help directly fund development: Donate via PayPal!

DickSwart's picture
Offline
Joined: 03/16/2009
Juice: 39
Re: Image Issue.

I installed a fresh copy of Drupal6 and all the modules, don't think it is necessary to run the update script.
I'm using the ImageAPI ImageMagick toolkit can this be the cause? doubt it.

torgosPizza's picture
Offline
Bug FinderEarly adopter... addicted to alphas.Getting busy with the Ubercode.
Joined: 08/14/2007
Juice: 4110
Re: Re: Image Issue.

Well, you said this:

Quote:

This time i updated to drupal 6.10. and what i do was just activate some modules like image, image api,....

So it sounded like you were updating.

Second of all, because you are getting "duplicate entries" for your errors, that means a row already exists for those imagecache presets and content fields, which Ubercart is trying to insert. So my question is, did you update your files but you're connecting to the same database? For some reason the files seem to think they are new but your database already has records from a previous install, at least, that's what it looks like to me.

--
Help directly fund development: Donate via PayPal!

DickSwart's picture
Offline
Joined: 03/16/2009
Juice: 39
Re: Re: Re: Image Issue.

Sorry, I thought you replied on my question.

As I said my install was no upgrade (Clean install)
You can loginto my sit if you want to have a look.
User-1 details
url: www.babystore.co.za
username: webmaster
pass: ------

eagle0829's picture
Offline
Joined: 03/16/2009
Juice: 19
Thanks for helping ..... 1.

Thanks for helping .....

1. My guess is the module somehow tried to do same install again and again.
See 1.GIf, it shows module tried to create field twice and before this two processes run, the image field exists already, that is why the insert query failed for primary key.

So, i guess the mechanism of checking the field exist or not for image failed.
Either because othe rmodule inserted the field with same primary key. So when this module tried to check, it thinks that the instance doesn't exist.

2. If my guess is correct, then we can fixed it by two ways.
a. make the field(s) unique by default.
b. Enhance the checking machsnim

ANy suggestions?

Attachments:
dir.GIF shows my modules
1.Gif shows the error message
2.Gif shows that update.php and cron has been run
content_node_field.GIF and content_node_field_instance.GIF shows that field is really in the table already.

Best,
Sean

AttachmentSize
content_node_field.GIF 44.37 KB
content_node_field_instance.GIF 93 KB
dir.GIF 58.74 KB
2.GIF 34.8 KB
1.GIF 91.09 KB
eagle0829's picture
Offline
Joined: 03/16/2009
Juice: 19
Thanks for helping .....1.

I am just wondering ...
How can everyone's module working without this issue?

DickSwart's picture
Offline
Joined: 03/16/2009
Juice: 39
It is strange! Don't feel

It is strange!

Don't feel alone, I have the same problem. Smiling

I'm a dumb themer, will you please post the solution if you find one?

Sorry for not being any help, I just so frustrated.

dionysio's picture
Offline
Joined: 03/17/2009
Juice: 27
Same Problem

I am having the exact same issue and I am about to lose my mind. Does anyone have any idea how this can be fixed?

eagle0829's picture
Offline
Joined: 03/16/2009
Juice: 19
It works if it's a update

I tried to install from drupal 6.9. and pass the installation on modules.
Everything is working fine on 6.9.
Then do update to drupal 6.10, then it works fine.

I guess this is a bug.

Will have to look into the code to see it.....

Sorry, not giving real solution. But if you just install 6.10, which means you just begin.
Maybe update from 6.9 is a quick fix. That's why not many ppl have same issue.

Best,
Sean

dionysio's picture
Offline
Joined: 03/17/2009
Juice: 27
Re: It works if it's a update

Ok, I upgraded from 6.9 to 6.10 and it did not fix it. Has anyone figured this out yet?

Lyle's picture
Offline
AdministratoreLiTe!
Joined: 08/07/2007
Juice: 6846
Re: Re: It works if it's a update

Just found out today that imagefield changed some things in their latest version. I bet that's what you have, so you'll need to use the patch at http://drupal.org/node/404352 and recreate the image field on products. It seems that imagefield and filefield exchanged some code so that they handle different parts of the display and storage methods for images.

eagle0829's picture
Offline
Joined: 03/16/2009
Juice: 19
A quick way to bring up your site

I forget to mension I used the Drupal i use to install was Acquia packetage.

But the image module I did go download the latest module from drupal.org and replace yerterday.

I attach the file i downlaod from Acquia. hopefully it will help.
Install the base and do update to 6.10.
It works.

AttachmentSize
acquia-drupal-1.2.4.4554.tar.gz 4.85 MB
sevun's picture
Offline
Joined: 03/13/2009
Juice: 4
Re: A quick way to bring up your site

I had the same issues with a fresh install of Drupal 6.10, Ubercart 2.0-beta5, and using Imagefield 6.x-3.0-beta1. I deleted everything, installed a fresh copy of Drupal 6.10, Ubercart 2.0-beta5, installed Imagefield 6.x-3.0-alpha4, verified there were no issues listed under the Store Administration page, then upgraded to Imagefield 6.x-3.0-beta1 with no issues.

eagle0829's picture
Offline
Joined: 03/16/2009
Juice: 19
Re: Re: A quick way to bring up your site

It works, thanks a lot.

But how can we report this and help to fix?

Sean

Lyle's picture
Offline
AdministratoreLiTe!
Joined: 08/07/2007
Juice: 6846
Re: Re: Re: A quick way to bring up your site

I think Acquia stays on top of the latest changes to Ubercart, so it should already be taken care of.

eagle0829's picture
Offline
Joined: 03/16/2009
Juice: 19
Re: Re: Re: Re: A quick way to bring up your site

Thanks everyone.
Let's move on to further issues.

dionysio's picture
Offline
Joined: 03/17/2009
Juice: 27
Re: Re: Re: Re: Re: A quick way to bring up your site

I used this fix and it helped but my thumbnails are not linked to their images. Does anyone know what would cause this? You can see the site here:

http://royaldealz.com/

Lyle's picture
Offline
AdministratoreLiTe!
Joined: 08/07/2007
Juice: 6846
Re: Re: Re: Re: Re: Re: A quick way to bring up your site

You might still have to go set the image field to use Thickbox or Lightbox2, whichever module you have installed. That can be changed on the Product settings page (/admin/store/settings/products/edit/general).

gizmatix's picture
Offline
Joined: 09/09/2008
Juice: 159
Re: Re: Re: Re: Re: Re: Re: A quick way to bring up your site

I patched this error with what was posted and on a fresh install i'm still getting errors. Now my new errors is that, it's not adding image field to product kind and when I try to add it from existing fields since its showing up for content type 'product' Ubercart Store Administrator still outputs under Status messages: that it's still not added. Also Catalog vocabulary, file downloads, roles, don't show in the status message. I'll give access to the actual live site if anyone can help me with this issue.

fyi: patch to product.module was applies before activating Ubercart modules...

gizmatix's picture
Offline
Joined: 09/09/2008
Juice: 159
- Drupal 6.10 Installed >

- Drupal 6.10 Installed
> Dependencies for Ubercart uploaded
- Enabled in the order listed from install doc provided by Ubercart
- After each was enabled a database update was made followed by cron update
> Ubercart Module uploaded
- Enabled only modules listed (for fresh install)
- the rest of my needed functions were enabled afterwords

What Dependencies were install?
cck 6.x - 2.2
filefield 6.x - 3.0 beta 3
google analytics 6.x - 2.0
imageapi 6.x - 1.5
imagecache 6.x - 2.0 beta 8
imagefield 6.x - 3.0
thickbox 6.x - 1.2
token 6.x 1.11
views 6.x - 2.3

What version of Ubercart?
ubercart-6.x-2.0-beta5.tar

How was patch installed:
ssh -p ---- user@site.com
went to the location of patch and file needing patch
patch < product_image_field.patch

Output From patching:
patching file uc_product.module
Hunk #1 succeeded at 1729 (offset -34 lines).

gizmatix's picture
Offline
Joined: 09/09/2008
Juice: 159
Re: - Drupal 6.10 Installed >

In past posts I said its not being added to product kind. What i ment to say is that image field wasn't being added to content type ' productkit '.

gizmatix's picture
Offline
Joined: 09/09/2008
Juice: 159
Re: Image Issue.

So I tried another install this time with the dependencies listed on the Ubercart web site not the most update ones but the ones actually listed. Thinking maybe if i install this and patch my product.module maybe it'll work. After doing so, i get:

Status Message:
Credit card encryption
Catalog vocabulary
Images Product image support has been automatically configured by Ubercart
Images Product kits do not have an image field. You may add a at the Add field page and make sure it is set as the Ubercart image in the content type settings under the Workflow fieldset.
Roles

I still get the problem with ubercart not adding image fieldset to product kits. Upon trying to add existing field image to content type Product Kit. I still get that message in the status messages for ubercart store administrator.

eagle0829's picture
Offline
Joined: 03/16/2009
Juice: 19
Re: Re: Image Issue.

I have same issue showing the same issue. I look into the CSS and find that the thumnail pix should located in the ...default/files/imagecache, and ...default/files/imagefield_thumbs

The file is in imagefield_thumbs, but not in imagecache on the server side.

I did set the imagetool to use lightbox2. There must somewhere wrong when the image set into imagecache.

Anyone can help?

A hundred thanks.
Sean