magento / magento/magento2-sample-data
Setup Error with sample data on Magento 2.1 EE
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 212
- Forks
- 266
- PR merge metrics
- No merged PRs in 30d
Description
Hello,
I'm unable to setup sample data under Magento EE 2.1.
`bin/magento sampledata:deploy` went well, but when running `bin/magento setup:upgrade` :
```
...
Module 'Magento_Eway':
Module 'Magento_Fedex':
Module 'Magento_TargetRule':
Module 'Magento_GiftCardAccount':
Module 'Magento_GiftCardImportExport':
Module 'Magento_Weee':
Module 'Magento_GiftRegistry':
Module 'Magento_GiftMessage':
Module 'Magento_GiftMessageStaging':
Module 'Magento_CatalogStaging':
Module 'Magento_GiftRegistrySampleData':
Installing data... PHP Fatal error: Uncaught Error: Call to a member function getData() on boolean in /var/www/magento_deploy/releases/20160812150332/src/vendor/magento/module-gift-registry-sample-data/Model/GiftRegistry.php:192
Stack trace:
#0 /var/www/magento_deploy/releases/20160812150332/src/vendor/magento/module-gift-registry-sample-data/Model/GiftRegistry.php(144): Magento\GiftRegistrySampleData\Model\GiftRegistry->generateData(Array)
#1 /var/www/magento_deploy/releases/20160812150332/src/vendor/magento/module-gift-registry-sample-data/Setup/Installer.php(30): Magento\GiftRegistrySampleData\Model\GiftRegistry->install(Array)
#2 [internal function]: Magento\GiftRegistrySampleData\Setup\Installer->install()
#3 /var/www/magento_deploy/releases/20160812150332/src/vendor/magento/framework/App/State.php(171): call_user_func_array(Array, Array)
#4 /var/www/magento_deploy/releases/20160812150332/src/vendor/magento/framework/Setup/SampleData/Executor.php(50): Magento\Framework\App\State->emulateAreaCode('setup', Array)
#5 /var/www/magento_deploy/r in /var/www/magento_deploy/releases/20160812150332/src/vendor/magento/module-gift-registry-sample-data/Model/GiftRegistry.php on line 192
```
It's working fine under Magento 2.1 CE.
Thanks in advance,
Marc
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the failure with `bin/magento sampledata:deploy` followed by `bin/magento setup:upgrade` on Magento EE 2.1. Start in `vendor/magento/module-gift-registry-sample-data/Model/GiftRegistry.php`, especially lines 144 and 192, and compare the behavior with Magento 2.1 CE. Done means sample-data installation completes without the reported `getData()` fatal error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100