Closed
Description
I'm getting a weird issue trying to install sample data on a fresh webstore. I've wiped the database and pulled a fresh directory. I'm able to install without sample data, but when I run
composer require magento/sample-data:1.0.0-beta
bin/magento setup:upgrade
bin/magento sampledata:install admin
I get the following output:
~/html/magento2$ bin/magento sampledata:install admin
Installing theme:
.
Installing customers:
sh: 1: /usr/sbin/sendmail: not found
.
Installing CMS pages:
....
Installing catalog attributes:
...........................
Installing categories:
.........................................
Installing simple products:
PHP Fatal error: Call to undefined method Magento\Catalog\Model\Resource\Product\Interceptor::getWriteConnection() in /var/www/html/magento2/app/code/Magento/SampleData/Module/Catalog/Setup/Product/Gallery.php on line 144