Welcome Guest, Not a member yet? Register   Sign In
Illegal offset type in isset or empty
#5

[eluser]nvanprooyen[/eluser]
Well, forming $request this way seemed to make the issue go away (basically dropped out the array around $sku):

Code:
$request = array($apiSession, 'product_stock.update', $sku , array('qty'=>20, 'is_in_stock'=>1));

The function isn't updating inventory like it should still, so I'm not sure I'm passing the request along to Magento the way it needs to be formed. I think the way I had it the first time is correct for Magento, but CI is having a problem w/ it for whatever reason. Maybe the request function in the XMLRPC library needs another foreach loop to deal w/ multiple arrays?


Messages In This Thread
Illegal offset type in isset or empty - by El Forum - 06-15-2011, 11:01 AM
Illegal offset type in isset or empty - by El Forum - 06-15-2011, 11:25 AM
Illegal offset type in isset or empty - by El Forum - 06-15-2011, 11:47 AM
Illegal offset type in isset or empty - by El Forum - 06-15-2011, 12:00 PM
Illegal offset type in isset or empty - by El Forum - 06-15-2011, 12:33 PM
Illegal offset type in isset or empty - by El Forum - 06-15-2011, 12:53 PM
Illegal offset type in isset or empty - by El Forum - 06-15-2011, 01:22 PM
Illegal offset type in isset or empty - by El Forum - 06-16-2011, 08:05 AM



Theme © iAndrew 2016 - Forum software by © MyBB