It turns out that it’s because I didn’t have length width and height populated for the product.
A useful improvement would be to display a useful warning to the user if these values are missing instead of letting the default PHP warning happen (or for people with error display turned off they would simply not know)
Thanks