I'm trying to import an XML file I've managed to generate from an osCommerce database. I'm just trying to import one product as a test. I've changed the uc_import.module to the PHP4 version. This is the error I receive:
Fatal error: Call to a member function on a non-object in /modules/ubercart/uc_importer/uc_importer.module on line 792
Here is my XML file:
<?xml version="1.0"?>
<store xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.ubercart.org http://www.ubercart.org/files/store.xsd">
<products>
<product>
<type>product</type>
<name>Fuel Filter (EP82/EP91)</name>
<description><p>Replacement fuel filter for all Toyota Starlet models.</p></description>
<model>TOY-FUE-0007</model>
<list_price>0.00</list_price>
<cost>0.00</cost>
<sell_price>10.00</sell_price>
<weight>0</weight>
<image></image>
<fields>
<field>
<name>field_application</name>
<delta>
<value>EP82 GT/EP91 Glanza/4efte/4efe</value>
</delta>
</field>
<field>
<name>field_extrainfo</name>
<delta>
<value>N/A</value>
</delta>
</field>
<field>
<name>field_deliveryinfo</name>
<delta>
<value>Free UK Mainland Delivery on all items.</value>
</delta>
</field>
</fields>
</product>
</products>
</store>As you can see I've left out the <unique_hash> as this is a fresh import and not a replacement of an existing product. I also left out the <id> since I want it to increment what is already there.
This is the only POST in the access log (strangely nothing in the error log):
82.1.171.97 - - [11/Oct/2007:12:17:44 +0100] "POST /shop/admin/store/products/import HTTP/1.1" 200 182 "http://www.toytuning.com/shop/admin/store/products/import" "Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en) AppleWebKit/522.11.1 (KHTML, like Gecko) Version/3.0.3 Safari/522.12.1"When I return to a working page it says 'File uploaded successfully' but throws out the following error:
- warning: Invalid argument supplied for foreach() in /var/www/html/shop/sites/all/modules/ubercart/uc_importer/uc_importer.module on line 673.
- warning: Invalid argument supplied for foreach() in /var/www/html/shop/sites/all/modules/ubercart/uc_importer/uc_importer.module on line 685.
- warning: Invalid argument supplied for foreach() in /var/www/html/shop/sites/all/modules/ubercart/uc_importer/uc_importer.module on line 721.
- warning: Invalid argument supplied for foreach() in /var/www/html/shop/sites/all/modules/ubercart/uc_importer/uc_importer.module on line 768.
I have the possibility to switch to PHP5 since my host has just updated their servers to provide both. Should I ask them to switch that site over to PHP5?





Joined: 08/28/2007