Closed (duplicate)
Project:
Commerce Core
Version:
7.x-1.x-dev
Component:
Cart
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Aug 2011 at 15:58 UTC
Updated:
1 Dec 2011 at 02:46 UTC
Trying to setup a subscription-based site using the commerce_subscription module.
When I visit the cart after adding a product to it, I receive the following message:
Warning: in_array() [function.in-array]: Wrong datatype for second argument in commerce_line_items_quantity() (line 1338 of sites/all/modules/commerce/modules/line_item/commerce_line_item.module).
Any clues?
Comments
Comment #1
rszrama commentedI think you just need the patch in #1237908: commerce_line_items_quantity types filtering is not working.
Comment #2
aristeides commentedI checked it before posting and I'm using the latest dev of every module involved. Line 1338 on the commerce_line_item.module file is already patched... has to be something else!
Comment #3
rszrama commentedCurious. Can you dump out the contents of the variables being passed to that function, then? Do something like:
Comment #4
hejeva commentedsubscribe
Comment #5
mixedfeelings commentedsubscribe
Comment #6
mixedfeelings commentedaristeides did you ever solve this?
Comment #7
aristeides commented@mixedfeelings no, unfortunately I had to meet a very unpleasant deadline (just a week to design, build and troubleshoot everything) and an almost non-existent budget. At that time commerce didn't even have a stable version and I was facing many issues, some with the commerce core and some with the commerce_subscription module so I ended up using Drupal 6 with Ubercart just to save some time.
I'll attempt it again though, soon enough and this time I'll have some time to debug too. I don't even know if this issue still exists!
Comment #8
mixedfeelings commented@aristeides It's definitely still an issue, but in a different spot for me:
Warning: in_array() [function.in-array]: Wrong datatype for second argument in commerce_line_items_quantity() (line 1375 of /home/g-rad/public_html/issue/sites/all/modules/commerce/modules/line_item/commerce_line_item.module).
It looks like that is the same bit of code addressed in the above linked patch, but the patch has already been made....
I get this on the page after reviewing the checkout, the one that transports the user to the payment method (paypal in my case)
Anyone have any ideas?
Comment #9
rszrama commentedI'm going to need to get a debug backtrace or something to determine where the errant code is. afaik, it is coming from a contributed module.
Comment #10
mixedfeelings commentedinterestingly, the error disappeared when i undid the patch - changing "types" to "type" in 1375.