uc_import_csv error when running ubercart-5.x-1.0-rc4 on drupal 5.7.

Posts: 33
Joined: 04/23/2008

Hi

I am trying out the latest ubercart ubercart-5.x-1.0-rc4 with drupal 5.7.

When I tried to import a csv file containing my products via the "Store administration/products/import/csv" menu, after mapping the fields and press the submit button, I get the following error:

Fatal error: Call to undefined method SimpleXMLElement::addChild() in C:\Program Files\xampp\htdocs\finanze2\modules\ubercart\uc_import_csv\uc_import_csv.module on line 561

Please do I need a later version of uc_import_csv? The one I found is 0.3

Thanks for your help.

Posts: 4368
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

That module hasn't been updated in a while, so it could be any number of things. On the surface it seems like you may need to update to PHP 5. Puzzled

Posts: 33
Joined: 04/23/2008

Thanks for your reply and the info. I am actually using php 5.1.1.

Please confirm: is the only supported import the XML import?

I also tried node_import 1.5 too, since I need a csv import. It gets to the "Apply (import nodes)" button, and then does nothing after the button is pressed...

Posts: 4368
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

Aye, the XML import is the most supported as it's in core. The CSV import has had a fair amount of use in the community, but I don't know how up to date it is.

Is it possible you're running PHP with SimpleXML disabled? Or maybe the syntax on that line is just bad. Sticking out tongue

Posts: 33
Joined: 04/23/2008

Thanks for the pointers. SimpleXML is actually running under PHP, and the syntax looks fine.

It would be nice to have the csv import in the core, since using a csv file derived from a spreadsheet seems to be a common way of distributing product changes...

I'm looking into using ubercart for a project that has product information in csv files....