FireGento_FastSimpleImport2_Demo icon indicating copy to clipboard operation
FireGento_FastSimpleImport2_Demo copied to clipboard

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

Open lucasound opened this issue 8 years ago • 2 comments

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?

lucasound avatar May 11 '17 11:05 lucasound

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.

avstudnitz avatar May 11 '17 12:05 avstudnitz

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

lucasound avatar May 11 '17 14:05 lucasound