Bid not possible, error message

fossie - January 24, 2009 - 15:45
Project:Ubercart Auction
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:postponed (maintainer needs more info)
Description

Hello,

I'm testing the new uploaded dev version: 23th Jan 2009 and noticed that the user can't bid on an item, error message:

The current minimum bid value is $520.00.

and I try to bid 520, 540 or 560 all with the same result.

I'll check the code.

Fossie

#1

fossie - January 24, 2009 - 19:26
Status:active» closed

Hmm,

I've installed everything clean:
- Drupal 6.9
- Ubercart 2 beta 3 (all modules listed on the ubercart page)
- uc_auction-dev (23-01-2009)

Only enabled uc_auction with required modules: store and products

and everything works (Can place a bid).

So maybe my previous post can be ignored, I should debug the other site to see what's causing the problem.

HTH,
fossie

#2

fossie - January 26, 2009 - 13:19
Status:closed» active

As in previous post noted, on a clean install drupal it works, but I can't get it to work on a allready existing site.

I think that I know why the uc_auction_bid_table_form_validate gives the error, but I don't know why this is happening:

I placed a var_export message in the uc_auction_bid_table_form_validate function and on the clean install and on the site where uc_auctions isn't working, it gives two different outputs:

clean install (working):
array ( 'nid' => '1', 'max_bid' => 240, 'user_bid' => 120.5, 'op' => 'Place bid', 'submit' => 'Place bid', 'form_build_id' => 'form-aa90a96500358cd049aef792a2910503', 'form_token' => 'a5a00a0371b8efbded8a60a964ec79aa', 'form_id' => 'uc_auction_bid_table_form', )

install not working:
array ( 'nid' => '19', 'form_build_id' => 'form-7917277bad51637ab2d59f1a4241c887', 'form_token' => '6c53736566ee82efbccbd4dce7f26bec', 'form_id' => 'uc_auction_bid_table_form', 'user_bid' => 0, )

It seems that the values from the submit form aren't passed, how can I debug this where the values are lost?

TIA,
Fossie

#3

Garrett Albright - January 26, 2009 - 16:31

Could you please try doing a clean install of just UC Auction? Disable and uninstall the module (use the "Uninstall" tab on the module list), then reinstall it.

#4

fossie - January 26, 2009 - 18:46

I've already did that a few times, try do it once more and keep you informed.

#5

fossie - January 26, 2009 - 18:55

I've just de-activeted, uninstalled and reinstalled without any change.

Note: on a complete clean install it works, but can't get the developmentsite up with uc_auction.

#6

fossie - January 26, 2009 - 20:32
Status:active» postponed (maintainer needs more info)

Ok, I think the problem is solved. It's a conflict with Meta Tags. I removed module by module and it's working when I delete de Meta Tags module (or disable also does the trick).

Can someone maybe test this, if in combination with meta tags the uc_auction module is working?

Hopefully this was the missing thing.

HTH,
Fossie

#7

Garrett Albright - January 26, 2009 - 21:24
Status:postponed (maintainer needs more info)» active

All right, I'll play around and see if I can recreate the behavior. Are you also using the Buy Now module?

#8

Garrett Albright - January 26, 2009 - 21:26
Status:active» postponed (maintainer needs more info)

Whoops, I didn't reload the page to see your new comment before posting.

I'll check out the Meta Tags module and see what's there that might be causing problems, and if there's anything I can do to fix it on UC Auction's end.

#9

Garrett Albright - January 26, 2009 - 22:40

Okay, I think I found the problem. It seems that, if you do not explicitly define a value for the "Description" meta tag value, the Meta Tags module attempts to build its own description by loading and rendering the content of the node - in this case, the product being purchased (metatags/description.inc in the nodewords directory; lines 23-27). I'm guessing this re-rendering is causing the bid form to be rebuilt with a new form_token and therefore no longer accept the data from the submitted bid form, or something along those lines. I'm guessing this will cause a problem with any other module which creates a form when a node is rendered, including the Webform module and core Ubercart itself.

The only workaround is to open up the "Meta tags" fieldset when creating or editing an auctioned product and fill out the Description field manually. Theoretically you should also be able to go to the Meta tags module's configuration page and tell it to stop trying to create a description metatag, but I found that, even if you do that, the offending code still seems to execute and cause the problem, so manually setting it every time you create an auction seems to be the only way.

I'll go post in the Meta tags issue queue alerting its developer(s) about this problem.

#10

fossie - January 27, 2009 - 12:24

Yes, that was my opinion as well.
My workaround: I disabled the feature (use teaser of the page if the meta description is not set)and Meta Tags isn't causing any problems (for the moment). This way I don't have to enter a description all the time.

I can't confirm if Ubercart 2 and Drupal 6 with Meta Tags (description generating) cause problems.

I can confirm that their is no issue on Drupal 5 with ubercart 1.x and Meta Tags.

Thx,
Fossie

#11

Garrett Albright - March 20, 2009 - 18:47

I filed an issue in Meta Tags' issue queue some time ago (#364682: Conflict with Ubercart / Ubercart Auction), but there's been no response as of yet. If this is still a problem, maybe head over there and bump the issue?

#12

coloryan - March 21, 2009 - 08:52

That was my issue, I'll test it out this afternoon and confirm that it's fixed.

#13

coloryan - March 22, 2009 - 20:04

No love... I just tested it out again and it's causing the problems. If you're running nodewords/meta tags, try and remove and uninstall it. That may fix your problem.

rmh

 
 

Drupal is a registered trademark of Dries Buytaert.