Ægir-1.0-rc7. After site added to cart, I get following error:

warning: array_key_exists() expects parameter 2 to be array, null given in /var/aegir/hostmaster-6.x-1.0-rc7/sites/all/modules/uc_hosting/products/uc_hosting_products.module on line 536.

This is because of the folowing query in function _uc_hosting_products_fetch_cart_options:

SELECT pf.nid, hp.value, n.title FROM {uc_product_features} pf LEFT JOIN {uc_hosting_products} hp ON pf.pfid = hp.pfid LEFT JOIN {node} n ON n.nid = hp.value WHERE pf.fid = 'hosting_platform' AND hp.type = 'platform';

It returns nothing.

Comments

sfyn’s picture

Status: Active » Fixed

Nice catch, I just patched the issue, this should make things a little faster, too.

http://drupalcode.org/project/uc_hosting.git/commitdiff/88fda7e7735e6400...

sfyn’s picture

Upgrade to beta2, and you should be good.

sfyn’s picture

Oops.

I adjusted the check I used to fix this - in certain circumstances it would still slip by

http://drupalcode.org/project/uc_hosting.git/commitdiff/e907f94eb41d89e6...

Status: Fixed » Closed (fixed)

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