Hello good people.
I have had all sorts of fun with Ubercart lately, not the least trivial being QuickBooks integration (for any of you who haven't tried this yet, it is a little tricky) and now I am trying to get a lot of inventory items imported using the importer. We have a catalog of over 6,000 products, so I am trying to do a small test run preparatory to running the whole thing.
Curiously, the Importer dies with a fatal error:
PHP Fatal error: Call to a member function data() on a non-object in /home/thorn/www/sites/all/modules/ubercart/uc_importer/uc_importer.module on line 984, referer: http://[[masked]]\This is the batch of products I am sending through:
<?xml version="1.0" encoding="UTF-8"?>
<store>
<products>
<product>
<id>1000</id>
<type>product</type>
<model>65665656</model>
<name><![CDATA[Consultation Return]]></name>
<description></description>
<sell_price>0.00</sell_price>
</product>
<product>
<id>1001</id>
<type>product</type>
<model>5555558976</model>
<name><![CDATA[mesh tray small]]></name>
<description></description>
<sell_price>1.00</sell_price>
</product>
<product>
<id>1002</id>
<type>product</type>
<model>566565656</model>
<name><![CDATA[Tray 50 round units]]></name>
<description></description>
<sell_price>1.00</sell_price>
</product>
<product>
<id>1003</id>
<type>product</type>
<model>98789877</model>
<name><![CDATA[Tray #804 32 units 8pack 4cell]]></name>
<description></description>
<sell_price>1.00</sell_price>
</product>
<product>
<id>1004</id>
<type>product</type>
<model>8767896554</model>
<name><![CDATA[Tray #38 38 round units]]></name>
<description></description>
<sell_price>1.00</sell_price>
</product>
<product>
<id>1005</id>
<type>product</type>
<model>16073511558</model>
<name><![CDATA[Smackers-chocolate/spirulina]]></name>
<description></description>
<sell_price>1.49</sell_price>
</product>
<product>
<id>1006</id>
<type>product</type>
<model>16073511541</model>
<name><![CDATA[Smackers-chocolate/almond]]></name>
<description></description>
<sell_price>1.49</sell_price>
</product>
<product>
<id>1007</id>
<type>product</type>
<model>16073511534</model>
<name><![CDATA[Smackers-chocolate/peanut]]></name>
<description></description>
<sell_price>1.49</sell_price>
</product>
<product>
<id>1008</id>
<type>product</type>
<model>34343434</model>
<name><![CDATA[Tray flat w/hole thermoformed ]]></name>
<description></description>
<sell_price>1.50</sell_price>
</product>
<product>
<id>1009</id>
<type>product</type>
<model>555556259</model>
<name><![CDATA[Cilantro 6 pack Og.]]></name>
<description></description>
<sell_price>1.75</sell_price>
</product>
</products>
</store>
I have written a little kludge to map the columns from a database to an XML file. I see no reason to include that here.
Pray tell, what am I doing wrong?
Thanks,
Christopher

