Hallo Kai, thank you for the quick answer! The script runs seperate from oxid admin, but the oxid framework is already included and running properly as far as i can see.
I will first have a closer look at the import tool in admin, thanks again for the hint :) Viele Grüße Dirk -----Original data----- Date: 12.04.2012 11:02:15 From: Kai Gazmaga <[email protected]> To: <[email protected]> Subject: Re: [oxid-dev-general] Required minimum data for $oArticle->save() Task: T-9F16DVOZW6-72 > 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: http://www.vektordesign.de/ (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 ndash 9 18 72 18 > > > > http://www.twitter.com/design3000 (Geschäftsführer: Frank Levita, Felix Vay) > > Amtsgericht Darmstadt | HRB: 71307 | Ust-IdNr.: DE201696664 > > > > http://www.design3000.de/ (www.design3000.de) | http://www.koziol-shop.de/ > > (www.koziol-shop.de) | http://www.reisenthel.design-3000.de/ > > (www.reisenthel.design-3000.de) > > http://www.adhoc-designshop.de/ (www.adhoc-designshop.de) | > > http://www.sittingbull-shop.de/ (www.sittingbull-shop.de) | > > http://www.menushop.de/ (www.menushop.de) > > | http://www.carl-mertens-shop.de/ (www.carl-mertens-shop.de) | > > http://www.d3-designblog.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
_______________________________________________ dev-general mailing list [email protected] http://dir.gmane.org/gmane.comp.php.oxid.general
