Closed (fixed)
Project:
Aegir Ubercart Integration
Version:
6.x-1.0-beta1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 Apr 2011 at 08:12 UTC
Updated:
2 May 2011 at 18:51 UTC
Æ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
Comment #1
sfyn commentedNice catch, I just patched the issue, this should make things a little faster, too.
http://drupalcode.org/project/uc_hosting.git/commitdiff/88fda7e7735e6400...
Comment #2
sfyn commentedUpgrade to beta2, and you should be good.
Comment #3
sfyn commentedOops.
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...