Warning: Creating default object from empty value in /var/www/common/classes/object_loaders/InventoryItemLoader.php on line 52

Fatal error: Uncaught exception 'Exception' with message 'Can't convert property inventory_item into a string. It's an ad-hoc object, which doesn't have a __toString method. You might have forgotten to declare the object.' in /var/www/common/libraries/maximlib/xml/XmlObject.php:194 Stack trace: #0 /var/www/common/libraries/maximlib/xml/XmlObject.php(146): XmlObject->appendVariable('inventory_item', Object(stdClass), Object(DOMElement)) #1 /var/www/common/libraries/maximlib/xml/XmlObject.php(170): XmlObject->appendToNode(Object(DOMElement), false, 'object_data') #2 /var/www/common/libraries/maximlib/xml/XmlObject.php(146): XmlObject->appendVariable('object_data', Object(InventoryItemLoader), Object(DOMElement)) #3 /var/www/common/libraries/maximlib/xml/XmlObject.php(294): XmlObject->appendToNode(Object(DOMDocument), false) #4 /var/www/common/libraries/maximlib/xml/XmlObject.php(31): XmlObject->toDomDocument() #5 /var/www/common/classes/CommonWebpage.php(248): XmlObject->toHtml('/var/www/maxim/...') #6 /var/www/common/class in /var/www/common/libraries/maximlib/xml/XmlObject.php on line 194