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

jaykainthola’s picture

Hi,

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.

naveenvalecha’s picture

Status: Active » Postponed (maintainer needs more info)

HI 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.

Amrendra’s picture

uc_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();

Amrendra’s picture

this code is help for to u

naveenvalecha’s picture

Issue summary: View changes
Status: Postponed (maintainer needs more info) » Active

Changing the status of the issue.
We will update you soon on this.

Thanks
Naveen Valecha

jaykainthola’s picture

@Amrendra, Please check with latest dev version of Drupal 7 version of the module and let me know if there is still issue.

naveenvalecha’s picture

Version: 7.x-1.1 » 7.x-1.x-dev
Status: Active » Fixed

@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

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.