Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\drupal\Rotafix-Online\modules\ubercart\uc_store\uc_store.module on line 2762.
Drupal also many components not compatible with 6.6
Comment | File | Size | Author |
---|---|---|---|
#6 | product_table.patch | 811 bytes | Island Usurper |
#4 | product_table.patch | 769 bytes | Island Usurper |
#3 | ubercart-invalid-foreach-287336-3.patch | 690 bytes | webchick |
Comments
Comment #1
Island Usurper CreditAttribution: Island Usurper commentedIs this on the /products page? There have been several updates to the code since then, so is this still a problem? Is the problem that there aren't any product nodes?
Comment #2
cwhitcoe CreditAttribution: cwhitcoe commentedI also get a similar errror:
warning: Invalid argument supplied for foreach() in /home/public_html/vivapura/sites/all/modules/ubercart/uc_store/uc_store.module on line 2778.
Comment #3
webchickI get the error in #2 when I visit admin/store/products without any products defined.
I suggest a fix something like this patch.
Comment #4
Island Usurper CreditAttribution: Island Usurper commentedtheme_tapir_table() is used for more than just the product lists, so that's not a good place to put the message.
Here's a new patch to go into the function that is responsible for building the data passed to theme_tapir_table().
Comment #5
webchickThat does solve the issue (no more big scary red error), but does not display "No products available." I'm not sure why. $table['rows'] is indeed empty.
Comment #6
Island Usurper CreditAttribution: Island Usurper commentedAh, I forgot a layer. Things are complicated when you have forms and tables in one data array.
Comment #7
webchickYep, that did it! Thanks. :)
Comment #8
Island Usurper CreditAttribution: Island Usurper commentedHuzzah!
Comment #9
Anonymous (not verified) CreditAttribution: Anonymous commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #10
rickmanelius CreditAttribution: rickmanelius commentedReopened for D7.
Warning: Invalid argument supplied for foreach() in theme_tapir_table()
You can see this by visiting and order page admin/store/orders/30376
Comment #11
longwaveFix committed: http://drupalcode.org/project/ubercart.git/commitdiff/56d30ed
Comment #12
rickmanelius CreditAttribution: rickmanelius commentedMuch appreciated @longwave!