Hello Dirk, do you use the script integrated into the shop-backend, or is it seperate? I guess you need to include the basic frameworks and oxfunctions / oxconfig to make sure you have DB-access initiated while using it standalone. Normaly you instantiate new oxid-classes by oxNew to use inheritance for modules and things like that. Why do you call oxNew by reference?
You should be able to save any article-object - even empty ones. Only oxId is generated by oxbase::save(), if it is null. By the way: there is already a basic csv-import in oxid Admin -> Service -> Gener. Import. Mit freundlichem Gruß, Kai Gazmaga ---------------------------------------------------------------------------------------------------- *Vektor*Design - Online-Shops und Programmierung Kai Gazmaga Katharinenstraße 57 73 728 Esslingen Tel.: +49 711 - 25516226 Fax: +49 711 - 25518078 Mail: [email protected] Web: www.vektordesign.de 2012/4/12 Dirk Weimar <[email protected]> > ** > > Hi all, > I am building a small tool to import articles via CSV file. So I basicly > do this: > > $oArticle = &oxnew("oxarticle", "core"); > > // Fill it up with data from CSV > > $oArticle->save(); > To start, I only added a long description with > $oArticle->setArticleLongDesc() to the article object and then tried to > save it, but that fails with some error messages (see below). > > Now my question is: What is the minimum data an article needs so I can > save it? > > Our Shop Version is 4.4.2 (with 10 Subshops). > > > ### Error Messages ### > > Message: Undefined property: object_ADOConnection::$fetchMode > Filename: mysql/mysql_meta_module.inc > Line Number: 228 > Message: Undefined index: oxthumb > Filename: core/oxbase.php > Line Number: 219 > Message: Trying to get property of non-object > Filename: core/oxarticle.php > Line Number: 2112 > Message: Undefined index: oxicon > Filename: core/oxbase.php > Line Number: 219 > Message: Trying to get property of non-object > Filename: core/oxarticle.php > Line Number: 2113 > Message: Undefined index: oxinsert > Filename: core/oxbase.php > Line Number: 219 > Message: Undefined index: oxtimestamp > Filename: core/oxbase.php > Line Number: 219 > Message: Undefined index: oxsubclass > Filename: core/oxbase.php > Line Number: 219 > Message: Undefined property: object_ADOConnection::$fetchMode > Filename: mysql/mysql_meta_module.inc > Line Number: 228 > Message: Trying to get property of non-object > Filename: core/oxbase.php > Line Number: 1572 > > > Viele Grüße > Dirk Weimar > > Leitung IT > > design3000 Vertriebsgesellschaft mbH > Robert-Bosch-Str. 14 | 64711 Erbach > > Tel: +49 (0) 60 62 - 9 18 72 23 > Fax: +49 (0) 60 62 – 9 18 72 18 > <http://www.design-3000.de/content/payback.html> > <http://www.facebook.com/pages/design3000/119803052469> > <http://www.twitter.com/design3000> > Geschäftsführer: Frank Levita, Felix Vay > Amtsgericht Darmstadt | HRB: 71307 | Ust-IdNr.: DE201696664 > > www.design3000.de | www.koziol-shop.de | www.reisenthel.design-3000.de > www.adhoc-designshop.de | www.sittingbull-shop.de | www.menushop.de > | www.carl-mertens-shop.de | www.d3-designblog.de > > _______________________________________________ > dev-general mailing list > [email protected] > http://dir.gmane.org/gmane.comp.php.oxid.general >
_______________________________________________ dev-general mailing list [email protected] http://dir.gmane.org/gmane.comp.php.oxid.general
