firegento / FireGento_FastSimpleImport2_Demo

Demo module for calling FireGento_FastSimpleImport2 via command line
GNU General Public License v3.0
28 stars 21 forks source link

Fatal error: Class 'League\Csv\Reader' in not found #4

Open lucasound opened 7 years ago

lucasound commented 7 years ago

Hi,

in console, i have this error:

Fatal error: Class 'League\Csv\Reader' in not found in /var/www/vhosts/sito.com/httpdocs/app/code/FireGento/FastSimpleImportDemo/Console/Command/Product/ImportCsv.php on line 75

what is the problem?

avstudnitz commented 7 years ago

The missing class is not a part of FastSimpleImport, an external library. If you install FastSimpleImport with composer (which is recommended), the library will be installed automatically. You can find installation instructions for League_Csv on https://github.com/thephpleague/csv#install. If you can't use composer, you can copy the content of https://github.com/thephpleague/csv/tree/master/src to the lib/internal folder of your Magento installation.

lucasound commented 7 years ago

hi thanks.

i have the error:

Fatal error: Call to a member function getName() on null in /var/www/vhosts/site.com/httpdocs/vendor/magento/module-catalog-import-export/Model/Import/Product/CategoryProcessor.php on line 80

my csv has 1 column with table data:

sku,attribute_set_code,product_type,categories,product_websites,website_id,name,weight,product_online,visibility,price,special_price,url_key,meta_title,meta_keywords,meta_description,base_image,base_image_label,small_image,small_image_label,thumbnail_image,thumbnail_image_label,swatch_image,created_at,updated_at,qty,is_in_stock,ean