Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
During a cart functionality test, earlier, I was greeted with a half loaded page, and this error in my logs, as well as a notice that follows:
Warning: Invalid argument supplied for foreach() in uc_wishlist_form_alter() (line 323 of /Applications/MAMP/htdocs/greenwood/sites/all/modules/uc_wishlist/uc_wishlist.module).
Notice: Undefined index: #items in uc_wishlist_form_alter() (line 320 of /Applications/MAMP/htdocs/greenwood/sites/all/modules/uc_wishlist/uc_wishlist.module).
I thought I would share. I'd like to keep this module as part of the site, but I need my cart pages. Help?
Comments
Comment #1
jaykainthola CreditAttribution: jaykainthola commentedHi,
I have some technical problem with my laptop, so I am not able to check issue. I will check this once it start working properly.
Thanks.
Comment #2
naveenvalechaHI tophneal,
It will be helpful for us to provide some more information like version of the modules you are using.Please provide some more information so that we can help you to resolve this.
Comment #3
Amrendra CreditAttribution: Amrendra commenteduc_wishlist.module
// Warning: Invalid argument supplied for foreach() in uc_wishlist_form_alter()
// line No. 329
// Error finding by amrendra mourya from India
if ($form_id == 'uc_cart_checkout_form' && !isset($_SESSION['cart_order'])) {
$items = unserialize($form['cart_contents']['#value']);
$wids = array();
Comment #4
Amrendra CreditAttribution: Amrendra commentedthis code is help for to u
Comment #5
naveenvalechaChanging the status of the issue.
We will update you soon on this.
Thanks
Naveen Valecha
Comment #6
jaykainthola CreditAttribution: jaykainthola commented@Amrendra, Please check with latest dev version of Drupal 7 version of the module and let me know if there is still issue.
Comment #7
naveenvalecha@Amrendra
Thanks for the update.Please feel free to reopen if you will get the same issue with the latest dev release.
Thanks
Naveen Valecha